prisma-cli

Document Prisma CLI commands and options for ORM workflows.

Updated Oct 12, 2025
One-click install
npx skills add https://github.com/zomeru/rezumerai --skill prisma-cli-zomeru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/zomeru/rezumerai/tree/main/.agents/skills/prisma-cli
Command: npx skills add https://github.com/zomeru/rezumerai --skill prisma-cli-zomeru

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Prisma CLI reference provides quick, authoritative guidance on the Prisma CLI commands and their options, helping developers complete tasks faster and with less trial-and-error.

Core Features & Use Cases

  • Comprehensive Command Coverage: Documents core commands (init, generate, dev, migrate, db push, studio, format) and common options, with practical usage notes.
  • Workflow Guidance: Illustrates typical workflows for project bootstrap, client generation, migrations, and database interactions.
  • Use Case Examples: Serves as a reference during onboarding of new Prisma projects, debugging schema changes, and optimizing development pipelines.

Quick Start

Follow the Prisma CLI reference to bootstrap projects, generate clients, run migrations, and manage the database.

Frequently Asked Questions about prisma-cli

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

FAQPage Schema
How do I use the Prisma CLI to initialize a new project and generate the client?

To initialize a new Prisma project, use the `prisma init` command to set up your schema file, then run `prisma generate` to create the Prisma Client based on your schema definitions. This workflow bootstraps your ORM setup and prepares the client for database interactions.

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

`prisma migrate dev` creates and applies migration files during development, preserving your database history. `prisma db push` directly synchronizes your schema to the database without creating migration history, making it ideal for rapid prototyping and schema debugging.

When should I use `prisma migrate deploy` instead of `prisma migrate dev`?

Use `prisma migrate deploy` in production environments to apply existing migration files without triggering interactive prompts. `prisma migrate dev` is intended for development workflows where you need to create, test, and reset migrations iteratively.

How does `prisma studio` work for database interactions?

`prisma studio` opens a visual interface that connects directly to your database, allowing you to view, edit, and manage records through a browser-based GUI. It provides an intuitive way to inspect data without writing manual SQL queries.

Can I use Prisma CLI commands with Prisma 7.x workflows?

Yes, the Prisma CLI command reference documents usage patterns specifically aligned with Prisma 7.x workflows. It covers typical workflows for project bootstrap, client generation, migrations, and database interactions optimized for this version.

Why is my Prisma schema not generating the client after updates?

If the Prisma Client is not reflecting schema updates, run `prisma generate` to rebuild the client. If the database schema is out of sync, apply changes using `prisma migrate dev` or `prisma db push` before generating the client.