{
  "id": "prisma",
  "name": "Prisma",
  "description": "Next-generation ORM and database toolkit for Node.js and TypeScript.",
  "homepage": "https://www.prisma.io",
  "executables": [
    "prisma"
  ],
  "commands": {
    "format": 1,
    "label": "Prisma",
    "description": "Common Prisma CLI jobs: generate the client, create migrations, push the schema, open Studio and format the schema.",
    "quality": "ai-draft",
    "base": "fig:prisma",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "generate"
        ],
        "label": "Generate client",
        "description": "Generate artifacts such as Prisma Client from the schema.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "schema",
            "label": "Schema path",
            "type": "path",
            "option": [
              "--schema"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "watch",
            "label": "Watch for changes",
            "type": "boolean",
            "option": [
              "--watch"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_hints",
            "label": "Hide hints",
            "type": "boolean",
            "option": [
              "--no-hints"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "generate",
            "label": "Generate",
            "fields": [
              "schema",
              "watch",
              "no_hints"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "schema",
              "watch",
              "no_hints"
            ]
          }
        ]
      },
      {
        "path": [
          "migrate",
          "dev"
        ],
        "label": "Create and apply migration",
        "description": "Update the development database using migration files.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Migration name",
            "description": "If omitted, the CLI prompts for one.",
            "type": "string",
            "option": [
              "--name",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "schema",
            "label": "Schema path",
            "type": "path",
            "option": [
              "--schema"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "create_only",
            "label": "Create only, do not apply",
            "type": "boolean",
            "option": [
              "--create-only"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_seed",
            "label": "Skip seed",
            "type": "boolean",
            "option": [
              "--skip-seed"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_generate",
            "label": "Skip generators",
            "type": "boolean",
            "option": [
              "--skip-generate"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "dev",
            "label": "Migrate dev",
            "fields": [
              "name",
              "create_only",
              "skip_seed",
              "skip_generate",
              "schema"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "create_only",
              "skip_seed",
              "skip_generate",
              "schema"
            ]
          }
        ]
      },
      {
        "path": [
          "db",
          "push"
        ],
        "label": "Push schema",
        "description": "Push the Prisma schema state to the database without migration files.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "schema",
            "label": "Schema path",
            "type": "path",
            "option": [
              "--schema"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_generate",
            "label": "Skip generators",
            "type": "boolean",
            "option": [
              "--skip-generate"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "accept_data_loss",
            "label": "Accept data loss",
            "type": "boolean",
            "option": [
              "--accept-data-loss"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force_reset",
            "label": "Force reset database",
            "type": "boolean",
            "option": [
              "--force-reset"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "push",
            "label": "Push schema",
            "fields": [
              "schema",
              "skip_generate",
              "accept_data_loss",
              "force_reset"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "schema",
              "skip_generate",
              "accept_data_loss",
              "force_reset"
            ]
          }
        ]
      },
      {
        "path": [
          "studio"
        ],
        "label": "Open Studio",
        "description": "Open Prisma Studio to browse and edit data.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "browser",
            "label": "Browser",
            "type": "string",
            "option": [
              "--browser",
              "-b"
            ],
            "suggestions": [
              {
                "value": "firefox",
                "label": "Firefox"
              },
              {
                "value": "chrome",
                "label": "Chrome"
              },
              {
                "value": "safari",
                "label": "Safari"
              },
              {
                "value": "none",
                "label": "None"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "schema",
            "label": "Schema path",
            "type": "path",
            "option": [
              "--schema"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "studio",
            "label": "Open Studio",
            "fields": [
              "port",
              "browser",
              "schema"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "port",
              "browser",
              "schema"
            ]
          }
        ]
      },
      {
        "path": [
          "format"
        ],
        "label": "Format schema",
        "description": "Format the Prisma schema file.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "schema",
            "label": "Schema path",
            "type": "path",
            "option": [
              "--schema"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "format",
            "label": "Format",
            "fields": [
              "schema"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "schema"
            ]
          }
        ]
      }
    ]
  }
}
