Star on GitHub - 5.8k

-f

Decrypt the contents of a specified encrypted .env file to an unencrypted .env file.

Usage

$ echo "HELLO=World" > .env
echo "HELLO=Production" > .env.production

dotenvx encrypt -f .env.production
◈ encrypted (.env.production)
dotenvx decrypt -f .env.production
◇ decrypted (.env.production)