Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nrwl/nx/llms.txt

Use this file to discover all available pages before exploring further.

nx run-many -t <targets> [options]
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

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

Project selection

--projects
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.
nx run-many -t build --projects=myapp,mylib
nx run-many -t test --projects="tag:scope:frontend"
--exclude
string
Comma-separated list of projects to exclude from the run.

Execution

--parallel
string
Maximum number of parallel task processes. Defaults to 3. Set to false to run serially. Can also be set via NX_PARALLEL.
--output-style
string
Controls how task output is displayed. Choices: tui, dynamic, dynamic-legacy, static, stream, stream-without-prefixes.
--nx-bail
boolean
default:"false"
Stop after the first failed task.
--nx-ignore-cycles
boolean
default:"false"
Ignore cycles in the task graph.
--skip-nx-cache
boolean
default:"false"
Rerun tasks even when results are available in the cache. Alias: --disable-nx-cache.
--skip-remote-cache
boolean
default:"false"
Disable the remote cache for this run. Alias: --disable-remote-cache.
--exclude-task-dependencies
boolean
default:"false"
Skip running dependent tasks first.
--skip-sync
boolean
default:"false"
Skip running sync generators associated with the tasks.
--batch
boolean
Run tasks in batches for executors that support batch execution.
--graph
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.
--runner
string
The tasks runner to use, as configured in nx.json.
--tui
boolean
Enable or disable the Nx Terminal UI. Conflicts with --output-style.
--tui-auto-exit
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.
--verbose
boolean
Print additional information about the command.

Examples

nx run-many -t build
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:
nx run-many -t build test lint --parallel=4
This runs all three targets for every project, respecting both dependsOn configuration and cross-project dependencies.

Build docs developers (and LLMs) love