Skip to content

v0.2.3 — env-manager-decrypt CLI

Latest

Choose a tag to compare

@bastianibanez bastianibanez released this 01 Apr 23:41
· 12 commits to main since this release
c100d25

What's New

npx env-manager-decrypt CLI

Adds the counterpart to env-manager-encrypt — decrypt a dotenvx-compatible encrypted .env file back to plaintext.

npx env-manager-decrypt <file> [--env <name>] [--key <hex>] [-o <outfile>]
  • Reads private key from colocated .env.keys automatically
  • --env <name> — reads DOTENV_PRIVATE_KEY_<NAME> from .env.keys
  • --key <hex> — supply the private key directly, skipping .env.keys
  • -o, --output <file> — write decrypted output to a separate file (non-destructive)
  • Strips DOTENV_PUBLIC_KEY and the dotenvx header from the output

Changelog

  • feat(cli): add env-manager-decrypt CLI (#3)