prisma avatar

Prisma Cli

A comprehensive reference for all Prisma CLI commands, from project setup to production migrations. Covers the current v7.6.0 command structure including the new prisma.config.ts configuration file, local development database commands, and the MCP server for AI tooling. Includes specific flags for different runtimes like Bun, handles both development workflows (migrate dev, db push) and production deployments (migrate deploy), and covers utility commands like Studio and schema validation. The reference is organized by priority and impact, making it easy to find the right command whether you're bootstrapping a new project or debugging migration issues in production.

skills.sh installs
416.7K
GitHub stars
80
last updated
Aug 21, 2026

Install

$ npx -y skills add prisma/skills --skill prisma-cli --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

When to Apply

Reference this skill when:

  • Setting up an explicitly selected Prisma 7 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)

Rule Categories by Priority

Sponsors

Details

Repository
github.com/prisma/skills
Categories
Backend & APIs, Code Review & Quality, AI & Agent Building, Debugging, CLI & Terminal, Databases

More from prisma/skills

All 10
1prisma avatarprisma-postgres-setupprisma/skillsSet up a new Prisma Postgres database and connect it to a local project using the Management API. Use when asked to "set up a database", "create a Prisma Postgr404.5Kskills.sh installs
2prisma avatarprisma-driver-adapter-implementationprisma/skillsRequired reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter,404.4Kskills.sh installs
3supabase avatarsupabasesupabase/agent-skillsUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libra361.1Kskills.sh installs
4firebase avatarfirebase-app-hosting-basicsfirebase/agent-skillsDeploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App Hosting. Use when deploying Next.js/Angul176.9Kskills.sh installs
5firebase avatarfirebase-data-connectfirebase/agent-skillsBuilds and deploys Firebase SQL Connect (aka Firebase Data Connect) backends with PostgreSQL securely. Use when designing schemas with tables and relations, wri175.9Kskills.sh installs
6firebase avatarfirebase-security-rules-auditorfirebase/agent-skillsAudits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource e146.2Kskills.sh installs