env-swap
v1.1.0
Published
Interactive environment file switcher
Maintainers
Readme
env-swap
An interactive terminal-based environment file switcher that helps you manage multiple .env files with ease.
Features
- Interactive terminal UI using blessed
- Easy switching between different environment configurations
- Simple and intuitive interface
- No dependencies on external services
Installation
npm install -g env-swapAlso expects git to be installed.
Usage
Expects .env to have blocked sections like
NODE_ENV=Development
USER=egriff38
## Dev
API_TOKEN=ABC123
## Staging
# API_TOKEN=XYZ890
- Navigate to your project directory containing your
.envfiles - Run the command:
env-swap - Use the arrow keys and space bar to select which blocks should be commented
- Press Enter to apply the block commenting and exit, or
- Press q to quit
Development
To install dependencies and run the project locally:
npm installLicense
MIT
Author
egriff38 (Created with Claude and Cursor)
