Agents Docs Pricing
Login
Documentation
Documentation navigation
  • Docs
    • Install
    • Quickstart
    • Advanced
  • CLI
    • Run
    • Encrypt
    • All CLI →
  • Custody
    • Local
    • Armor ⛨
    • All Custody →
  • SDKs
    • Node.js
    • Python
    • All SDKs →
  • Envfile
    • Strictness
    • Encryption
    • All Envfile →
  • Guides
    • Claude
    • Next.js
    • Docker
    • GitHub Actions
    • 1Password
    • All Guides →
  • Resources
    • .env
    • .env (encrypted)
    • Envfile Spec
    • Whitepaper ↗
    • All Resources →
Documentation / CLI / Set

Set

Encrypt a single environment variable.

Usage

$ dotenvx set HELLO World
◈ encrypted HELLO (.env)

Options

  • set KEY value
  • set KEY value -f
  • set KEY value -fk
  • set KEY value --encrypt
  • set KEY value --plain
  • set KEY_PLAIN value
  • set KEY value --no-create
  • set KEY value --no-armor
  • set KEY value --no-native
  • set KEY "value with spaces"
  • set KEY -- "- + * ÷"
‹ KEY --no-native KEY value ›

DOTENVX LLC

Dotenvx · Agents · Docs · Pricing · Corporate Involvement · Careers · Armor · Open Source · Changelog · Blog · Trust Center · Status · Contact · Whitepaper · GitHub · NPM · Search · Legal · Privacy · Terms · Twitter · Sitemap ·  · Log In

/