- OPTIONAL. Install the package
npm i -g dotenv-switchyarn global add dotenv-switch- Execute the command
dotenv-switch(If you didn't install the package globally)
npx dotenv-switchAfter changing some variable, a new .env.bak file will be created. This file will be used to restore the original values if something happens.
This package is very young and needs a lot of work. If you want to contribute, please do so. I will be happy to accept your PRs.