Advanced

dotenvx set KEY value -f

Set an (encrypted) key/value for another .env file.

$ touch .env.production

$ dotenvx set HELLO production --encrypt -f .env.production
set HELLO with encryption (.env.production)