prisma-cli

Reference Prisma CLI commands for migrations, client generation, and database management.

Updated May 23, 2026
One-click install
npx skills add https://github.com/kveperedo/website --skill prisma-cli-kveperedo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/kveperedo/website/tree/main/.agents/skills/prisma-cli
Command: npx skills add https://github.com/kveperedo/website --skill prisma-cli-kveperedo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers working with Prisma ORM need accurate, up-to-date guidance on CLI commands for project setup, schema migrations, client generation, and database operations without digging through scattered documentation. ## Core Features & Use Cases - Complete Command Reference: Covers all Prisma CLI commands including init, generate, migrate dev/deploy/reset/status/diff/resolve, db push/pull/seed/execute, dev, studio, validate, format, debug, and mcp. - Detailed Per-Command Guides: Each command has a dedicated reference file with options, examples, workflows, and best practices for Prisma 7. - Use Case: When setting up a new project, use this Skill to run prisma init with the right datasource provider, create migrations with prisma migrate dev, and deploy them to production with prisma migrate deploy in CI/CD. ## Quick Start Ask the AI to show you how to create and apply a named Prisma migration for a new database schema change.

Frequently Asked Questions about prisma-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and apply a Prisma migration?▼

Run prisma migrate dev --name your_migration_name during development to create and apply a migration from schema changes. For production, commit the migration files and run prisma migrate deploy in your CI/CD pipeline.

What is the difference between prisma db push and migrate dev?▼

db push syncs the schema directly without creating migration files or tracking history, making it faster for prototyping. migrate dev creates versioned migration files with rollback capability and drift detection, suited for team development and production paths.

Does prisma migrate dev automatically generate the client?▼

In Prisma 7, run prisma generate explicitly after migrate dev, db push, or migrate reset when you need refreshed client output. Seeding also requires running prisma db seed explicitly after migrations.

How do I run Prisma CLI with Bun?▼

Use bunx --bun before Prisma commands, such as bunx --bun prisma generate. Without the --bun flag, the CLI falls back to Node.js because of its shebang.

How do I fix a failed Prisma migration in production?▼

Resolve the underlying issue, then run prisma migrate resolve --rolled-back <migration_name> to mark it as failed, or --applied if it actually succeeded. Afterward, re-run prisma migrate deploy to continue applying pending migrations.

When should I not use prisma db push?▼

Avoid db push in production, team collaboration, or when you need rollback capability, since it creates no migration history. Use migrate dev and migrate deploy instead for trackable, reversible schema changes.