Advanced
dotenvx rotate -f
Rotate public/private keys for a specified encrypted .env file and re-encrypt all encrypted values.
$ echo "HELLO=World" > .env
$ echo "HELLO=Production" > .env.production
$ dotenvx encrypt -f .env.production
✔ encrypted (.env.production)
$ dotenvx rotate -f .env.production
✔ rotated (.env.production)