Lint .env files for duplicated keys and unsafe formatting with dotenv-linter
Check dotenv files for duplicated keys, malformed values, and formatting mistakes before they break local runs or secret handoffs.
Prerequisites
The dotenv-linter CLI or binary and a repository containing dotenv files to check.
Installation
Requirements and caveats from upstream:
- wemake-services/dotenv-linter (Python)
Basic usage or getting-started notes:
The .env file has a simple key-value format, for example: FOO=BAR.
🚀 Usage
$ dotenv-linter diff .env .env.example
Extracted from upstream docs: https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/HEAD/README.md