Skip to Content
Environment Variables

Environment Variables

User-facing env vars consumed by the latdx CLI and core engine. CI/release-only vars live in docs/internal/environment-variables.md.

Precedence: CLI flag > env var > config file (latdx.config.json) > built-in default.

For steady-state configuration (batch mode, turbo workers, HTTP port, license key, default test mode, coverage), use latdx config set instead of env vars. Env vars below are reserved for ephemeral overrides and debug escape hatches.

Logging & Output

VariableDefaultValuesPurpose
LATDX_LOG_LEVELwarnerror, warn, warning, info, debug, trace, off, silentCLI log verbosity. Overridden by -q / -v. (warning aliases warn; silent aliases off.)
LATDX_LOG_FORMATtexttext, jsonOutput format. Overridden by --json.
NO_COLORunsetany non-emptyDisable ANSI color (per no-color.org ). Also honored via --no-color.
CIunsetany non-emptyDisable spinners and live renderer; force plain output.
LATDX_DEBUGunsettrue / 1, namespace patternsEnable namespaced trace channels (stderr). See LATDX_DEBUG namespace patterns in cli-reference.md.

Salesforce Integration

VariableDefaultValuesPurpose
LATDX_SF_INSTALL_METHODMANAGED_PKGSOURCE, MANAGED_PKGHow latdx-sf installs into the org. SOURCE for dev; MANAGED_PKG for prod. Legacy alias SF_PACKAGE_INSTALL_METHOD is honored with a deprecation warning.
LATDX_SF_SOURCE_PATHauto-discoveredabsolute pathOverride path to the latdx-sf/src/main directory. Highest-priority resolution.
LATDX_SF_PACKAGE_IDbaked-in 04t...04t... IDManaged package version ID. Env var beats the compile-time define in release binaries.
LATDX_SF_PACKAGE_VERSIONbaked-insemver stringMinimum managed-package version expected in the org.
LATDX_SKIP_TEST_RUNNER_ACCESSunset1, trueSkip auto-deploy/assign of the latdx_TestRunnerAccess permset.

Diagnostics

VariableDefaultValuesPurpose
LATDX_KEEP_TEMP_FILESunsettrueKeep temp working directories on disk after a run. Useful for support tickets.
LATDX_KEEP_SF_LOGSunsettrueSkip deletion of Apex debug logs after a run.

Interactive Behavior

VariableDefaultValuesPurpose
LATDX_AUTO_CONFIRMunsettrueAuto-confirm interactive prompts. Useful for non-interactive shells where CI=true is not set.

Internal (set automatically; do not configure manually)

VariableSet byPurpose
LATDX_DAEMONDaemonSpawnerSignals the child process is running in daemon mode.
LATDX_DAEMON_LOGDaemonSpawnerDaemon log file path.
LATDX_DAEMON_IPC_ENDPOINTCLI / DaemonSpawnerIPC socket / named-pipe path used by the daemon.
LATDX_WORKSPACE_IDDaemonSpawnerWorkspace identity passed to daemon child.
LATDX_WORKSPACE_ROOTDaemonSpawnerWorktree root passed to daemon child.
SFDX_DISABLE_LOG_FILE, SF_DISABLE_LOG_FILECLI entrypointDisable SFDX file logging in Bun-compiled binaries.

Removed / Deprecated

VariableReplacement
LATDX_COVERAGE_ENABLEDlatdx config set execution.enableCoverageAndDecoration <value>
LATDX_BATCH_MODElatdx config set execution.batchMode <eco|turbo>
LATDX_TURBO_WORKERSlatdx config set execution.turboModeWorkers <n>
LATDX_TEST_MODElatdx config set execution.defaultTestMode <dbsim|full>
LATDX_HTTP_ENABLEDlatdx config set httpServer.enabled <bool>
LATDX_HTTP_PORTlatdx config set httpServer.port <n>
LATDX_LICENSE_KEYlatdx config set licenseKey <key>
SF_PACKAGE_INSTALL_METHODLATDX_SF_INSTALL_METHOD (legacy alias still works with deprecation warning)