From 4c6d87740dbde278fe18a207cc63dc8ae4913d4d Mon Sep 17 00:00:00 2001 From: Sean Alter Date: Tue, 17 Oct 2023 22:08:24 -0400 Subject: [PATCH] docs(dotenv-linter): Update Cheat Sheet to be compatable with dotenv-linter v3.1 --- dotenv-linter/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dotenv-linter/README.md b/dotenv-linter/README.md index e2575a6..f34725a 100644 --- a/dotenv-linter/README.md +++ b/dotenv-linter/README.md @@ -57,15 +57,23 @@ For the complete usage, see the official ### How to automatically fix errors -Use the `--fix` flag. +Use the `fix` subcommand. ```sh -dotenv-linter --fix +dotenv-linter fix ``` Backup files in the format of `.env_0000000000` will be created by default. You can use `--no-backup` to skip this. +### How to compare two files + +Use the `compare` subcommand + +```sh +dotenv-linter compare .env1 .env2 +``` + ### How to toggle linter rules You can turn off certain linter checks with `--skip` options, for example: