prisma-cli

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

1|2|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-cli-byeduarda
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2/tree/main/back/src/.windsurf/skills/prisma-cli
Command: npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-cli-byeduarda

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers working with Prisma ORM often struggle to remember the correct CLI commands, flags, and workflows for tasks like running migrations, generating the client, or seeding databases. This Skill provides an authoritative command reference so AI agents and developers use the right Prisma CLI command with the right options every time. ## Core Features & Use Cases - Complete Command Reference: Covers init, generate, migrate (dev, deploy, reset, status, diff, resolve), db (pull, push, seed, execute), dev, studio, validate, format, debug, complete, and mcp. - 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 setting up a new Node.js backend with PostgreSQL, use this Skill to correctly initialize Prisma, configure prisma.config.ts, run prisma migrate dev, generate the client, and seed the database in the right order. ## Quick Start Ask the AI to show the correct Prisma CLI command and workflow for creating and applying a new database migration in development.

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, making it faster for prototyping. migrate dev creates tracked migration files with history and rollback capability, which is better for team collaboration and production paths.

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 shadow databases. Never use migrate dev in production environments.

Why is prisma migrate reset blocked when an AI agent runs it?▼

Prisma detects AI agents 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 obtain consent immediately before running the command.

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

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.

When should I use prisma db pull?▼

Use db pull to introspect an existing database and generate a Prisma schema from its structure. It is ideal when adopting Prisma on a legacy database, but it overwrites your schema file, so preview with --print first.