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

Automate Updating Dependencies

Keep code up to date with package breaking changes

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

Use Nx as Your Framework CLI

Framework authors can build a CLI tool for their users on top of Nx. With Nx 16, framework authors can now provide a seamless initial experience by authoring a create-my-framework package that will automatically create a new repository configured for your framework.

Scaffold a New Workspace

Set up your framework in a new repo

Project Inference Plugins

Modify how Nx identifies projects

Project Graph Plugins

Modify the Nx graph