prisma-cli

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

7|2|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/ysfcl/GeoMorphosis --skill prisma-cli-ysfcl
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/ysfcl/GeoMorphosis/tree/main/.windsurf/skills/prisma-cli
Command: npx skills add https://github.com/ysfcl/GeoMorphosis --skill prisma-cli-ysfcl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers working with Prisma ORM often struggle to remember the exact CLI commands, flags, and workflows for tasks like running migrations, generating the client, or seeding a database, leading to errors and lost time. ## 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. - Workflow Guidance: Explains when to use db push versus migrate dev, how to handle production deployments with migrate deploy, and how to recover from failed migrations with 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 to create migrations and a typed client, and finally run db seed to populate development data. ## Quick Start Ask the assistant to show how to create and apply a named Prisma migration and then regenerate the client for your project.

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 generate and apply a migration from schema changes. For production, commit the migration files and run prisma migrate deploy, which applies pending migrations without prompts.

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 drift detection and rollback capability, which is better for team collaboration and production paths.

Does prisma migrate dev automatically run generate and seed?▼

In current Prisma releases you should run prisma generate and prisma db seed explicitly after migrate dev when you need refreshed client output or seed data. Configure the seed command under migrations.seed in prisma.config.ts.

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 rolled back, and re-run prisma migrate deploy. Use prisma migrate status first to inspect which migrations failed or are pending.

Can I use Prisma CLI with Bun instead of Node.js?▼

Yes, but always add the --bun flag, for example bunx --bun prisma generate, so Prisma runs with the Bun runtime. Without it, the CLI falls back to Node.js because of its shebang.

When should I not use prisma db push?▼

Avoid db push in production, in team environments needing trackable changes, and whenever you need rollback capability, since it creates no migration history. Use migrate dev and migrate deploy instead for those scenarios.