Skip to content

decrypt

Usage

Decrypts an encrypted sec file to a plaintext env file

npx dotsec decrypt

Specify a different encrypted sec file

npx dotsec decrypt --sec-file .sec.dev
SEC_FILE=.sec.dev npx dotsec decrypt

Specify a different plaintext env file

npx dotsec decrypt --env-file .env.dev
ENV_FILE=.env.dev npx dotsec decrypt

Write a manifest markdown file

npx dotsec decrypt --create-manifest
CREATE_MANIFEST=true npx dotsec decrypt

Specify a different manifest file

npx dotsec decrypt --manifest-file .manifest.dev
MANIFEST_FILE=decryption-manifest.md npx dotsec decrypt

Config file

See the config file reference for more information on how to configure this command.