LinuxCommandLibrary

envfetch

Cross-platform CLI for environment variables

TLDR

Display all environment variables
$ envfetch
copy
Get a specific variable
$ envfetch [VARIABLE_NAME]
copy
Search for variables matching pattern
$ envfetch --search [pattern]
copy
Output in JSON format
$ envfetch --json
copy

SYNOPSIS

envfetch [options] [variable]

DESCRIPTION

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.

PARAMETERS

--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

CAVEATS

Cross-platform compatibility may have slight variations. Sensitive variables are displayed by default. Large environment sets may require filtering.

HISTORY

envfetch was developed as a portable alternative to platform-specific environment inspection tools.

SEE ALSO

env(1), printenv(1), set(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard