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

    • Introduction
  • Commands

    • Run
    • Get
    • Set
    • Encrypt
    • Decrypt
    • Rotate
    • Keypair
    • Login
    • Ops ⛨›
  • More

    • Ls
    • Ext
CLI Reference›Set

Set

Encrypt a single environment variable.

dotenvx set HELLO World
◈ encrypted HELLO (.env)

Advanced

  • set KEY value
  • set KEY value -f
  • set KEY "value with spaces"
  • set KEY -- "- + * ÷"
  • set KEY value --plain

Was this page helpful?

© Copyright 2026. All rights reserved.

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