Compare two .env files — show added, removed, and changed keys without leaking values
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file env_diff_cli-0.1.0.tar.gz.
File metadata
- Download URL: env_diff_cli-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fd3704eaee99e04b308f20dfce0effed5f8faf09af9cd789743631efdd13886
|
|
| MD5 |
5e2226d6ad9e156d1be06353fdc6933f
|
|
| BLAKE2b-256 |
0184c48e592a954a14ecbe5d117e4e36195511ec47f741e48f26e7452a63388d
|
File details
Details for the file env_diff_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: env_diff_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c35883a3972c5a74d18637d7e638c50266d180754704e11e7ef6028128bef27
|
|
| MD5 |
d50c9a80f155ffe7e2b0aaea6ccc4919
|
|
| BLAKE2b-256 |
7dea8f6a430acb43853d11e7f2fb992e60ca81169b1911d7487c6dee552f9fbc
|