Nx Tools
APIExecutorsdeploy

deploy

Applies all pending migrations, and creates the database if it does not exist.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Warning

This command is not supported on MongoDB. Use db push instead.

Examples

apps/your-app/project.json
"prisma-deploy": {
  "executor": "@nx-tools/nx-prisma:deploy",
}

You may want to use a custom schema file:

apps/your-app/project.json
"prisma-deploy": {
  "executor": "@nx-tools/nx-prisma:deploy",
  "options": {
    "schema": "custom-file.prisma",
  }
}

Options:

Prop

Type

Last updated on

On this page