⚠️ This project was vibe-coded and might not work properly. Open an issue if you find bugs.

envswitch

Switch between .env files in milliseconds.
No more manually copying files.

$ curl -fsSL https://raw.githubusercontent.com/8xu/envswitch/main/install.sh | bash

Features.

⚡

Lightning Fast

Switch environments in milliseconds. No overhead, just speed.

🔍

Auto-Discovery

Automatically finds your .envs directory. Works where you work.

🛡️

Safe & Smart

Backs up your current .env before switching. Never lose your config.

✨

Zero Config

Works out of the box. No configuration files needed.

Get Started.

Install in one command. Works on macOS, Linux, and Windows.

01Run the installer

$ curl -fsSL https://raw.githubusercontent.com/8xu/envswitch/main/install.sh | bash

02Create your environments

# Create .envs directory
$ mkdir .envs

# Add your environment files
$ cp .env .envs/.env.staging
$ cp .env .envs/.env.production

03Start switching

$ envswitch staging
Switched to staging environment

$ envswitch production
Switched to production environment_