nx-cli

Guide developers in using Nx CLI for monorepo tasks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/j-mckerracher/agent-research --skill nx-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-cli
Source: https://github.com/j-mckerracher/agent-research/tree/main/dated-agents/4-6-2026/.claude/skills/nx-cli
Command: npx skills add https://github.com/j-mckerracher/agent-research --skill nx-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers in using the Nx CLI to manage monorepo tasks, enabling fast project discovery, targeted execution, and reliable workspace maintenance.

Core Features & Use Cases

  • Discover projects and targets with nx show projects.
  • Run targets across multiple projects using nx run, nx run-many, or nx affected.
  • Generate code and boilerplate with nx generate.
  • Inspect project graphs and workspace state with nx graph and related commands.
  • Troubleshoot cache or workspace state with commands like nx reset or nx repair.

Quick Start

Start by listing available projects with nx show projects to get an overview of the workspace.

Frequently Asked Questions about nx-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run targets across multiple projects in an Nx monorepo?

Run targets across multiple projects in an Nx monorepo using the nx run-many command, or execute nx affected to build only projects impacted by your latest changes.

What is the best way to discover available projects in an Nx workspace?

The best way to discover available projects in an Nx workspace is by running nx show projects, which lists all workspace projects for immediate overview.

How does code generation work with the Nx CLI?

Code generation with the Nx CLI uses the nx generate command to automatically scaffold new applications, libraries, and boilerplate components within your monorepo.

Can I inspect project dependencies and workspace state using the Nx CLI?

You can inspect project dependencies and workspace state using the nx graph command, which visually maps your monorepo structure for targeted execution and analysis.

Why is my Nx cache not working and how do I reset workspace state?

If your Nx cache is not working or workspace state is corrupted, run nx reset or nx repair to troubleshoot and clear the local cache for reliable monorepo maintenance.

Do I need to install Nx globally to run commands in my local workspace?

You do not need to install Nx globally; you can execute repository-specific workflows using the local binary located at ./node_modules/.bin/nx within your workspace.