Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envdiff

Compare .env files and environment snapshots. Shows added, removed, and changed keys — built for CLI and CI use.

Install

go install github.com/MrBeldum/envdiff@latest

Or build from source:

go build -o envdiff .

Usage

# Compare two dotenv files
envdiff file .env .env.production

# Compare a dotenv file against the current process environment
# (only keys present in the file, unless --all)
envdiff env .env
envdiff env .env --all

# JSON output for scripts
envdiff file a.env b.env --format json

# Only show changed keys
envdiff file a.env b.env --only changed

Exit codes

Code Meaning
0 No differences (after --only filters)
1 Differences found
2 Usage or parse error

License

MIT

About

Compare .env files and environment snapshots — added, removed, and changed keys for CLI/CI use.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages