Getting Started with Plugins

Nx plugins contain generators and executors that extend the capabilities of an Nx workspace. They can be shared as npm packages or referenced locally within the same repo.

Use a Plugin

Nx plugins help you scaffold new projects, pre-configure tooling, follow best practices, and modularize your codebase.

Browse Existing Plugins

Find a plugin to use

Use Task Executors

Run operations on your code

Use Code Generators

Create or modify code

Create a Local Plugin

Local plugins allow you to automate repository specific tasks and enforce best practices (e.g., generating projects or components, running third-party tools).

Create a Plugin

Set up a new plugin

Local Generators

Add a generator to your plugin

Local Executors

Add an executor to your plugin

Maintain a Published Plugin

If your plugin has functionality that would be useful in more than just your repo, you can publish it to npm and register it on the nx.dev site for others to find.

Share Your Plugin

Submit your plugin to the Nx plugin registry

Migration Generators

Update repos when you introduce breaking changes

Advanced Plugins

You can also hook into the way Nx works and modify it to suit your needs

Scaffold a New Workspace

Set up a new repo

Project Inference Plugins

Modify how Nx identifies projects

Project Graph Plugins

Modify the Nx graph