LinuxCommandLibrary

envdiff

Environment snapshot and diff tool

TLDR

Capture current environment state
$ envdiff capture
copy
Compare current environment to snapshot
$ envdiff diff [snapshot.json]
copy
List all captured snapshots
$ envdiff list
copy
Compare two snapshots
$ envdiff diff [snapshot1.json] [snapshot2.json]
copy

SYNOPSIS

envdiff [command] [options] [snapshots]

DESCRIPTION

envdiff is a tool for capturing and comparing environment variable states. It allows users to snapshot their environment, compare different states, and track changes over time.
The tool is useful for debugging environment-related issues, verifying configuration consistency across different systems, and documenting environment setups.

PARAMETERS

capture [NAME]

Capture current environment state
diff [SNAPSHOT1] [SNAPSHOT2]
Compare environments (defaults to current if only one specified)
list
List all saved snapshots
delete NAME
Delete a snapshot
--format FORMAT
Output format: text, json, yaml (default: text)
--include VARS
Comma-separated list of variables to include
--exclude VARS
Comma-separated list of variables to exclude
--sensitive
Include sensitive variables (masked by default)
-v, --version
Display version and exit
-h, --help
Display help and exit

CAVEATS

Sensitive data is masked by default but may still be captured. Large environment variable sets can create large snapshot files. System-specific variables may differ between platforms.

HISTORY

envdiff was created to help developers troubleshoot environment-related issues by providing a way to track and compare environment states over time.

SEE ALSO

env(1), printenv(1), export(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard