Nx

Nx CLI

The Nx command-line interface — the primary surface for running, caching, and orchestrating tasks across a monorepo. Built in Rust for performance and extensible via TypeScript plugins. Supports `nx run`, `nx affected`, `nx graph`, `nx generate`, `nx migrate`, `nx release`, `nx sync`, and `nx init` to incrementally adopt Nx in existing npm, pnpm, or yarn workspaces. Auto-discovers tasks from `package.json` scripts and from Vite, Webpack, Jest, Vitest, ESLint, Gradle, Maven, .NET, and Go projects.

API entry from apis.yml

apis.yml Raw ↑
aid: nx-dev:nx-cli
name: Nx CLI
tags:
- Build
- CLI
- Monorepo
- TaskRunner
humanURL: https://nx.dev/reference/nx-commands
properties:
- url: https://nx.dev/reference/nx-commands
  type: Documentation
- url: https://nx.dev/getting-started/intro
  type: GettingStarted
- url: https://www.npmjs.com/package/nx
  name: nx on npm
  type: Package
description: The Nx command-line interface — the primary surface for running, caching, and orchestrating
  tasks across a monorepo. Built in Rust for performance and extensible via TypeScript plugins. Supports
  `nx run`, `nx affected`, `nx graph`, `nx generate`, `nx migrate`, `nx release`, `nx sync`, and `nx init`
  to incrementally adopt Nx in existing npm, pnpm, or yarn workspaces. Auto-discovers tasks from `package.json`
  scripts and from Vite, Webpack, Jest, Vitest, ESLint, Gradle, Maven, .NET, and Go projects.