Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
prisma avatar

Prisma Cli

  • 109k installs
  • 50 repo stars
  • Updated August 4, 2026
  • prisma/skills

Prisma ORM command-line interface for project initialization, Prisma Client generation, schema migrations, database operations, and development utilities.

About

Prisma CLI provides command reference for ORM operations including init, generate, migrate, db, dev, studio, validate, format, debug, and mcp. Developers use it to bootstrap projects, generate Prisma Client, manage database migrations, introspect schemas, seed data, and run local development databases. Key workflows cover setup (prisma init with datasource provider), client generation in watch mode, development migrations with prisma migrate dev, production deployments via prisma migrate deploy, and local Prisma Postgres instances via prisma dev. Configuration uses prisma.config.ts with environment variable loading. The skill excludes Prisma Compute app deployment - use prisma-compute for app deploy, compute:deploy, and framework readiness.

  • Initialize projects with prisma init, optional datasource provider selection (postgresql, mysql, sqlite), or cloud Prism
  • Generate Prisma Client explicitly after schema syncs; use --watch mode for development iteration
  • Manage migrations with prisma migrate dev (development) and prisma migrate deploy (production CI/CD); check status and r
  • Operate local development database via prisma dev with detach, list, stop, and rm subcommands; manages Prisma Postgres i
  • Execute database operations: prisma db pull (introspect), db push (schema sync), db seed (data loading), db execute (raw

Prisma Cli by the numbers

  • 108,799 all-time installs (skills.sh)
  • +44,034 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #8 of 911 Databases skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

prisma-cli capabilities & compatibility

Capabilities
initialize new prisma projects with configurable · generate and regenerate prisma client in watch m · create, apply, and manage database migrations · introspect existing database schemas · push schema changes directly to database · run local development databases via prisma postg · seed databases with data · execute raw sql scripts · validate and format prisma schemas · open prisma studio database gui
Works with
postgres · mysql
Use cases
database · api development · ci cd · debugging
Platforms
macOS · Windows · Linux
Pricing
Free
npx skills add https://github.com/prisma/skills --skill prisma-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs109k
repo stars50
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryprisma/skills

What it does

Execute Prisma ORM CLI commands for project initialization, client generation, migrations, and database operations in development and production workflows.

Who is it for?

Backend developers building TypeScript/Node.js applications with relational databases; teams using Prisma ORM for schema-driven development and migration management.

Skip if: Prisma Compute app deployment, Docker container orchestration, cloud infrastructure provisioning, or non-ORM database administration.

When should I use this skill?

Developer runs prisma init, prisma generate, prisma migrate dev, prisma db pull/push, prisma studio, prisma mcp, prisma dev, or prisma debug.

What you get

Developers can bootstrap Prisma projects, generate fresh Prisma Client code, deploy migrations to production, introspect schemas, seed data, and run isolated local databases via CLI commands.

  • Migration files
  • Generated Prisma Client
  • Configured schema.prisma

By the numbers

  • Supports PostgreSQL, MySQL, and SQLite via datasource provider flag
  • Prisma version 7.6.0 referenced in documentation
  • 13 primary command categories documented: init, generate, validate, format, dev, db pull/push/seed/execute, migrate dev/

Files

SKILL.mdMarkdownGitHub ↗

Prisma CLI Reference

Reference for Prisma ORM CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma ORM releases.

Boundary: Compute

Do not use this skill for Prisma Compute app deployment. Use prisma-compute for @prisma/cli app deploy, compute:deploy, create-prisma --deploy, Compute apps, deployments, logs, domains, and framework deploy readiness.

When to Apply

Reference this skill when:

  • Setting up a new Prisma project (prisma init)
  • Generating Prisma Client (prisma generate)
  • Running database migrations (prisma migrate)
  • Managing database state (prisma db push/pull)
  • Using local development database (prisma dev)
  • Debugging Prisma issues (prisma debug)

Rule Categories by Priority

PriorityCategoryImpactPrefix
1SetupHIGHinit
2GenerationHIGHgenerate
3DevelopmentHIGHdev
4DatabaseHIGHdb-
5MigrationsCRITICALmigrate-
6UtilityMEDIUMstudio, validate, format, debug, mcp

Command Categories

CategoryCommandsPurpose
SetupinitBootstrap new Prisma project
GenerationgenerateGenerate Prisma Client
Validationvalidate, formatSchema validation and formatting
DevelopmentdevLocal Prisma Postgres for development
Databasedb pull, db push, db seed, db executeDirect database operations
Migrationsmigrate dev, migrate deploy, migrate reset, migrate status, migrate diff, migrate resolveSchema migrations
Utilitystudio, mcp, version, debugDevelopment and AI tooling

Quick Reference

Project Setup

# Initialize new project (creates prisma/ folder and prisma.config.ts)
prisma init

# Initialize with specific database
prisma init --datasource-provider postgresql
prisma init --datasource-provider mysql
prisma init --datasource-provider sqlite

# Initialize with Prisma Postgres (cloud)
prisma init --db

# Initialize with an example model
prisma init --with-model

Client Generation

# Generate Prisma Client
prisma generate

# Watch mode for development
prisma generate --watch

# Generate specific generator only
prisma generate --generator client

Bun Runtime

When using Bun, always add the --bun flag so Prisma runs with the Bun runtime (otherwise it falls back to Node.js because of the CLI shebang):

bunx --bun prisma init
bunx --bun prisma generate

Local Development Database

# Start local Prisma Postgres
prisma dev

# Start with specific name
prisma dev --name myproject

# Start in background (detached)
prisma dev --detach

# List all local instances
prisma dev ls

# Stop instance
prisma dev stop myproject

# Remove instance data
prisma dev rm myproject

Database Operations

# Pull schema from existing database
prisma db pull

# Push schema to database (no migrations)
prisma db push

# Seed database
prisma db seed

# Execute raw SQL
prisma db execute --file ./script.sql

Migrations (Development)

# Create and apply migration
prisma migrate dev

# Create migration with name
prisma migrate dev --name add_users_table

# Create migration without applying
prisma migrate dev --create-only

# Reset database and apply all migrations
prisma migrate reset

Migrations (Production)

# Apply pending migrations (CI/CD)
prisma migrate deploy

# Check migration status
prisma migrate status

# Compare schemas and generate diff
prisma migrate diff --from-config-datasource --to-schema schema.prisma --script

Utility Commands

# Open Prisma Studio (database GUI)
prisma studio

# Start Prisma's MCP server for AI tools
prisma mcp

# Show version info
prisma version
prisma -v

# Debug information
prisma debug

# Validate schema
prisma validate

# Format schema
prisma format

Current Prisma CLI Setup

New Configuration File

Use prisma.config.ts for CLI configuration:

import 'dotenv/config'
import { defineConfig, env } from 'prisma/config'

export default defineConfig({
  schema: 'prisma/schema.prisma',
  migrations: {
    path: 'prisma/migrations',
    seed: 'tsx prisma/seed.ts',
  },
  datasource: {
    url: env('DATABASE_URL'),
  },
})

Current Command Behavior

  • Run prisma generate explicitly after migrate dev, db push, or other schema syncs when you need fresh client output
  • Run prisma db seed explicitly after migrate dev or migrate reset when you need seed data
  • Use prisma db execute --file ... for raw SQL scripts

Environment Variables

Load environment variables explicitly in prisma.config.ts, commonly with dotenv:

// prisma.config.ts
import 'dotenv/config'

Rule Files

See individual rule files for detailed command documentation:

references/init.md           - Project initialization
references/generate.md       - Client generation
references/dev.md            - Local development database
references/db-pull.md        - Database introspection
references/db-push.md        - Schema push
references/db-seed.md        - Database seeding
references/db-execute.md     - Raw SQL execution
references/migrate-dev.md    - Development migrations
references/migrate-deploy.md - Production migrations
references/migrate-reset.md  - Database reset
references/migrate-status.md - Migration status
references/migrate-resolve.md - Migration resolution
references/migrate-diff.md   - Schema diffing
references/studio.md         - Database GUI
references/mcp.md            - Prisma MCP server
references/validate.md       - Schema validation
references/format.md         - Schema formatting
references/debug.md          - Debug info

How to Use

Use the command categories above for navigation, then open the specific command reference file you need.

Related skills

Forks & variants (1)

Prisma Cli has 1 known copy in the catalog totaling 7 installs. They canonicalize to this original listing.

How it compares

Pick prisma-cli over generic database skills when the task involves Prisma CLI syntax, flags, or migration workflows specifically.

FAQ

When should I use prisma migrate dev vs prisma migrate deploy?

Use prisma migrate dev during development to create and apply migrations locally. Use prisma migrate deploy in CI/CD production pipelines to apply only pending migrations without creating new ones.

How do I start a local Prisma Postgres database for development?

Run prisma dev to start a local Prisma Postgres instance. Use --detach to run in background, --name to specify instance name, and prisma dev stop/rm to manage instances.

Do I need to run prisma generate after migrations?

Yes, run prisma generate explicitly after migrate dev, db push, or other schema syncs when you need fresh Prisma Client output reflecting schema changes.

Is Prisma Cli safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Databasesdatabasespipelines

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.