If set to false, Nx will not add plugins to infer tasks. This is true by default. Workspaces created before Nx 18 will have this disabled via a migration for backwards compatibility
Prepend NX_PROFILE=profile.json before running targets with Nx to generate a file that be loaded in Chrome dev tools to visualize the performance of Nx across multiple processes.
If set to true or false, will enable or disable the Terminal UI (TUI) for running tasks. TUI provides an interactive visual interface for task execution
Controls whether the TUI automatically exits after tasks finish. If true, exits immediately. If false, never exits automatically. If a number, shows a countdown for that many seconds before exiting
Alternative to configuring maxCacheSize in nx.json. Defines the maximum size of the local task cache. See maxCacheSize for supported units and behavior details.
The cache for native .node files is stored under a global temp directory by default. Set this variable to use a different directory. This is interpreted as an absolute path.
If set to true, skips the automatic installation of the Nx Console extension for supported editors. Set this in environments where the temp file that we store this information in otherwise isn't accessible.
The following environment variables can be used to disable specific Nx plugins. This is useful in CI environments where the required tooling (e.g., Java) is not available.
Set to true during the graph creation process. Use this to have inference plugins run different code during graph creation versus during task execution
The current branch name. For most CI providers, nx-cloud determines this automatically. Must be set to the PR number for GitHub, BitBucket and GitLab integrations to work properly.
A unique identifier for the current CI run or job. For most CI providers, nx-cloud determines this automatically. The value on the main job must match the value on all agents.
Used when you have multiple main jobs (e.g., running CI on both Linux and Windows). The main job with this env variable will connect to agents with the same env name.
Should only be used when running agents with Manual DTE. Attaches a launch template type to your agents to leverage assignment rules for task distribution.
Configure the Nx Cloud access token. Takes precedence over the accessToken property in nx.json. Common to have a read-only token in nx.json and a read-write token set via this environment variable in CI.
Enable end-to-end encryption of artifacts. Artifacts will be encrypted/decrypted on your machine. Can also be set via the encryptionKey property in nx.json.
If set to true, prevents Nx Cloud from being used for the current run. No remote cache will be used. Value cannot be set if using distributed task execution
The subdirectory containing your Nx workspace. Set this in your launch template if your Nx workspace is not at the repository root. Only used by Nx Agents.