nx) is the primary interface for running tasks, generating code, managing migrations, and visualizing your workspace. Every command follows the pattern:
Getting help
Pass--help to any command to see its options and usage:
Commands
run
Run a single target for a project. Supports configuration overrides and cache control.
generate
Scaffold or update source code using a generator from any installed Nx plugin.
affected
Run a target only for projects that are affected by recent changes in your git history.
run-many
Run one or more targets across a specific set of projects in the workspace.
migrate
Update Nx and its plugins, and apply the resulting code migrations automatically.
release
Orchestrate versioning, changelog generation, and publishing of packages.
graph
Visualize the project dependency graph or task graph in an interactive browser UI.
Other commands
Global flags
These flags are accepted by most Nx commands.boolean
Prints additional information about the commands (e.g., stack traces). Also enabled by setting
NX_VERBOSE_LOGGING=true.boolean
Print the current version of Nx and exit.
boolean
Show help for the command and exit.
