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›Get

Get

Return a single environment variable.

$ dotenvx get HELLO
World

Advanced

  • get KEY
  • get KEY -f
  • get KEY --env
  • get KEY --overload
  • get KEY --strict
  • get KEY --convention=nextjs
  • get KEY --convention=flow
  • get (json)
  • get --format shell
  • get --format eval
  • get --all
  • get --all --pretty-print

Was this page helpful?

© Copyright 2026. All rights reserved.

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