DotenvxDotenvx
  • ▦ Documentation
  • ❯ CLI Reference
  • ƒ SDK Reference
DotenvxDotenvx
Log In
  • CLI Reference

    • Introduction
  • Commands

    • Run
    • Get
    • Set
    • Encrypt
    • Decrypt
    • Keypair
    • Ls
    • Gitignore
    • Genexample
    • Validate
    • Precommit
    • Prebuild
  • Professional Security

    • Lock ⊡›
    • Native ⌥›
    • Armor ⛨›
CLI Reference›Run

Run

Inject env at runtime.

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

Options

  • 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 -f directory
  • run -fk
  • run --env HELLO=String
  • run --redact
  • run --redact -- claude -p
  • run --redact -- claude
  • run --redact -- codex exec
  • run --redact -- codex
  • run --mask
  • run --token
  • run --overload
  • run --ignore
  • 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 --validate
  • run --strict
  • run --convention=nextjs
  • run -f directory --convention=nextjs
  • run --convention=flow
  • run --no-native
  • run --no-armor

Was this page helpful?

Introduction‹Previous
Get›Next
Follow us on XFollow us on GitHub