一键导入
prisma-cli-dev
prisma dev. Reference when using this Prisma feature.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
prisma dev. Reference when using this Prisma feature.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
prisma db execute. Reference when using this Prisma feature.
prisma db pull. Reference when using this Prisma feature.
prisma db push. Reference when using this Prisma feature.
prisma db seed. Reference when using this Prisma feature.
prisma debug. Reference when using this Prisma feature.
prisma format. Reference when using this Prisma feature.
| name | prisma-cli-dev |
| description | prisma dev. Reference when using this Prisma feature. |
| license | MIT |
| metadata | {"author":"prisma","version":"7.0.0"} |
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'),
},
})
Start local database:
prisma dev
In another terminal, run migrations:
prisma migrate dev
Generate client:
prisma generate
Run your application
When ready for production, switch to Prisma Postgres cloud:
prisma init --db
Update your DATABASE_URL to the cloud connection string.