Linux command
envx 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Load
envx load [.env]
Export
envx export [filename.env]
Run
envx run -e [KEY=VALUE] -- [command]
Check
envx check [REQUIRED_VAR1] [REQUIRED_VAR2]
说明
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.
参数
- 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
FAQ
What is the envx command used for?
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.
How do I run a basic envx example?
Run `envx load [.env]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does load _FILE_ do in envx?
Load environment variables from file