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 CLI Reference
Reference for Prisma ORM CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma ORM releases.
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 for Platform projects and databases.
When to Apply
Reference this skill when:
- Setting up a new Prisma project (
prisma init) - Generating Prisma Client (
prisma generate) - Running database migrations (
prisma migrate) - Managing database state (
prisma db push/pull) - Using local development database (
prisma dev) - Debugging Prisma issues (
prisma debug) - Generating shell completions (
prisma complete)