.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/skills/prisma-cli
home/skills/prisma/skills/prisma-cli
prisma avatar

prisma-cli

byprisma· 91 skills

Installs

71k

Stars

47

Forks

3

Category

Databases

View on GitHub

TL;DR

Prisma ORM CLI commands reference covering init, generate, migrate, db, dev, studio, validate, format, debug, and mcp. Use for ORM/database CLI workflows, not Prisma Compute app deployment. For Prisma Compute, @prisma/cli app deploy, compute:deploy, create-prisma --deploy, apps, deployments, logs, or domains, use the prisma-compute skill instead. Triggers on "prisma init", "prisma generate", "prisma migrate", "prisma db", "prisma studio", "prisma mcp".

How to install prisma-cli?

prisma/skills/prisma-cli
$npx -y skills add prisma/skills --skill prisma-cli

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/prisma/skills" --skill "prisma/skills/prisma-cli"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/prisma/skills" that are relevant to the current task. Run `npx skills add "https://github.com/prisma/skills"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1# Prisma CLI Reference
2 
3Reference for Prisma ORM CLI commands. This skill provides guidance on command usage, options, and best practices for current Prisma ORM releases.
4 
5## Boundary: Compute
6 
7Do 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.
8 
9## When to Apply
10 
11Reference this skill when:
12- Setting up a new Prisma project (`prisma init`)
13- Generating Prisma Client (`prisma generate`)
14- Running database migrations (`prisma migrate`)
15- Managing database state (`prisma db push/pull`)
16- Using local development database (`prisma dev`)
17- Debugging Prisma issues (`prisma debug`)
18 
19## Rule Categories by Priority
20 
21| Priority | Category | Impact | Prefix |
22|----------|----------|--------|--------|
23| 1 | Setup | HIGH | `init` |
24| 2 | Generation | HIGH | `generate` |
25| 3 | Development | HIGH | `dev` |
26| 4 | Database | HIGH | `db-` |
27| 5 | Migrations | CRITICAL | `migrate-` |
28| 6 | Utility | MEDIUM | `studio`, `validate`, `format`, `debug`, `mcp` |
29 
30## Command Categories
31 
32| Category | Commands | Purpose |
33|----------|----------|---------|
34| Setup | `init` | Bootstrap new Prisma project |
35| Generation | `generate` | Generate Prisma Client |
36| Validation | `validate`, `format` | Schema validation and formatting |
37| Development | `dev` | Local Prisma Postgres for development |
38| Database | `db pull`, `db push`, `db seed`, `db execute` | Direct database operations |
39| Migrations | `migrate dev`, `migrate deploy`, `migrate reset`, `migrate status`, `migrate diff`, `migrate resolve` | Schema migrations |
40| Utility | `studio`, `mcp`, `version`, `debug` | Development and AI tooling |
41 
42## Quick Reference
43 
44### Project Setup
45 
46```bash
47# Initialize new project (creates prisma/ folder and prisma.config.ts)
48prisma init
49 
50# Initialize with specific database
51prisma init --datasource-provider postgresql
52prisma init --datasource-provider mysql
53prisma init --datasource-provider sqlite
54 
55# Initialize with Prisma Postgres (cloud)
56prisma init --db
57 
58# Initialize with an example model
59prisma init --with-model
60```
61 
62### Client Generation
63 
64```bash
65# Generate Prisma Client
66prisma generate
67 
68# Watch mode for development
69prisma generate --watch
70 
71# Generate specific generator only
72prisma generate --generator client
73```
74 
75### Bun Runtime
76 
77When 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):
78 
79```bash
80bunx --bun prisma init
81bunx --bun prisma generate
82```
83 
84### Local Development Database
85 
86```bash
87# Start local Prisma Postgres
88prisma dev
89 
90# Start with specific name
91prisma dev --name myproject
92 
93# Start in background (detached)
94prisma dev --detach
95 
96# List all local instances
97prisma dev ls
98 
99# Stop instance
100prisma dev stop myproject
101 
102# Remove instance data
103prisma dev rm myproject
104```
105 
106### Database Operations
107 
108```bash
109# Pull schema from existing database
110prisma db pull
111 
112# Push schema to database (no migrations)
113prisma db push
114 
115# Seed database
116prisma db seed
117 
118# Execute raw SQL
119prisma db execute --file ./script.sql
120```
121 
122### Migrations (Development)
123 
124```bash
125# Create and apply migration
126prisma migrate dev
127 
128# Create migration with name
129prisma migrate dev --name add_users_table
130 
131# Create migration without applying
132prisma migrate dev --create-only
133 
134# Reset database and apply all migrations
135prisma migrate reset
136```
137 
138### Migrations (Production)
139 
140```bash
141# Apply pending migrations (CI/CD)
142prisma migrate deploy
143 
144# Check migration status
145prisma migrate status
146 
147# Compare schemas and generate diff
148prisma migrate diff --from-config-datasource --to-schema schema.prisma --script
149```
150 
151### Utility Commands
152 
153```bash
154# Open Prisma Studio (database GUI)
155prisma studio
156 
157# Start Prisma's MCP server for AI tools
158prisma mcp
159 
160# Show version info
161prisma version
162prisma -v
163 
164# Debug information
165prisma debug
166 
167# Validate schema
168prisma validate
169 
170# Format schema
171prisma format
172```
173 
174## Current Prisma CLI Setup
175 
176### New Configuration File
177 
178Use `prisma.config.ts` for CLI configuration:
179 
180```typescript
181import 'dotenv/config'
182import { defineConfig, env } from 'prisma/config'
183 
184export default defineConfig({
185 schema: 'prisma/schema.prisma',
186 migrations: {
187 path: 'prisma/migrations',
188 seed: 'tsx prisma/seed.ts',
189 },
190 datasource: {
191 url: env('DATABASE_URL'),
192 },
193})
194```
195 
196### Current Command Behavior
197 
198- Run `prisma generate` explicitly after `migrate dev`, `db push`, or other schema syncs when you need fresh client output
199- Run `prisma db seed` explicitly after `migrate dev` or `migrate reset` when you need seed data
200- Use `prisma db execute --file ...` for raw SQL scripts
201 
202### Environment Variables
203 
204Load environment variables explicitly in `prisma.config.ts`, commonly with `dotenv`:
205 
206```typescript
207// prisma.config.ts
208import 'dotenv/config'
209```
210 
211## Rule Files
212 
213See individual rule files for detailed command documentation:
214 
215```
216references/init.md - Project initialization
217references/generate.md - Client generation
218references/dev.md - Local development database
219references/db-pull.md - Database introspection
220references/db-push.md - Schema push
221references/db-seed.md - Database seeding
222references/db-execute.md - Raw SQL execution
223references/migrate-dev.md - Development migrations
224references/migrate-deploy.md - Production migrations
225references/migrate-reset.md - Database reset
226references/migrate-status.md - Migration status
227references/migrate-resolve.md - Migration resolution
228references/migrate-diff.md - Schema diffing
229references/studio.md - Database GUI
230references/mcp.md - Prisma MCP server
231references/validate.md - Schema validation
232references/format.md - Schema formatting
233references/debug.md - Debug info
234```
235 
236## How to Use
237 
238Use the command categories above for navigation, then open the specific command reference file you need.

Security

Passed

  • Gen Agent Trust Hubpass
  • Socketpass
  • Snykpass
  • Runlayerpass
  • ZeroLeakspass

Preview

prisma/skillsprisma/skills

$ npx -y skills add prisma/skills --skill prisma-cli

▸ installing to .claude/skills…

✓ prisma-cli ready

Repoprisma/skills
TypeSkills
CategoryDatabases
ForDeveloper
UpdatedJul 2026
License—
First seenJul 26, 2026

Tags

Skill

Related

6 picks
Type
  1. supabase avatarsupabase-postgres-best-practicesPostgres performance optimization and best practices from Supabase.SkillsJul 2026313k2.4k
  2. firebase avatarfirebase-data-connect-basicsBuilds and deploys Firebase SQL Connect (aka Firebase Data Connect) backends with PostgreSQL securely.SkillsJul 2026111k389
  3. firebase avatarfirebase-firestoreSets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK…SkillsJul 202677k389
  4. prisma avatarprisma-database-setupGuides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).SkillsJul 202674k47
  5. prisma avatarprisma-client-apiPrisma Client API reference covering model queries, filters, operators, and client methods.SkillsJul 202673k47
  6. prisma avatarprisma-postgresPrisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK.SkillsJul 202668k47