prisma-cli

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

Updated Jul 27, 2026
One-click install
npx skills add https://github.com/Soares-B/Livia-Lace --skill prisma-cli-soares-b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/Soares-B/Livia-Lace/tree/main/livia-lace/.windsurf/skills/prisma-cli
Command: npx skills add https://github.com/Soares-B/Livia-Lace --skill prisma-cli-soares-b

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 management, without memorizing flags or risking destructive operations. ## Core Features & Use Cases - Command Reference: Covers init, generate, migrate, db push/pull/seed/execute, dev, studio, validate, format, debug, complete, and mcp with options and examples. - AI Safety Checkpoint: Enforces explicit user consent before destructive commands like migrate reset or db push --force-reset when an AI agent is detected. - Use Case: When adding a new field to your schema, consult this skill to run prisma migrate dev --name add_field, then explicitly run prisma generate and prisma db seed as follow-up steps. ## Quick Start Ask the assistant to show how to create and apply a new Prisma migration for a schema change in 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. Afterwards, run prisma generate explicitly to refresh the client and prisma db seed if you need seed data.

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 faster for prototyping. migrate dev creates versioned migration files with drift detection and rollback capability, suited for team development.

How do I apply Prisma migrations in production?

Use prisma migrate deploy in production or CI/CD pipelines. It applies pending migrations without prompts, shadow databases, or drift detection, and never generates new migrations.

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

Prisma detects AI agent environments and blocks destructive commands like migrate 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 the Bun runtime?

Yes, but you must run it with bunx --bun so Prisma uses the Bun runtime. Without the --bun flag, 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, or when you need rollback capability. Use migrate dev and migrate deploy instead for versioned, reversible schema changes.