/ Search - type / Modes - type M Star on GitHub - 5.7k

dotenvx decrypt

-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)