nx-run-tasks

Automate Nx workspace tasks across single or multiple projects.

1.4k|245|Updated Jun 18, 2018
One-click install
npx skills add https://github.com/nrwl/nx-console --skill nx-run-tasks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/nrwl/nx-console/tree/main/.cursor/skills/nx-run-tasks
Command: npx skills add https://github.com/nrwl/nx-console --skill nx-run-tasks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates running Nx workspace tasks.

Core Features & Use Cases

  • Run Nx targets like build, test, lint, and serve across a single project or multiple projects.
  • Discover available targets from package.json or project.json and execute them efficiently.
  • Use common Nx commands (nx run, nx run-many, nx affected) with optional project filtering and parallel execution.

Quick Start

Use nx run <project>:<task> to execute a specific target, or nx run-many -t <task> to run a task across multiple projects.

Frequently Asked Questions about nx-run-tasks

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

FAQPage Schema
How do I run Nx tasks across multiple projects at once?

Use nx run-many -t <task> to execute a task like build, test, or lint across multiple projects in parallel. Nx automatically discovers available targets from project.json and runs them efficiently across your workspace.

What's the difference between nx run, nx run-many, and nx affected?

nx run executes a single target on one project; nx run-many runs a task across multiple projects; nx affected runs only on projects impacted by recent changes. Choose based on whether you need single-project, multi-project, or change-dependent execution.

Can I automate build, test, and lint tasks in an Nx workspace?

Yes. Nx automates running configured targets like build, test, lint, and serve across projects. Define targets in project.json, then use nx commands with wrappers like npx, pnpx, or yarn to execute them consistently.

How does Nx discover available tasks in my projects?

Nx reads project.json or package.json in each project to determine available targets and their options. This metadata-driven discovery lets you execute any configured task without manual specification.

Do I need to install anything extra to run Nx tasks?

No. If Nx is already in your workspace, use npx, pnpx, or yarn as wrappers to invoke nx run, nx run-many, or nx affected commands directly from your terminal.

Can Nx run tasks on only the projects I specify?

Yes. Use nx run-many with project filters or nx run on a specific project to target execution. nx affected further narrows scope by running only on projects changed since a reference point.