Skip to main content
nx run-many executes one or more targets across a specified set of projects (or all projects when no project filter is provided). Unlike nx affected, it does not filter by git changes—it runs against every project you specify.

Options

Target selection

string
required
One or more targets to run. Alias: --target, -t. Accepts comma or space-separated values.
string
The named configuration to use when running the targets. Alias: -c.

Project selection

string
Comma or space-separated list of project names or patterns to include. Alias: -p. When omitted, the command runs against all projects in the workspace.
string
Comma-separated list of projects to exclude from the run.

Execution

string
Maximum number of parallel task processes. Defaults to 3. Set to false to run serially. Can also be set via NX_PARALLEL.
string
Controls how task output is displayed. Choices: tui, dynamic, dynamic-legacy, static, stream, stream-without-prefixes.
boolean
default:"false"
Stop after the first failed task.
boolean
default:"false"
Ignore cycles in the task graph.
boolean
default:"false"
Rerun tasks even when results are available in the cache. Alias: --disable-nx-cache.
boolean
default:"false"
Disable the remote cache for this run. Alias: --disable-remote-cache.
boolean
default:"false"
Skip running dependent tasks first.
boolean
default:"false"
Skip running sync generators associated with the tasks.
boolean
Run tasks in batches for executors that support batch execution.
string
Show the task graph instead of running it. Pass a file path to save to a file, or stdout to print to the terminal.
string
The tasks runner to use, as configured in nx.json.
boolean
Enable or disable the Nx Terminal UI. Conflicts with --output-style.
string
Whether to exit the TUI automatically after all tasks finish. Pass true to exit immediately, false to never auto-exit, or a number of seconds for a countdown.
boolean
Print additional information about the command.

Examples

The --all flag is deprecated. Omitting --projects already runs against all projects in the workspace.

Running multiple targets

You can pass multiple targets at once. Nx resolves the full task graph and runs each target in the correct dependency order:
This runs all three targets for every project, respecting both dependsOn configuration and cross-project dependencies.