prisma-cli

Reference Prisma ORM CLI commands for project setup, migrations, and database operations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Developers working with Prisma ORM need accurate, up-to-date guidance on CLI commands like init, generate, migrate, and db push, including correct flags, current configuration patterns, and workflow ordering. ## Core Features & Use Cases - Command Reference: Covers the full Prisma CLI surface including init, generate, migrate dev/deploy/reset/status/diff/resolve, db pull/push/seed/execute, dev, studio, validate, format, debug, and mcp. - Current Configuration Guidance: Documents the prisma.config.ts setup, explicit generate and seed follow-up steps, and Bun runtime usage with bunx --bun. - Use Case: When setting up a new project, follow the init reference to bootstrap the schema and config, then use migrate dev to create migrations, generate the client, and seed the database with the correct command sequence. ## Quick Start Ask the assistant to show how to create and apply a named Prisma migration and then generate the client for 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 create and apply a Prisma migration in development?▼

Run prisma migrate dev with an optional --name flag to generate and apply a migration from your schema changes. It requires a shadow database for drift detection, and you should run prisma generate afterward to refresh the client.

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

db push syncs the schema directly without creating migration files or tracking history, making it suited for prototyping and MongoDB. migrate dev creates versioned migration files with drift detection and rollback capability, making it the choice for team development.

How do I apply Prisma migrations in production?▼

Use prisma migrate deploy, which applies pending migrations without prompts or a shadow database, making it safe for CI/CD pipelines. Check prisma migrate status first, and never run migrate dev in production.

Does Prisma CLI work with the Bun runtime?▼

Yes, but you must add the --bun flag so Prisma runs with the Bun runtime instead of falling back to Node.js due to the CLI shebang. Use bunx --bun prisma init and bunx --bun prisma generate.

Why is my Prisma Client not updated after running migrate dev?▼

In current Prisma versions, migrate dev does not reliably emit generated client files, so run prisma generate explicitly after schema-changing commands. The same applies to db seed, which must be run separately after migrations.

When should I not use this Prisma CLI reference?▼

Do not use it for Prisma Compute app deployment tasks such as @prisma/cli app deploy, compute:deploy, create-prisma --deploy, or managing Compute apps, logs, and domains. Those workflows belong to the prisma-compute skill instead.