Switch between .env files in milliseconds.
No more manually copying files.
$ curl -fsSL https://raw.githubusercontent.com/8xu/envswitch/main/install.sh | bashSwitch environments in milliseconds. No overhead, just speed.
Automatically finds your .envs directory. Works where you work.
Backs up your current .env before switching. Never lose your config.
Works out of the box. No configuration files needed.
Install in one command. Works on macOS, Linux, and Windows.
$ curl -fsSL https://raw.githubusercontent.com/8xu/envswitch/main/install.sh | bash# Create .envs directory
$ mkdir .envs
# Add your environment files
$ cp .env .envs/.env.staging
$ cp .env .envs/.env.production$ envswitch staging
Switched to staging environment
$ envswitch production
Switched to production environment_