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

Prisma Cli

  • 7 installs
  • 2 repo stars
  • Updated July 1, 2026
  • prisma/prisma-plugin

This is a copy of prisma-cli by prisma - installs and ranking accrue to the original listing.

prisma-cli is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

Key points

  • prisma-cli
  • AI & Agent Building
  • AI-coding skill

Prisma Cli by the numbers

  • 7 all-time installs (skills.sh)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/prisma/prisma-plugin --skill prisma-cli

Add your badge

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

Listed on Skillselion
Installs7
repo stars2
Last updatedJuly 1, 2026
Repositoryprisma/prisma-plugin

How do I helps with ai & agent building tasks during ai-assisted development?

Helps with ai & agent building tasks during AI-assisted development.

Who is it for?

Best when you're working on ai & agent building and need structured help with prisma-cli.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks during ai-assisted development, or when prisma-cli is a claude code skill for ai & agent building. it helps solo builders move faster with ai-assisted coding.

What you get

Structured output aligned to prisma-cli: prisma-cli; AI & Agent Building; AI-coding skill.

Files

SKILL.mdMarkdownGitHub ↗

Prisma CLI Reference

Complete reference for Prisma ORM CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma 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
Setupinit, bootstrapBootstrap new Prisma project or Prisma Postgres workflow
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
Prisma Postgrespostgres linkLink a local project to a Prisma Postgres database
Utilitystudio, mcp, platform, version, debugDevelopment and AI tooling

Quick Reference

Project Setup

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

# Bootstrap a Prisma Postgres project or starter
prisma bootstrap

# 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

# Link an existing local project to Prisma Postgres
prisma postgres link

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

  • The current migrate dev implementation applies migrations and does not call prisma generate or prisma db seed; run those explicitly when needed.
  • The current migrate reset implementation resets and reapplies migrations; run prisma generate and prisma db seed explicitly when needed.
  • 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/bootstrap.md      - Prisma Postgres project bootstrap
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/postgres-link.md  - Prisma Postgres project linking
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

FAQ

What does prisma-cli do?

prisma-cli is a Claude Code skill for ai & agent building. It helps developers move faster with AI-assisted coding.

When should I use prisma-cli?

When you need to helps with ai & agent building tasks during ai-assisted development, or when prisma-cli is a claude code skill for ai & agent building. it helps developers move faster with ai-assisted coding.

What are the main capabilities?

prisma-cli; AI & Agent Building; AI-coding skill.

This week in AI coding

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

unsubscribe anytime.