Dotenvx
About
Docs
[m]
[⌘K]
Login
#
Sitemap
Home
About
Blog
2024-06-24 — From dotenv to dotenvx: Next Generation Config Management
2024-06-30 — What Does #1 on Hacker News Get You
2024-07-01 — Choosing an Architecture for Pro
2024-07-11 — Dotenvx is Feature Complete
2024-07-13 — Protip – dotenvx with Rails foreman
2024-09-12 — 1,000+ Open Source Projects rely on dotenvx
2024-11-19 — I know kung fu - llms.txt
2024-11-28 — It adds up
2025-03-03 — 1 Million Installs: From Experimental to Essential
2025-04-01 — Claude MCP + Dotenvx
2025-04-19 — Dotenvx vs Docker Compose Secrets: Avoiding False Security
2025-12-11 — Rotate NPM Tokens with Dotenvx Armor ⛨. Automatically.
2026-02-17 — Setting Up dotenvx with Next.js
2026-03-02 — Stop .env Drift Before Merge with Wizard of Drift
2026-04-02 — Harden .env.local: dotenvx + OS Keychain
2026-09-19 — Dotenv 18: CLI
2026-09-21 — Dotenv VS Code: 1.0 and beyond
2026-09-28 — Faster than Node's native parseEnv?
2026-10-26 — Making .env: The Combine
2026-11-09 — Making .env: Rust & Radiohead
2026-11-24 — Making .env: Dotenvx 3.0.0 RC0 – 91x faster
Careers
Agent Engineer
Corporate Sponsorships
Changelog
Corporate Involvement
Dotenvx Armor for Security Professionals
Legal
Members
Supermemory: One key. No chasing.
Watt: Secrets with code. No new critical path.
Newsletter
Open Source
Pricing
Pricing (Legacy)
Privacy Policy
Terms of Service
##
[
Docs
]
(/docs/)
.env
.env (encrypted)
.env.keys
.NET
1Password
Advanced
API
Astro
Deploy with a private key
Public browser variables
Share a private key
Static builds
Background Jobs
Trigger.dev
Bash
Bitwarden
Bun
Deploy with a private key
Share a private key
Use the CLI
Claude Code
CLI
(json)
--all
--all --pretty-print
--convention=flow
--convention=flow
--convention=nextjs
--convention=nextjs
--debug
--env HELLO=String
--format colon
--format colon
--format eval
--format eval-export
--format json
--format shell
--format shell
--ignore
--install
--log-level
--no-create
--overload
--pattern
--pretty-print
--pretty-print
--quiet
--stdout
--stdout
--strict
--token
--token
--verbose
-f
-f
-f
-f
-f
-f directory
-f directory
-f directory + nextjs
-f directory + nextjs
-fk
-fk
-fk
-fk
1password
1password list
1password list --pretty-print
1password show
1password show --pretty-print
1password down
1password down -f
1password down -fk
1password pull
1password pull -f
1password pull -fk
1password push
1password push -f
1password push -fk
1password up
1password up -f
1password up -fk
Alternate Values
Armor
Armor
armor invite
armor invite --email
armor invite --team
armor invite --token
armor list
armor list --pretty-print
armor list --token
armor open
armor open -f
armor pull
armor pull --team
armor pull --token
armor pull -f
armor settings
armor settings device
armor settings device --unmask
armor settings hostname
armor settings off
armor settings on
armor settings path
armor settings token
armor settings token --unmask
armor settings username
armor show
armor show --pretty-print
armor show --team
armor show --token
armor up
armor up --team
armor up --token
armor up -f
down
login
logout
push
status
armor down --team
armor down --token
armor down -f
armor login --hostname
armor logout --hostname
armor push --team
armor push --token
armor push -f
bitwarden
bitwarden list
bitwarden list --pretty-print
bitwarden show
bitwarden show --pretty-print
bitwarden down
bitwarden down -f
bitwarden down -fk
bitwarden pull
bitwarden pull -f
bitwarden pull -fk
bitwarden push
bitwarden push -f
bitwarden push -fk
bitwarden up
bitwarden up -f
bitwarden up -fk
Combine Multiple
Command Substitution
Contextual Help
Decrypt
decrypt --token
Default Values
Del
directory
directory
directory
DOTENV_ENV=production
DOTENV_FILE=.env.ci
DOTENV_FILE=.env.production
DOTENV_PRIVATE_KEY
Encrypt
encrypt --with
Environment Variable Precedence
Genexample
Get
get --convention
get --format
get --token
Gitignore
Help
info
info --pretty-print
install
install --add
install --arch
install --build
install --directory
install --hostname
install --id
install --os
install --remove
install --version
Interpolation Syntax Summary
KEY
KEY
KEY
KEY --env
KEY --ignore
KEY --overload
KEY --strict
KEY -f
KEY -f
KEY -fk
KEY value
KEY value --encrypt
KEY value --no-create
KEY value --plain
KEY value -f
KEY value -fk
KEY_PLAIN
KEY_PLAIN value
Keypair
keypair --format
keypair --token
login
login --hostname
logout
logout --hostname
Ls
ls --json
ls -ef
ls -f
Multiline
Native
down
native list
native list --pretty-print
native show
native show --pretty-print
native up
native up -f
native up -fk
pull
push
native down -f
native down -fk
native pull -f
native pull -fk
native push -f
native push -fk
Prebuild
Precommit
precommit --uninstall
protect
protect --docker
protect --docker directory
Run
run --convention
run with a Dotenv.toml
Set
set --token
Shell Expansion
token
token --unmask
uninstall
update
update --hostname
Values with leading dash
Values with spaces
Variable Expansion
Version
Clojure
Cloudflare
Deploy to Cloudflare Pages
Share a private key
Codex
Cron
Cursor
Custody
1Password
Armor
Deploy Armor on Heroku
Bitwarden
Classic (.env.keys)
Native
Docker
Build-time secrets
Copy the binary
Deploy with a private key
Mount your files
Share a private key
Docker Compose
Build-time secrets
Deploy with a private key
Existing images / no Dockerfile
Mount your files
Multiple services
Share a private key
Use Compose secrets
Dotenv
Dotenv Spec
Dotenv Spec Table
Dotenv.toml
Choices
Commands
Declarations
Dotenv.toml Quickstart
Dotenv.toml Spec
Encryption
File overrides
Maximum
Minimum
Optional
Redaction
Required
Strictness
Syntax
Types
boolean
email
integer
ip
port
url
Echo
Encryption Formats
Errors
Events
Expo
Build-only secrets
EAS Build
EAS Update
Share a private key
Express
Deploy with a private key
Share a private key
Fastify
CommonJS
Deploy with a private key
Share a private key
Fish
Flask
GitHub Actions
Go
Guides
Hono
Bun
Cloudflare Workers
Deploy with a private key
Share a private key
Install
Install Dotenvx for Go
Install Dotenvx for Next.js
Install Dotenvx for Node.js
Install Dotenvx for PHP
Install Dotenvx for Python
Install Dotenvx for Ruby
Install Dotenvx for Rust
Install Dotenvx on Windows
Java
Kotlin
Monorepos
Neon
NestJS
Deploy with a private key
Share a private key
Use ConfigService
Next.js
Deploy with a private key
Seeing ciphertext only?
Share a private key
Node.js
Deploy with a private key
Share a private key
Nuxt
Deploy with a private key
Public browser variables
Share a private key
Static generation
Nx
Package Managers
npm
pnpm
PHP
Platforms
AWS Lambda
DigitalOcean
Fly
Heroku
Netlify
Railway
Render
Process Managers
PM2
Python
Quickstart
CI & Production
Rails
React Router
Build-time configuration
Deploy with a private key
Public browser variables
Share a private key
Remix
Deploy with a private key
Other server setups
Public browser variables
Share a private key
Resources
Rocket
Ruby
Rust
Multiple environment files
Use the CLI
SDKs
Go
Load
Overload
Read
Next.js
initialEnv
loadEnvConfig
processEnv
resetEnv
updateInitialEnv
Node.js
config
config with a convention directory
config({ convention: ... })
config({ cwd: ... })
config({ encoding: ... })
config({ environment: ... })
config({ envKeysFile: ... })
config({ envs: ... })
config({ ignore: ... })
config({ keyFiles: ... })
config({ logLevel: ... })
config({ no1Password: ... })
config({ noArmor: ... })
config({ noBitwarden: ... })
config({ noNative: ... })
config({ overload: ... })
config({ override: ... })
config({ path: ... })
config({ processEnv: ... })
config({ quiet: ... })
config({ resolveReferences: ... })
config({ strict: ... })
config({ token: ... })
get
get(undefined, { all: true })
get(undefined, { format: ... })
getSync
parse
parse privateKey
parse processEnv
preload
PHP
createImmutable
createMutable
load
safeLoad
Python
dotenv_values
find_dotenv
load_dotenv
load_dotenvx
Ruby
load
load!
overwrite
overwrite!
parse
preload
Rails
update
Rust
load
Primitives
check
decrypt
decrypted_replacements
derive
encrypt
encrypted
evaluate
expand
injectsummary
injectsummary_sources
injectsummary_with_metadata
keypair
keyring
match
matches
parse
parse_decrypted_source
parsearrays
parsedotenvxfile
policy
private_key_hex
profile
public_key_display
public_key_hex
public_key_metadata
publickeys
redact
remove
scan
sealed
storagecheck
storagepolicy
upsert
Sinatra
Stats
SvelteKit
Build-time variables
Deploy with a private key
Public browser variables
Share a private key
TanStack Start
Build-time configuration
Deploy with a private key
Public browser variables
Share a private key
Turborepo
uv
Vite
Build with a private key
Build-only secrets
Share a private key
Staging and other modes
Zsh
markdown
Search
/