LinuxCommandLibrary

envx

Environment variable management tool

TLDR

Load environment from .env file
$ envx load [.env]
copy
Export current environment to file
$ envx export [filename.env]
copy
Run command with specific environment
$ envx run -e [KEY=VALUE] -- [command]
copy
Check for required variables
$ envx check [REQUIRED_VAR1] [REQUIRED_VAR2]
copy

SYNOPSIS

envx [command] [options] [arguments]

DESCRIPTION

envx is an environment variable management tool that provides utilities for loading, exporting, and manipulating environment configurations. It supports .env files, variable expansion, and temporary environment modifications.
The tool is useful for managing environment configurations across different environments (development, staging, production) and ensuring required variables are present before running applications.

PARAMETERS

load [FILE]

Load environment variables from file
export [FILE]
Export current environment to file
run [options] -- COMMAND
Run command with modified environment
check VARIABLES
Verify required variables are set
-e, --env KEY=VALUE
Set environment variable
-f, --file FILE
Specify environment file
--expand
Expand variable references in values
--override
Override existing variables
-v, --version
Display version and exit
-h, --help
Display help and exit

CAVEATS

Variable expansion may have security implications with untrusted input. .env file format may vary between tools. System environment variables are protected from modification in some cases.

HISTORY

envx was created to provide a consistent way to manage environment variables across projects and environments.

SEE ALSO

dotenv(1), env(1), direnv(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard