@nrwl/nx-plugin:migration

Create a Migration for an Nx Plugin.

Usage

nx generate migration ...

By default, Nx will search for migration in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/nx-plugin:migration ...

Show what will be generated without writing to disk:

nx g migration ... --dry-run

Examples

Generate libs/my-plugin/src/migrations/my-migration:

nx g migration my-migration --project=my-plugin --version=1.0.0

Options

description

d
string

Migration description.

name

string

Migration name.

project

pRequired
string

The name of the project.

packageVersion

vRequired
string

Version to use for the migration.

packageJsonUpdates

p
boolean
Default: false

Whether or not to include package.json updates.