prisma-cli

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

2|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/UdayPandey01/Healix --skill prisma-cli-udaypandey01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/UdayPandey01/Healix/tree/main/core/.agents/skills/prisma-cli
Command: npx skills add https://github.com/UdayPandey01/Healix --skill prisma-cli-udaypandey01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers working with Prisma ORM often misremember CLI flags, confuse the ORM CLI with the Platform CLI, or run destructive commands like migrate reset without understanding data-loss consequences. This Skill provides an accurate, version-current reference for every Prisma ORM CLI command. ## Core Features & Use Cases - Full Command Coverage: Documents init, generate, migrate (dev, deploy, reset, status, diff, resolve), db (pull, push, seed, execute), dev, studio, validate, format, debug, complete, and mcp with options and examples. - AI Safety Checkpoint: Enforces an explicit user-consent workflow before destructive commands such as migrate reset or db push --force-reset when an AI agent is detected. - Use Case: While building a Node.js API, ask the agent to create and apply a migration for a new model; it uses prisma migrate dev --name, then reminds you to run prisma generate and prisma db seed explicitly afterward. ## Quick Start Ask the agent to create and apply a new Prisma migration named add_users_table 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 in development?

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

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

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

How do I apply Prisma migrations in production or CI/CD?

Use prisma migrate deploy, which applies pending migrations without prompts, shadow databases, or drift detection. Run prisma migrate status first to verify state, and never use migrate dev in production.

Why is prisma migrate reset blocked when run by an AI agent?

Prisma detects AI-agent environments and blocks destructive commands like migrate reset and db push --force-reset until the user gives explicit consent. The agent must explain the data-loss impact and pass the exact consent text via PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION.

Does Prisma CLI work with Bun instead of Node.js?

Yes, but you must invoke it with bunx --bun so Prisma runs under the Bun runtime. Without the --bun flag, the CLI shebang causes it to fall back to Node.js.

When should I use prisma db pull?

Use db pull to introspect an existing database and generate a Prisma schema from its tables and relations. Preview with --print first, since pulling overwrites your schema file and discards manual customizations.