encrypt --with

Encrypt using a specific public key

dotenvx encrypt

$ dotenvx encrypt --with

Usage

Encrypt using a specific public key.

Set DOTENV_PUBLIC_KEY to the recipient public key. Use a fresh env file, or a file whose existing public key matches that key.


$ dotenvx encrypt --with "$DOTENV_PUBLIC_KEY"

markdown