Compare two .env files and show the differences.
Spot missing keys, changed values, and extra variables between environments at a glance.
go install github.com/clarabennettdev/envdiff@latestenvdiff .env.dev .env.prod+ SENTRY_DSN (only in .env.prod)
- DEBUG_MODE (only in .env.dev)
~ DATABASE_URL (values differ)
~ REDIS_HOST (values differ)| Symbol | Meaning |
|---|---|
+ |
Key only in second file |
- |
Key only in first file |
~ |
Key in both, values differ |
- Verify staging matches production before deploy
- Audit
.env.exampleagainst real configs - Catch missing environment variables in CI
MIT