prisma-cli

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

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/dvegaa20/alia --skill prisma-cli-dvegaa20
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/dvegaa20/alia/tree/main/.agents/skills/prisma-cli
Command: npx skills add https://github.com/dvegaa20/alia --skill prisma-cli-dvegaa20

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers and teams often struggle to remember exact Prisma CLI commands, options, and safe workflows for initializing projects, generating clients, running migrations, and managing local or production databases; this Skill centralizes authoritative guidance to reduce errors and streamline database workflow tasks.

Core Features & Use Cases

  • Complete Command Coverage: Detailed descriptions and options for init, generate, migrate, db, dev, studio, mcp, validate, format, and debug.
  • Migration and Deployment Guidance: Clear workflows for migrate dev, migrate deploy, migrate diff, migrate reset, and resolving failed migrations with best practices for CI/CD and production safety.
  • Database Operations & Local Development: Instructions for db pull/push/execute, seeding patterns, running a local Prisma Postgres instance, and when to prefer db push vs migrations.
  • Use Case: Prepare a CI pipeline that applies pending migrations with migrate deploy, checks migrate status, generates the Prisma client, and runs idempotent seed scripts.

Quick Start

Initialize a new Prisma project, create and apply a migration named add_users_table, generate the Prisma client, and run the seed script.

Frequently Asked Questions about prisma-cli

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

FAQPage Schema
How do I run Prisma migrations in a CI/CD pipeline?

Run Prisma migrations in CI/CD by using migrate deploy to apply pending migrations, checking migrate status, generating the Prisma client, and running idempotent seed scripts for database synchronization.

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

Prisma db push synchronizes your schema directly without migration history, while migrate dev creates and applies migration files for version control, making migrate dev safer for production environments.

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

Initialize a new Prisma project using the init command, create and apply a migration with migrate dev, and then run generate to create the Prisma client for type-safe database access.

Can I use Prisma Studio to manage my local development database?

Yes, you can use Prisma Studio to manage your local development database by launching the studio command, which provides a visual interface to view and edit your data directly.

Why does my Prisma migration fail during deployment and how do I reset it?

Resolve a failed Prisma migration by checking migrate status, fixing schema conflicts, and using migrate reset to recreate the database, followed by generating the client and seeding data.

Does Prisma CLI support database introspection for existing databases?

Yes, Prisma CLI supports database introspection using the db pull command to extract the schema from an existing database and generate the corresponding Prisma schema file.