Prisma
Next-generation Node.js ORM commands. Migrate databases, generate clients, seed data, and manage schemas.
40 commands
Browse by Topic
Install Prisma
Install Prisma as a dev dependency in your project
Initialize Prisma
Initialize Prisma with a default schema and .env file
Check Prisma version
Display installed Prisma version and engine info
Deploy migrations
Apply pending migrations to production/staging
Create and apply migration
Create migration from schema changes and apply to dev database
Create migration without applying
Generate migration SQL file without applying it to the database
Migration with name
Create named migration from schema changes
Show schema diff
Show differences between schema and database
Diff between two schemas
Generate SQL script of differences between two schema files
Reset database
Reset database and apply all migrations
Reset without seeding
Reset database and apply migrations without running the seed script
Resolve migration
Mark a migration as applied (fix failed migration)
Mark migration as rolled back
Mark a failed migration as rolled back to unblock the migration table
Migration status
Check the status of migrations
Format schema
Format the Prisma schema file
Generate Prisma Client
Generate Prisma Client from schema
Generate from custom schema path
Generate client using a schema file at a non-default location
Generate with watch
Watch schema changes and regenerate client
Initialize Prisma
Initialize Prisma in current project
Initialize with datasource
Initialize Prisma with specific database provider
Initialize with SQLite
Initialize Prisma with SQLite for local development
Initialize with connection URL
Initialize Prisma and set the database connection URL directly
Validate schema
Validate the Prisma schema
Execute SQL file
Execute raw SQL file against database
Execute SQL against specific datasource
Execute raw SQL using the datasource from a specific schema file
Execute SQL from stdin
Execute raw SQL piped through standard input
Pull schema from database
Introspect database and update schema
Force pull (overwrite schema)
Introspect database and overwrite existing schema models
Pull with custom schema path
Introspect database using a schema file at a custom path
Push schema to database
Push schema changes directly to database (no migration)
Push with data loss acceptance
Push schema changes that may result in data loss
Push without generating client
Push schema changes without triggering prisma generate
Seed database
Run database seed script
Debug Prisma commands
Run any Prisma command with full debug logging output
Set Prisma log queries
Start Prisma Studio with query-level logging enabled
Open Prisma Studio
Open visual database browser
Studio without auto-open browser
Launch Prisma Studio without opening a browser window
Studio on custom port
Open Prisma Studio on custom port
Studio with custom schema
Open Prisma Studio using a schema file at a non-default path
Check Prisma version
Show installed Prisma version info
Discussion
Loading comments...