1.0.4 • Published 7 months ago

envpicker v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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 envpicker

Or 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 file

Basic Operations

  1. Initialize default environment files:
envpicker init

This will create:

  • env/.env.development
  • env/.env.staging
  • env/.env.production
  1. List available environments:
envpicker list
  1. Activate an environment:
envpicker activate development
  1. Deactivate current environment:
envpicker deactivate
  1. Delete an environment:
envpicker delete development
  1. Save an environment:
envpicker save development

File 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.json

Requirements

  • 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.

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago