We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--dry-run
1 parent b342c3b commit 38c5038Copy full SHA for 38c5038
docs/usage/fix.md
@@ -26,6 +26,26 @@ Fixing .env
26
All warnings are fixed. Total: 2
27
```
28
29
+#### Dry run
30
+
31
+If you want to run `fix` without modifying any files on disk, use the `--dry-run` flag.
32
33
+```bash
34
+$ dotenv-linter fix --dry-run
35
+Fixing .env
36
+Dry run - not changing any files on disk.
37
38
+BAR=bar_example_one
39
+# BAR=bar_example_two
40
+FOO=foo_example
41
42
43
+.env:2 DuplicatedKey: The BAR key is duplicated
44
+.env:3 LowercaseKey: The foo key should be in uppercase
45
46
+All warnings are fixed. Total: 2
47
+```
48
49
#### Addition arguments
50
51
In addition, the `fix` command supports the following list of arguments:
0 commit comments