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

Run

Inject env at runtime.

console.log(`Hello ${process.env.HELLO}`)
$ dotenvx encrypt
$ dotenvx run -- node index.js

Advanced

  • run - Variable Expansion
  • run - Default Values
  • run - Alternate Values
  • run - Interpolation Syntax Summary (Variable Expansion, Default/Alternate Values)
  • run - Command Substitution
  • run - Shell Expansion
  • run - Multiline
  • run - Contextual Help
  • run -f
  • run --env HELLO=String
  • run --overload
  • run - Environment Variable Precedence
  • DOTENV_PRIVATE_KEY=key run
  • DOTENV_PRIVATE_KEY_PRODUCTION=key run
  • DOTENV_PRIVATE_KEY_CI=key run
  • DOTENV_PRIVATE_KEY=key DOTENV_PRIVATE_KEY_PRODUCTION=key run - Combine Multiple
  • run --verbose
  • run --debug
  • run --quiet
  • run --log-level
  • run --strict
  • run --convention=nextjs
  • run --convention=flow

Was this page helpful?

© Copyright 2026. All rights reserved.

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