nx affected

Run target for affected projects

Options

NameDescription
--allAll projects
--base <arg>Base of the current branch (usually main)
--configuration, -c <configuration>A named builder configuration, defined in the "configurations" section of the workspace configuration file. The builder uses the named configuration to run the given target
--exclude <projects>Exclude certain projects from being processed
--files <arg>Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces
--graphShow the task graph of the command
--head <arg>Latest commit of the current branch (usually HEAD)
--helpShow help
--nx-bailStop command execution after the first failed task
--nx-ignore-cyclesIgnore cycles in the task graph
--output-style <arg>Defines how Nx emits outputs tasks logs
--parallel <arg>Max number of parallel processes [default is 3]
--runner <arg>This is the name of the tasks runner configured in nx.json
--skip-nx-cacheRerun the tasks even when the results are available in the cache
--targets <targets>Targets (comma/space delimited)
--uncommittedUncommitted changes
--untrackedUntracked changes
--verbosePrints additional information about the commands (e.g., stack traces)
--versionShow version number