prisma-cli

Document Prisma ORM CLI commands for initialization, migration, and database management.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves the complexity of managing Prisma ORM lifecycles, database migrations, and schema synchronization by providing a centralized reference for CLI operations.

Core Features & Use Cases

  • Schema Management: Streamlines schema validation, formatting, and introspection (db pull).
  • Migration Control: Provides safe, repeatable workflows for development (migrate dev) and production (migrate deploy) environments.
  • Database Operations: Facilitates direct database interaction, including seeding, raw SQL execution, and visual data management via Prisma Studio.

Quick Start

Use the prisma-cli skill to initialize a new project with a PostgreSQL datasource provider.

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 production environment?

To run Prisma migrations in production, use the `migrate deploy` command. This applies pending migration files without resetting data or triggering interactive prompts, ensuring safe schema synchronization for deployment workflows.

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

While this skill details `migrate dev` for creating and applying migration files during development, `db push` skips migration history to directly sync schema changes. Use `migrate dev` for trackable, repeatable database schema workflows.

How do I introspect an existing PostgreSQL database with Prisma CLI?

To introspect an existing PostgreSQL database, run the `prisma db pull` command. This connects to your datasource and automatically generates or updates your `schema.prisma` file to reflect the current database structure.

Can I manage and view my database records visually using Prisma CLI?

Yes, you can manage database records visually by running `prisma studio`. This launches a local web interface allowing you to view, edit, and manage your PostgreSQL data directly without writing raw SQL queries.

How do I initialize a new Prisma ORM project with a PostgreSQL database?

Initialize a new Prisma ORM project with PostgreSQL by running `prisma init`. This creates the `schema.prisma` file with a PostgreSQL datasource provider configured, providing the baseline for database management and client generation.

Why do I need to generate the Prisma client after changing my schema?

You must run `prisma generate` after schema changes to update the Prisma Client code. This ensures your TypeScript application has type-safe database access matching the latest models, properties, and relations defined in your schema.