How to back up your .env file
In the same directory as your .env
file, set up dotenv-vault.
$ npx dotenv-vault new
Next, log in.
$ npx dotenv-vault login
Finally, securely push (back up) your .env
file.
$ npx dotenv-vault push
That’s it! You just backed up your .env
file using dotenv-vault.