← 返回命令列表

Linux command

envdiff 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Capture

envdiff capture

Compare

envdiff diff [snapshot.json]

List

envdiff list

Compare

envdiff diff [snapshot1.json] [snapshot2.json]

说明

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.

参数

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

FAQ

What is the envdiff command used for?

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.

How do I run a basic envdiff example?

Run `envdiff capture` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does capture _NAME_ do in envdiff?

Capture current environment state