DotenvxDotenvx
  • ▦ Documentation
  • ❯ CLI Reference
  • ƒ SDK Reference
DotenvxDotenvx
Log InGet Started
  • CLI Reference

    • Introduction
  • Commands

    • run
    • get
    • set
    • encrypt
    • decrypt
    • rotate
    • keypair
  • More

    • ls
    • ext
  • Sign in
CLI Reference›Encrypt

Encrypt

Convert .env file to encrypted .env file.

$ dotenvx encrypt
◈ encrypted (.env)

Advanced

  • encrypt
  • encrypt -f
  • encrypt -fk
  • encrypt -k
  • encrypt -ek
  • encrypt --stdout

Was this page helpful?

© Copyright 2026. All rights reserved.

llms.txtllms-full.txtFollow us on XFollow us on GitHubFollow us on YouTubeInstall VSCode extension