prisma-cli

Document Prisma CLI commands for schema management, migrations, and client generation.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/bluebricks-nl/blue-bricks-template --skill prisma-cli-bluebricks-nl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/bluebricks-nl/blue-bricks-template/tree/main/.claude/skills/prisma-cli
Command: npx skills add https://github.com/bluebricks-nl/blue-bricks-template --skill prisma-cli-bluebricks-nl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and quick reference for all Prisma CLI commands, simplifying database management, schema migrations, and client generation.

Core Features & Use Cases

  • Database Operations: Execute raw SQL, push schema changes, pull schema from existing databases, and seed data.
  • Migrations: Manage development and production migrations, including creating, deploying, resetting, and resolving migration issues.
  • Development Tools: Start local development databases, generate Prisma Client, validate and format schemas, and debug issues.
  • Use Case: When setting up a new project, you can quickly find the exact prisma init command with the correct datasource provider and understand how to generate the Prisma Client for your application.

Quick Start

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

Frequently Asked Questions about prisma-cli

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

FAQPage Schema
How do I create a database schema with Prisma CLI?

To create a database schema with Prisma CLI, use the `prisma init` command to set up your datasource provider and generate the initial schema file. You can then use `prisma db push` to apply schema changes directly to the database during development.

How do I run database migrations in production using Prisma CLI?

Running database migrations in production with Prisma CLI involves using `prisma migrate deploy` to apply pending migration files. This ensures your production database schema updates safely without requiring interactive prompts or development commands.

Can I pull an existing database schema into my project using Prisma CLI?

Yes, you can pull an existing database schema into your project using the `prisma db pull` command. This introspects your database and automatically generates the Prisma schema file based on your current database structure and tables.

Do I need Prisma CLI to execute raw SQL queries during development?

You need Prisma CLI to execute raw SQL queries directly from your terminal using the `prisma db execute` command. This allows developers to run custom SQL scripts against their database without needing a separate database client application.

What is the best way to generate the Prisma Client for database interactions?

The best way to generate the Prisma Client for database interactions is by running the `prisma generate` command. This reads your Prisma schema file and produces a customized, type-safe client library for your application's database queries.

Why is my Prisma schema validation failing and how do I fix it?

Prisma schema validation fails when there are syntax errors or invalid configurations in your schema file. Use the `prisma validate` command to check your schema structure, and `prisma format` to automatically fix formatting issues and ensure compliance.