Nx

Nx Graph and Affected

Nx builds a project graph and a task graph from your workspace, then uses them to run only the tasks affected by a given change set. `nx graph` opens an interactive visualization; `nx affected -t build` or `nx affected -t test` runs only what is needed. The graph is also consumed by Nx Console, the AI agent tooling, and Nx Cloud distribution.

API entry from apis.yml

apis.yml Raw ↑
aid: nx-dev:nx-graph-and-affected
name: Nx Graph and Affected
tags:
- DependencyGraph
- AffectedCommands
- Monorepo
humanURL: https://nx.dev/features/explore-graph
properties:
- url: https://nx.dev/features/explore-graph
  type: Documentation
- url: https://nx.dev/features/run-tasks
  type: Documentation
- url: https://nx.dev/ci/features/affected
  type: Documentation
description: Nx builds a project graph and a task graph from your workspace, then uses them to run only
  the tasks affected by a given change set. `nx graph` opens an interactive visualization; `nx affected
  -t build` or `nx affected -t test` runs only what is needed. The graph is also consumed by Nx Console,
  the AI agent tooling, and Nx Cloud distribution.