Oct 27,2022

Rotate DOTENV_KEY

Rotate your DOTENV_KEY with the following command:

$ npx dotenv-vault rotatekey production

Then:

  1. Update DOTENV_KEY by comma-appending the new value
  2. Rebuild and deploy your .env.vault file
  3. Update DOTENV_KEY by removing the old value

See docs for more information. Supported for NodeJS library. Ruby and Python support coming soon.