prisma-cli

Reference Prisma ORM CLI commands for setup, migrations, and database operations.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill prisma-cli-quanngynx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI/tree/main/servexa-warranty-ai/.cursor/skills/prisma-cli
Command: npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill prisma-cli-quanngynx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prisma CLI commands are powerful but easy to misuse when switching between project setup, migrations, local development, and production deployment.

Core Features & Use Cases

  • End-to-end Prisma CLI reference: Covers the major command families needed to bootstrap projects, generate clients, manage local databases, and run migrations.
  • Decision-focused guidance: Helps you choose between workflows like db push vs migrate dev vs migrate deploy, including common v7 behavioral changes.
  • Targeted sub-command docs: Includes dedicated reference pages for key operations such as prisma db pull, prisma db push, prisma db seed, prisma db execute, prisma migrate dev, prisma migrate deploy, and more.

Quick Start

Use the prisma-cli skill to look up how to apply pending production migrations safely with prisma migrate deploy.

Frequently Asked Questions about prisma-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply pending Prisma migrations safely in production?

Use `prisma migrate deploy` to apply pending production migrations safely. It applies pending migration files without resetting your database schema or triggering interactive prompts, ensuring safe production deployment.

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

`prisma db push` applies schema changes directly to the database without generating migration history, while `prisma migrate dev` creates and applies migration files for version control. Choose `db push` for prototyping and `migrate dev` for tracked schema changes.

How do I initialize a new Prisma ORM project and generate the client?

Initialize a new Prisma ORM project using `prisma init` to create the schema file, then run `prisma generate` to create the client. This setup process prepares your database connection and generates the required TypeScript or JavaScript query builder.

Does Prisma 7 change the behavior of database migrations and schema validation?

Yes, Prisma 7 introduces behavioral changes for database migrations and schema validation. Following the updated Prisma 7 behavior correctly ensures your `prisma migrate` and `prisma validate` workflows maintain expected migration safety and schema integrity.

Can I run Prisma Studio to inspect my database during local development?

Yes, you can run `prisma studio` to inspect and manage your database during local development. It provides a visual interface for viewing and editing data directly, complementing your local database management workflow.

Why is my prisma db pull command not syncing the schema correctly?

If `prisma db pull` is not syncing correctly, ensure your database connection URL is accurate and the database matches the expected Prisma schema format. Use `prisma validate` to check the schema and `prisma format` to maintain consistent file structure.