prisma-cli

Reference Prisma CLI commands, options, and usage patterns.

Updated Dec 5, 2024
One-click install
npx skills add https://github.com/yeohj0710/wellnessbox --skill prisma-cli-yeohj0710
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-cli
Source: https://github.com/yeohj0710/wellnessbox/tree/main/.agents/skills/prisma-cli
Command: npx skills add https://github.com/yeohj0710/wellnessbox --skill prisma-cli-yeohj0710

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prisma CLI reference provides a complete, at-a-glance guide to Prisma CLI commands, options, and usage patterns, helping developers perform setup, generate client, run migrations, and manage databases more efficiently.

Core Features & Use Cases

  • Comprehensive command reference covering init, generate, dev, db, migrate, studio, validate, and format.
  • Typical workflows such as project bootstrap, client generation, migrations in development and production, and local database management.
  • Real-world scenarios with quick lookups to resolve CLI questions and apply best practices.

Quick Start

Look up a specific Prisma CLI command or option and apply the guidance in your project.

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 to apply pending migrations without resetting data. This ensures safe schema updates and database management during deployment.

What is the correct command to generate the Prisma client?

The correct command to generate the Prisma client is prisma generate. This reads your schema and creates a customized client for database access, essential during project bootstrap and local development.

Does Prisma CLI provide a reference for local database management commands?

Yes, Prisma CLI provides a complete reference for local database management, including db push and db pull commands. These help synchronize your schema and manage data during development.

What's the best way to format and validate a Prisma schema?

The best way to format and validate a Prisma schema is using the prisma format and prisma validate commands. These ensure your schema file is syntactically correct and properly styled.

How do I bootstrap a new Prisma project from scratch?

To bootstrap a new Prisma project, use the prisma init command. This creates a base schema file and setup configuration, allowing you to quickly start defining models and connecting to a database.

When should I use Prisma Studio over command line database queries?

You should use Prisma Studio when you need a visual interface to inspect and manage database records. It provides an accessible alternative to command line queries for local development.