Skip to content
Nx Cloud CI is in private beta 10.6× faster average CI time with 79% less compute. Join the beta

Quickstart with Nx

Get up and running with Nx in just a few minutes by following these simple steps.

  1. Install the Nx CLI

    Installing Nx globally is optional. You can use npx to run Nx commands without installing it globally, especially if you're working with Node.js projects.

    Terminal window
    npm add --global nx

    Note: You can also use Yarn, pnpm, or Bun

  2. Start fresh or add to existing project

    For JavaScript-based projects you can start with a new workspace using the following command:

    Terminal window
    npx create-nx-workspace@latest

    Add to an existing project: (recommended also for non-JS projects)

    Terminal window
    npx nx@latest init

    Want remote caching and CI? Connect to Nx Cloud after setup.

    Learn more: Start New Project • Add to Existing

  3. Run Your First Commands

    Nx provides powerful task execution with built-in caching. Here are some essential commands:

    Run a task for a single project:

    Terminal window
    nx build my-app
    nx test my-lib

    Run tasks for multiple projects:

    Terminal window
    nx run-many -t build test lint

    Learn more: Run Tasks • Cache Task Results

  4. What's next?

    Now that you've experienced the Nx basics, choose how you want to continue: