prisma-cli
Installation
Summary
Complete reference for Prisma CLI commands, options, and workflows across setup, migrations, and database operations.
- Covers 20+ commands organized by priority: setup (
init), generation (generate), development (dev), database operations (db pull/push/seed/execute), and migrations (migrate dev/deploy/reset/status/diff/resolve) - Includes Prisma 7.x changes: new
prisma.config.tsconfiguration file, removed flags (--skip-generate,--skip-seed,--schema,--url), and explicit environment variable loading viadotenv - Supports local Prisma Postgres development (
prisma dev), schema introspection (db pull), direct schema application (db push), and database seeding - Provides Bun runtime support with
--bunflag and utility commands for schema validation, formatting, and Prisma Studio access
SKILL.md
Prisma ORM 7 CLI reference
These commands and examples apply to Prisma ORM 7 only. For setup, connection repair, or a Prisma 8 application, load prisma-orm-setup.
Use the project's version-matched CLI. Do not install a floating prisma@latest to run these commands.
Boundary: Platform and Compute
Do not confuse the stable ORM command (prisma) with the public-beta Platform package (@prisma/cli, binary prisma-cli). Use prisma-compute for Compute apps and workspace auth, and prisma-postgres-setup for Platform projects and databases.