Quickly switch between .env files in your project.
# Create your .envs directory with files like:# .envs/.env.staging# .envs/.env.prod# .envs/.env.local# List available environments
envswitch --list
# Switch to an environment
envswitch staging
envswitch prodcurl -fsSL https://raw.githubusercontent.com/8xu/envswitch/main/install.sh | bashOr manually:
- Download the binary for your platform from Releases
- Add to PATH
- Run
envswitch --help