23 lines
488 B
Markdown
23 lines
488 B
Markdown
# migrate
|
|
Creates a migrations file or runs migrations from the migrations file.
|
|
|
|
- Migrate packages and create migrations.json (e.g., nx migrate @nrwl/workspace@latest)
|
|
- Run migrations (e.g., nx migrate --run-migrations=migrations.json)
|
|
|
|
## Usage
|
|
```bash
|
|
nx migrate
|
|
```
|
|
|
|
Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`.
|
|
|
|
## Options
|
|
|
|
### help
|
|
|
|
Show help
|
|
|
|
### version
|
|
|
|
Show version number
|