npx skills add ...
npx skills add prisma/cursor-plugin --skill prisma-cli-dev
npx skills add prisma/cursor-plugin --skill prisma-cli-dev
prisma dev. Reference when using this Prisma feature.
Starts a local Prisma Postgres database for development. Provides a PostgreSQL-compatible database that runs entirely on your machine.
| 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 |
Interactive mode with keyboard shortcuts:
q - Quith - Show HTTP URLt - Show TCP URLsUseful for multiple projects.
Frees your terminal for other commands.
Shows all local Prisma Postgres instances with status.
Starts a previously created instance in background.
Stops all instances matching pattern.
Removes instance data from filesystem.
Configure your prisma.config.ts to use local Prisma Postgres:
Start local database:
In another terminal, run migrations:
Generate client:
Run your application
When ready for production, switch to Prisma Postgres cloud:
Update your DATABASE_URL to the cloud connection string.
prisma dev start myprojectprisma dev stop myprojectprisma dev stop "myproject*"prisma dev rm myprojectprisma dev rm myproject --forceimport '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'),
},
})