prisma dev. Reference when using this Prisma feature.
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-dev
Starts a local Prisma Postgres database for development. Provides a PostgreSQL-compatible database that runs entirely on your machine.
prisma dev [options]
| Option | Description | Default |
|--------|-------------|---------|
| --name / -n | Name for the database instance | default |
| --port / -p | HTTP server port | 51213 |
| --db-port / -P | Database server port | 51214 |
| --shadow-db-port | Shadow database port (for migrations) | 51215 |
| --detach / -d | Run in background | false |
| --debug | Enable debug logging | false |
prisma dev
Interactive mode with keyboard shortcuts:
q - Quith - Show HTTP URLt - Show TCP URLsprisma dev --name myproject
Useful for multiple projects.
prisma dev --detach
Frees your terminal for other commands.
prisma dev --port 5000 --db-port 5432
prisma dev ls
Shows all local Prisma Postgres instances with status.
prisma dev start myproject
Starts a previously created instance in background.
prisma dev stop myproject
prisma dev stop "myproject*"
Stops all instances matching pattern.
prisma dev rm myproject
Removes instance data from filesystem.
prisma dev rm myproject --force
Configure your prisma.config.ts to use local Prisma Postgres:
import 'dotenv/config'
import { defineConfig, env } from 'prisma/config'
export default defineConfig({
schema: 'prisma/schema.prisma',
migrations: {
path: 'prisma/migrations',
},
datasource: {
// Local Prisma Postgres URL (from prisma dev output)
url: env('DATABASE_URL'),
},
})
prisma dev
prisma migrate dev
prisma generate
When ready for production, switch to Prisma Postgres cloud:
prisma init --db
Update your DATABASE_URL to the cloud connection string.
Take prisma/prisma-cli-dev from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.