
Prisma Cli Init
- 14 installs
- 8 repo stars
- Updated February 9, 2026
- prisma/cursor-plugin
prisma-cli-init bootstraps a fresh Prisma ORM project via prisma init.
About
The prisma-cli-init skill documents prisma init creating prisma/schema.prisma, prisma.config.ts, .env DATABASE_URL, and .gitignore entries. Options pick datasource providers including postgresql, mysql, sqlite, mongodb, and cockroachdb, provision managed Postgres via --db, set custom --url, choose generator output paths, preview features, and --with-model examples. Bun users run bunx --bun prisma init to avoid Node fallback. AI prompt init generates schema from natural language and can deploy to Prisma Postgres. Post-init steps configure url, define models, run prisma dev or remote connection, migrate dev, and generate client. v7 generator uses prisma-client with required output path. Creates schema.prisma and prisma.config.ts scaffold. Supports multiple datasource providers and --db cloud provision. Documents Bun bunx --bun init invocation. AI --prompt can generate schema from description. Lists migrate dev and generate as next steps. Prisma schema, config, and env files ready for models.
- Creates schema.prisma and prisma.config.ts scaffold.
- Supports multiple datasource providers and --db cloud provision.
- Documents Bun bunx --bun init invocation.
- AI --prompt can generate schema from description.
- Lists migrate dev and generate as next steps.
Prisma Cli Init by the numbers
- 14 all-time installs (skills.sh)
- Ranked #604 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
prisma-cli-init capabilities & compatibility
- Capabilities
- init options table · generated v7 schema and config examples · next steps after init list
- Works with
- postgres · mysql · mongodb
- Use cases
- database · api development
What prisma-cli-init says it does
Bootstraps a fresh Prisma ORM project
prisma-client
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-initAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 14 |
|---|---|
| repo stars | ★ 8 |
| Last updated | February 9, 2026 |
| Repository | prisma/cursor-plugin ↗ |
How do I initialize a new Prisma project?
Bootstrap a new Prisma ORM project with schema, prisma.config.ts, env, and provider options.
Who is it for?
Teams adopting Prisma on greenfield or new services.
Skip if: Skip when Prisma is already configured in the repo.
When should I use this skill?
User runs prisma init for a new database-backed project.
What you get
Prisma schema, config, and env files ready for models.
Files
prisma init
Bootstraps a fresh Prisma ORM project in the current directory.
Command
prisma init [options]Bun Runtime
If you're using Bun, run Prisma with bunx --bun so it doesn't fall back to Node.js:
bunx --bun prisma initWhat It Creates
prisma/schema.prisma- Your Prisma schema fileprisma.config.ts- TypeScript configuration for Prisma CLI.env- Environment variables (DATABASE_URL).gitignore- Ignores node_modules, .env, and generated files
Options
| Option | Description | Default |
|---|---|---|
--datasource-provider | Database provider: postgresql, mysql, sqlite, sqlserver, mongodb, cockroachdb | postgresql |
--db | Provisions a fully managed Prisma Postgres database on the Prisma Data Platform | - |
--url | Define a custom datasource url | - |
--generator-provider | Define the generator provider to use | prisma-client |
--output | Define Prisma Client generator output path to use | - |
--preview-feature | Define a preview feature to use | - |
--with-model | Add example model to created schema file | - |
Examples
Basic initialization
prisma initCreates a PostgreSQL project setup.
SQLite project
prisma init --datasource-provider sqliteMySQL with custom URL
prisma init --datasource-provider mysql --url "mysql://user:password@localhost:3306/mydb"Prisma Postgres (cloud)
prisma init --dbOpens browser for authentication, creates cloud database instance.
AI-generated schema
prisma init --prompt "Blog with users, posts, comments, and tags"Generates schema based on description and deploys to Prisma Postgres.
With preview features
prisma init --preview-feature relationJoins --preview-feature fullTextSearchGenerated Schema (v7)
generator client {
provider = "prisma-client"
output = "../generated"
}
datasource db {
provider = "postgresql"
}Generated Config (v7)
// prisma.config.ts
import { defineConfig, env } from 'prisma/config'
export default defineConfig({
schema: 'prisma/schema.prisma',
migrations: {
path: 'prisma/migrations',
},
datasource: {
url: env('DATABASE_URL'),
},
})Next Steps After Init
1. Configure DATABASE_URL in prisma.config.ts or .env 2. Define your models in prisma/schema.prisma 3. Run prisma dev for local development or connect to remote DB 4. Run prisma migrate dev to create migrations 5. Run prisma generate to generate Prisma Client
{
"name": "prisma-cli-init",
"version": "7.0.0",
"author": "prisma",
"license": "MIT"
}Related skills
FAQ
What does prisma-cli-init do?
prisma-cli-init bootstraps a fresh Prisma ORM project via prisma init.
When should I use prisma-cli-init?
User runs prisma init for a new database-backed project.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.