Skip to main content

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 identical
  • 1 — differences found
  • 2 — 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.example against required vars)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

env_diff_cli-0.1.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

env_diff_cli-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for env_diff_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8fd3704eaee99e04b308f20dfce0effed5f8faf09af9cd789743631efdd13886
MD5 5e2226d6ad9e156d1be06353fdc6933f
BLAKE2b-256 0184c48e592a954a14ecbe5d117e4e36195511ec47f741e48f26e7452a63388d

See more details on using hashes here.

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

Hashes for env_diff_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c35883a3972c5a74d18637d7e638c50266d180754704e11e7ef6028128bef27
MD5 d50c9a80f155ffe7e2b0aaea6ccc4919
BLAKE2b-256 7dea8f6a430acb43853d11e7f2fb992e60ca81169b1911d7487c6dee552f9fbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page