DotenvxDotenvx
  • ▦ Documentation
  • ❯ CLI Reference
  • ƒ SDK Reference
DotenvxDotenvx
Log In
  • CLI Reference

    • Introduction
  • Commands

    • Run
    • Get
    • Set
    • Encrypt
    • Decrypt
    • Keypair
    • Ls
    • Gitignore
    • Genexample
    • Validate
    • Precommit
    • Prebuild
  • Professional Security

    • Lock ⊡›
    • Native ⌥›
    • Armor ⛨›
CLI Reference›Encrypt

Encrypt

Convert .env file to encrypted .env file.

$ dotenvx encrypt
◈ encrypted (.env)

Works with unreadable .env.keys when .env already contains DOTENV_PUBLIC_KEY.

Options

  • encrypt -f
  • encrypt -fk
  • encrypt -k
  • encrypt -ek
  • encrypt KEY_PLAIN
  • encrypt --stdout
  • encrypt --token
  • encrypt --no-create
  • encrypt --no-armor

Was this page helpful?

Set‹Previous
Decrypt›Next
Follow us on XFollow us on GitHub