envpicker
v1.0.4
Published
A simple environment switcher for managing multiple .env file
Maintainers
Readme
envpicker
A simple CLI tool for managing multiple environment files in your Node.js projects.
Overview
envpicker helps developers easily manage and switch between different environment files (.env) in their local development environment. It provides simple commands to initialize, list, activate, and delete environment configurations.
Installation
Install globally using npm:
npm install -g envpickerOr use directly with npx:
npx envpicker [command]Usage
Available Commands
envpicker [command]
Commands:
list | ls List all available environments
activate | use [env] Switch to specified environment
save [env] Save current .env to /env directory
deactivate | stop Remove active environment
init Initialize default environment files
delete [env] Delete specific environment fileBasic Operations
- Initialize default environment files:
envpicker initThis will create:
env/.env.developmentenv/.env.stagingenv/.env.production
- List available environments:
envpicker list- Activate an environment:
envpicker activate development- Deactivate current environment:
envpicker deactivate- Delete an environment:
envpicker delete development- Save an environment:
envpicker save developmentFile Structure
The tool expects your project to have the following structure:
your-project/
├── env/
│ ├── .env.development
│ ├── .env.staging
│ └── .env.production
├── .env (created when environment is activated)
└── package.jsonRequirements
- Node.js
- Bash/Shell environment
Limitations
- CLI-only tool (no GUI interface)
- Designed for local development use
Bug Reports and Feature Requests
Please submit any bugs or feature requests to our issues page.
License
ISC License
Security
Note: This tool is intended for local development use only. Be careful with your environment files and never commit them to version control.
