dotenvx encrypt -f
Encrypt the contents of a specified .env file to an encrypted .env file.
$ echo "HELLO=World" > .env
echo "HELLO=Production" > .env.production
dotenvx encrypt -f .env.production
◈ encrypted (.env.production)
Encrypt the contents of a specified .env file to an encrypted .env file.
$ echo "HELLO=World" > .env
echo "HELLO=Production" > .env.production
dotenvx encrypt -f .env.production
◈ encrypted (.env.production)