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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts" license = "MIT" [[commands.subcommand]] path = ["generate"] label = "Generate client" description = "Generate artifacts such as Prisma Client from the schema." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts" license = "MIT" [[commands.subcommand.field]] id = "schema" label = "Schema path" type = "path" option = ["--schema"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "watch" label = "Watch for changes" type = "boolean" option = ["--watch"] sources = ["fig"] [[commands.subcommand.field]] id = "no_hints" label = "Hide hints" type = "boolean" option = ["--no-hints"] sources = ["fig"] [[commands.subcommand.task]] id = "generate" label = "Generate" fields = ["schema", "watch", "no_hints"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["schema", "watch", "no_hints"] [[commands.subcommand]] path = ["migrate","dev"] label = "Create and apply migration" description = "Update the development database using migration files." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Migration name" description = "If omitted, the CLI prompts for one." type = "string" option = ["--name", "-n"] sources = ["fig"] [[commands.subcommand.field]] id = "schema" label = "Schema path" type = "path" option = ["--schema"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "create_only" label = "Create only, do not apply" type = "boolean" option = ["--create-only"] sources = ["fig"] [[commands.subcommand.field]] id = "skip_seed" label = "Skip seed" type = "boolean" option = ["--skip-seed"] sources = ["fig"] [[commands.subcommand.field]] id = "skip_generate" label = "Skip generators" type = "boolean" option = ["--skip-generate"] sources = ["fig"] [[commands.subcommand.task]] id = "dev" label = "Migrate dev" fields = ["name", "create_only", "skip_seed", "skip_generate", "schema"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "create_only", "skip_seed", "skip_generate", "schema"] [[commands.subcommand]] path = ["db","push"] label = "Push schema" description = "Push the Prisma schema state to the database without migration files." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts" license = "MIT" [[commands.subcommand.field]] id = "schema" label = "Schema path" type = "path" option = ["--schema"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "skip_generate" label = "Skip generators" type = "boolean" option = ["--skip-generate"] sources = ["fig"] [[commands.subcommand.field]] id = "accept_data_loss" label = "Accept data loss" type = "boolean" option = ["--accept-data-loss"] effect = "delete" sources = ["fig"] [[commands.subcommand.field]] id = "force_reset" label = "Force reset database" type = "boolean" option = ["--force-reset"] effect = "delete" sources = ["fig"] [[commands.subcommand.task]] id = "push" label = "Push schema" fields = ["schema", "skip_generate", "accept_data_loss", "force_reset"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["schema", "skip_generate", "accept_data_loss", "force_reset"] [[commands.subcommand]] path = ["studio"] label = "Open Studio" description = "Open Prisma Studio to browse and edit data." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts" license = "MIT" [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port", "-p"] sources = ["fig"] [[commands.subcommand.field]] 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"] [[commands.subcommand.field]] id = "schema" label = "Schema path" type = "path" option = ["--schema"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.task]] id = "studio" label = "Open Studio" fields = ["port", "browser", "schema"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["port", "browser", "schema"] [[commands.subcommand]] path = ["format"] label = "Format schema" description = "Format the Prisma schema file." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/prisma.ts" license = "MIT" [[commands.subcommand.field]] id = "schema" label = "Schema path" type = "path" option = ["--schema"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.task]] id = "format" label = "Format" fields = ["schema"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["schema"]