prisma-cli

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

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/DimonikRV/ghost-pilot-project --skill prisma-cli-dimonikrv
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/DimonikRV/ghost-pilot-project/tree/main/.agents/skills/prisma-cli
Command: npx skills add https://github.com/DimonikRV/ghost-pilot-project --skill prisma-cli-dimonikrv

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 schema migrations, client generation, and database management without digging through scattered documentation. ## Core Features & Use Cases - Command Reference: Covers the full Prisma CLI surface including init, generate, migrate, db push/pull/seed/execute, dev, studio, validate, format, debug, and mcp. - Migration Workflows: Detailed guidance for development migrations (migrate dev), production deployments (migrate deploy), drift detection, baselining, and failure recovery (migrate resolve). - Use Case: When setting up a new project, follow the init reference to bootstrap prisma.config.ts, then use migrate dev and generate references to create migrations and produce a typed Prisma Client. ## Quick Start Ask the AI to show how to create and apply a named Prisma migration and then regenerate the Prisma Client.

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 to create and apply a migration during development. It uses a shadow database to detect drift, generates SQL files in prisma/migrations, and applies them to your development database.

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

db push syncs schema changes directly without creating migration files or tracking history, making it faster for prototyping. migrate dev creates versioned migration files with rollback capability, making it the right choice for team collaboration and production-bound work.

Does Prisma CLI work with the Bun runtime?▼

Yes, but you must add the --bun flag when running commands via bunx, such as bunx --bun prisma generate. Without it, the CLI falls back to Node.js because of its shebang.

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

Use prisma migrate resolve --rolled-back <migration_name> to mark the failed migration as rolled back, fix the underlying SQL or database issue, then re-run prisma migrate deploy. Check prisma migrate status first to confirm the failure.

When should I not use prisma db push?▼

Avoid db push in production environments, team workflows requiring trackable changes, and any scenario needing rollback capability. Use migrate dev and migrate deploy instead, since db push creates no migration history.