NODE_OPTIONS="--require dotenv/config" node app.jsUseful in CI, Docker, and shell profiles. Command-line flags still win.
Node.js CLI environment and config cheat sheets for NODE_OPTIONS, runtime environment variables, proxy settings, CA certificates, and launch patterns.
Control runtime behavior from shell env vars.
NODE_OPTIONS="--require dotenv/config" node app.jsUseful in CI, Docker, and shell profiles. Command-line flags still win.
NODE_ENV=production node app.jsFrequently used by frameworks and libraries to alter runtime behavior.
NODE_NO_WARNINGS=1 node app.jsUse sparingly because it can hide useful diagnostics.
TZ=UTC node app.jsHelpful in tests, cron jobs, and reproducible scripts.
UV_THREADPOOL_SIZE=16 node app.jsCan matter for fs, crypto, and other libuv-backed async work.
NODE_EXTRA_CA_CERTS=./internal-ca.pem node app.jsUseful in enterprise environments with internal PKI.
NODE_USE_ENV_PROXY=1 node app.jsUseful in corporate proxy environments and CI jobs.
NODE_USE_SYSTEM_CA=1 node app.jsHelpful when relying on system-managed certificates.