← 返回命令列表

Linux command

envfetch 命令

文本

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

常用示例

Display

envfetch

Get

envfetch [VARIABLE_NAME]

Search

envfetch --search [pattern]

Output

envfetch --json

说明

envfetch is a cross-platform tool for displaying and querying environment variables. It provides a unified interface across different operating systems and shells for inspecting environment configuration. The tool supports searching, filtering, and various output formats, making it useful for debugging environment issues and extracting configuration values.

参数

--search _PATTERN_
Search for variables matching pattern
--json
Output in JSON format
--export
Output as shell export commands
--no-color
Disable colored output
-v, --version
Display version and exit
-h, --help
Display help and exit

FAQ

What is the envfetch command used for?

envfetch is a cross-platform tool for displaying and querying environment variables. It provides a unified interface across different operating systems and shells for inspecting environment configuration. The tool supports searching, filtering, and various output formats, making it useful for debugging environment issues and extracting configuration values.

How do I run a basic envfetch example?

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

What does --search _PATTERN_ do in envfetch?

Search for variables matching pattern