env-diff
Compare two .env files — see what's added, removed, or changed without leaking secret values.
Install
pip install env-diff
Usage
env-diff .env.example .env.local
Added (2)
+ NEW_API_KEY
+ FEATURE_FLAG
Removed (1)
- OLD_SECRET
Changed (1)
~ DATABASE_URL
3 difference(s) found
Options
| Flag | Description |
|---|---|
--show-values |
Show masked values for changed keys (e.g. sk****yz) |
--no-color |
Disable colored output |
-q, --quiet |
Exit code only: 0 = identical, 1 = different |
Exit Codes
0— files are identical1— differences found2— file not found or error
Why?
Every dev has done diff .env.example .env and accidentally pasted the output somewhere public. env-diff shows you what changed without showing the actual secrets.
Perfect for:
- PR reviews ("which env vars changed?")
- Deployment checklists
- Onboarding ("what do I need to add to my .env?")
- CI checks (compare
.env.exampleagainst required vars)
License
MIT
Metadata
Release files for env-diff-cli 0.1.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 | |
|---|---|---|---|---|
| env_diff_cli-0.1.0.tar.gz | 14.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| env_diff_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / env_diff_cli-0.1.0.tar.gz
| Download URL | env_diff_cli-0.1.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fd3704eaee99e04b308f20dfce0effed5f8faf09af9cd789743631efdd13886
|
|
BLAKE2b-256 checksum How to use checksums |
0184c48e592a954a14ecbe5d117e4e36195511ec47f741e48f26e7452a63388d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / env_diff_cli-0.1.0-py3-none-any.whl
| Download URL | env_diff_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c35883a3972c5a74d18637d7e638c50266d180754704e11e7ef6028128bef27
|
|
BLAKE2b-256 checksum How to use checksums |
7dea8f6a430acb43853d11e7f2fb992e60ca81169b1911d7487c6dee552f9fbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for env-diff-cli 0.1.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.