prisma-cli

Guide Prisma CLI commands for setup, migrations, and client generation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires prisma, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the challenge of understanding and efficiently using the Prisma CLI, providing comprehensive guidance for Prisma-related tasks.

Core Features & Use Cases

  • Prisma CLI Commands: Access a detailed reference for all Prisma CLI commands, including setup, generation, validation, development, database operations, migrations, and utility commands.
  • Project Setup: Guide users through initializing new Prisma projects and configuring Prisma Postgres.
  • Client Generation: Instructions for generating Prisma Clients and using watch mode for development.
  • Database Operations: Detailed guidance on database introspection, schema pull, push, seed, and execution of raw SQL scripts.
  • Migrations: Walkthroughs for creating, applying, and managing migrations, including handling data loss and resetting the database.
  • Utility Commands: Information on Prisma Studio, MCP server, versioning, debugging, and schema validation and formatting.
  • Quick Start: Get started with Prisma CLI by initializing a new project and generating a Prisma Client.

Quick Start

Use the prisma-cli skill to initialize a new Prisma project and generate a Prisma Client with the command: prisma init

Frequently Asked Questions about prisma-cli

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

FAQPage Schema
How do I initialize a new Prisma project and generate a Prisma Client?

Initialize a Prisma project using the `prisma init` command to configure Prisma Postgres. You can then generate the Prisma Client using the `prisma generate` command, which creates the client code based on your schema file. Watch mode is available for development.

What is the best way to manage database migrations with Prisma CLI?

Manage Prisma database migrations using dedicated CLI commands to create, apply, and track schema changes. The CLI provides walkthroughs for handling data loss warnings and includes options for resetting the database when necessary.

Can I execute raw SQL scripts and seed my database using Prisma CLI?

Yes, Prisma CLI supports executing raw SQL scripts directly and seeding your database. It provides detailed guidance on database introspection, schema pull, schema push, and seeding operations to populate your database with initial data.

Does the Prisma CLI include a tool for viewing and editing database records?

Yes, the Prisma CLI includes Prisma Studio, a utility command that provides a visual interface. You can use Prisma Studio to view, edit, and manage your database records directly from your browser.

Why does my Prisma schema validation fail and how can I format it?

Prisma schema validation may fail due to syntax errors or invalid configurations. Use the Prisma CLI's validation and formatting utility commands to check your schema, fix structural issues, and ensure it is correctly formatted before generating clients.