Advanced

dotenvx rotate

Rotate public/private keys for .env file and re-encrypt all encrypted values.

$ echo "HELLO=World" > .env
$ dotenvx encrypt
✔ encrypted (.env)
$ dotenvx rotate
✔ rotated (.env)