dotenv-validator
CLI tool to sync and validate .env files — detect missing, extra, or mismatched environment variables between .env.example and .env.
Why?
Every project with environment variables has the same problem:
- You add a new config to
.env.examplebut forget to update.env - Someone deploys without the right env vars set
- You waste hours debugging when it's really
DATABASE_URLmissing
Install
pip install dotenv-validator
Usage
Basic comparison
dotenv-validator
Compares .env.example with .env in current directory.
Auto-fix missing keys
dotenv-validator --fix
Strict mode
dotenv-validator --strict
JSON output (for CI)
dotenv-validator --json
Initialize .env.example
dotenv-validator --init
Custom file paths
dotenv-validator --example .env.dev.example --env .env.production
Use in CI (GitHub Actions)
- name: Validate env files
run: pip install dotenv-validator && dotenv-validator --json
License
MIT
Metadata
Release files for dotenv-validator 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dotenv_validator-1.0.0.tar.gz | 3.8 kB | Without provenance | Details for dotenv_validator-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dotenv_validator-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dotenv_validator-1.0.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / dotenv_validator-1.0.0.tar.gz
| Download URL | dotenv_validator-1.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
055b2593625a2415425005372ee3e5b52969f18d5cb5d8b970e4a52b448bea51
|
|
BLAKE2b-256 checksum How to use checksums |
405b3dcd83ea504db055ae25ca4cdd388c839b67b2d8c1196b784dae6367a80b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / dotenv_validator-1.0.0-py3-none-any.whl
| Download URL | dotenv_validator-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db3982f3f6aa3b85b35be07f7d95688970f1c87d9e6a2163dd20a18d06e52947
|
|
BLAKE2b-256 checksum How to use checksums |
3ee28712495aca4b1fecc4041102b89007bb96df0e18415ababfc2881c096c40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for dotenv-validator 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.