prisma-cli

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

1|Updated Jun 18, 2026
One-click install
npx skills add https://github.com/Sima-Malla/Digital_Menu --skill prisma-cli-sima-malla
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/Sima-Malla/Digital_Menu/tree/main/my-app/.windsurf/skills/prisma-cli
Command: npx skills add https://github.com/Sima-Malla/Digital_Menu --skill prisma-cli-sima-malla

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 like init, generate, migrate, db push, and studio, including correct flags, current configuration patterns, and workflow ordering. ## Core Features & Use Cases - Command Reference: Covers the full Prisma CLI surface including init, generate, migrate dev/deploy/reset/status/diff/resolve, db pull/push/seed/execute, dev, studio, validate, format, debug, and mcp. - Current Configuration Guidance: Documents the prisma.config.ts setup, explicit generate and seed follow-up steps, and Bun runtime usage with bunx --bun. - Use Case: When setting up a new project, follow the init reference to bootstrap the schema and config, then use migrate dev to create migrations, generate to build the client, and db seed to populate data. ## Quick Start Ask the assistant to show how to create and apply a named Prisma migration and then generate 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 in development?

Run prisma migrate dev --name your_migration_name to create and apply a migration from schema changes. It uses a shadow database for drift detection, and you should run prisma generate afterward to refresh the client output.

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

db push syncs the schema directly without creating migration files or history, making it ideal for prototyping and MongoDB. migrate dev creates tracked migration files with rollback capability and is the correct choice for team development and production-bound changes.

How do I apply Prisma migrations in production?

Use prisma migrate deploy in production, staging, and CI/CD pipelines. It applies pending migrations without prompts or a shadow database, and you should run prisma migrate status first to verify the database state.

Does Prisma CLI work with the Bun runtime?

Yes, but you must run commands with bunx --bun, for example bunx --bun prisma generate. Without the --bun flag, the CLI falls back to Node.js because of its shebang.

Why does prisma migrate dev not generate the client automatically?

In current Prisma 7.x behavior, migrate dev does not reliably emit generated client files even though CLI help text suggests it triggers generators. Run prisma generate explicitly after migrate dev, db push, or migrate reset when you need fresh client output.

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. Use migrate dev and migrate deploy instead, since db push creates no migration history.