nx
build system for monorepos
TLDR
SYNOPSIS
nx [command] [options]
DESCRIPTION
nx is a build system with first-class monorepo support and powerful integrations. It optimizes build and test workflows through intelligent caching, task distribution, and affected analysis.Nx supports multiple frameworks and languages. It uses a daemon process for fast project graph computation, and provides both local and remote caching for build artifacts.
PARAMETERS
run PROJECT:TARGET
Execute a specific target on a project.build PROJECT
Build a project.test PROJECT
Run tests for a project.serve PROJECT
Serve a project locally.lint PROJECT
Run linter on a project.affected -t TARGET
Run targets for projects affected by recent changes.run-many -t TARGET
Execute targets across multiple projects.generate GENERATOR
Run a code generator from a plugin.graph
Visualize workspace project dependencies.migrate PACKAGE@VERSION
Update packages and run automated migrations.list
List installed plugins and available capabilities.show
Display workspace information (projects, targets).reset
Clear cached artifacts and metadata, shut down the daemon.format:check
Check for unformatted files.format:write
Overwrite unformatted files.release
Orchestrate versioning and publishing.daemon
Manage the Nx background daemon process.repair
Fix unsupported workspace configurations.report
Print version information for debugging.--help
Display help information.
CAVEATS
Requires an nx.json configuration file. The `@nrwl/*` plugin scope was renamed to `@nx/*` starting with Nx 16. Node.js is required.
HISTORY
Nx was created by Nrwl (now Nx) to provide smart, extensible build tooling for monorepos. Originally focused on Angular, it expanded to support React, Node, and other frameworks, and later became a general-purpose build system.
