envman-cli
v1.4.0
Published
Cross-platform CLI tool to manage environment variables. View, set, delete, export, import with interactive UI.
Maintainers
Readme
envman
Simple CLI tool to manage environment variables. Works on Linux, macOS, and Windows.
Why?
Setting environment variables across different operating systems is confusing:
- macOS: Need to use
launchctlfor GUI apps,exportfor shell - Linux: Different files for shell vs system-wide
- Windows: Registry,
setx, session vs permanent
This tool gives you one simple interface to manage env vars on any OS.
Install
Install globally with npm:
npm install -g envman-cliOr use without installing:
npx envman-cli listUsage
# List all environment variables
envman list
# Filter by key name
envman list PATH
# Get a specific variable
envman get HOME
# Set a variable (interactive scope selection)
envman set MY_VAR my_value
# Set with specific scope
envman set MY_VAR my_value --scope user
# Delete a variable
envman delete MY_VAR
# Export to .env file
envman export
# Import from .env file
envman import .envScope Options
Linux:
shell- Current shell session onlyuser- Your shell profile (~/.bashrc or ~/.zshrc)system- System-wide (/etc/environment, requires sudo)
macOS:
shell- Current shell session onlygui- GUI apps from Dock/Finder (requires logout)user- Your shell profile (~/.bashrc or ~/.zshrc)
Windows:
session- Current CMD/PowerShell session onlyuser- User environment variablessystem- System-wide (requires admin)
Interactive Mode
envman list -iUse arrow keys to navigate variables and choose actions.
License
MIT
