基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-dev命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| 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.