All apps/Prisma

Prisma

prisma

Next-generation ORM and database toolkit for Node.js and TypeScript.

Runs as prisma|macOS, Linux, Windows|www.prisma.io

Command form

ai-draft · 5 tasks · 16 fields

Common Prisma CLI jobs: generate the client, create migrations, push the schema, open Studio and format the schema.

Opens the form; the finished command lands at your prompt, unrun
otty gui prisma

prisma generate

Generate client

Generate artifacts such as Prisma Client from the schema.

Generate clientExample values, fixed in this page — nothing here reaches a terminal
Basic
Schema path
file
Watch for changes
--watch
Hide hints
--no-hints
TasksEach one presets the form for one job
Generate
schemawatchno_hints
ParametersOnly these flags are editable in the form
Schema path
path
--schema
Watch for changes
boolean
--watch
Hide hints
boolean
--no-hints

prisma migrate dev

Create and apply migration

Update the development database using migration files.

Create and apply migrationExample values, fixed in this page — nothing here reaches a terminal
Basic
Migration name
string
Create only, do not apply
--create-only
Skip seed
--skip-seed
Skip generators
--skip-generate
Schema path
file
TasksEach one presets the form for one job
Migrate dev
namecreate_onlyskip_seedskip_generateschema
ParametersOnly these flags are editable in the form
Migration name
If omitted, the CLI prompts for one.
string
--name-n
Schema path
path
--schema
Create only, do not apply
boolean
--create-only
Skip seed
boolean
--skip-seed
Skip generators
boolean
--skip-generate

prisma db push

Push schema

Push the Prisma schema state to the database without migration files.

Push schemaExample values, fixed in this page — nothing here reaches a terminal
Basic
Schema path
file
Skip generators
--skip-generate
Accept data loss
--accept-data-loss
Force reset database
--force-reset
TasksEach one presets the form for one job
Push schema
schemaskip_generateaccept_data_lossforce_reset
ParametersOnly these flags are editable in the form
Schema path
path
--schema
Skip generators
boolean
--skip-generate
Accept data loss
boolean
--accept-data-loss
Force reset database
boolean
--force-reset

prisma studio

Open Studio

Open Prisma Studio to browse and edit data.

Open StudioExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Browser
string
Schema path
file
TasksEach one presets the form for one job
Open Studio
portbrowserschema
ParametersOnly these flags are editable in the form
Port
integer
--port-p
Browser
string
--browser-bfirefoxchromesafarinone
Schema path
path
--schema

prisma format

Format schema

Format the Prisma schema file.

Format schemaExample values, fixed in this page — nothing here reaches a terminal
Basic
Schema path
file
TasksEach one presets the form for one job
Format
schema
ParametersOnly these flags are editable in the form
Schema path
path
--schema
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed prisma against its version. A form that does not match your version is not offered.