Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
prisma avatar

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)
At a glance

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
From the docs

What prisma-cli-init says it does

Bootstraps a fresh Prisma ORM project
SKILL.md
prisma-client
SKILL.md
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-init

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs14
repo stars8
Last updatedFebruary 9, 2026
Repositoryprisma/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

SKILL.mdMarkdownGitHub ↗

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 init

What It Creates

  • prisma/schema.prisma - Your Prisma schema file
  • prisma.config.ts - TypeScript configuration for Prisma CLI
  • .env - Environment variables (DATABASE_URL)
  • .gitignore - Ignores node_modules, .env, and generated files

Options

OptionDescriptionDefault
--datasource-providerDatabase provider: postgresql, mysql, sqlite, sqlserver, mongodb, cockroachdbpostgresql
--dbProvisions a fully managed Prisma Postgres database on the Prisma Data Platform-
--urlDefine a custom datasource url-
--generator-providerDefine the generator provider to useprisma-client
--outputDefine Prisma Client generator output path to use-
--preview-featureDefine a preview feature to use-
--with-modelAdd example model to created schema file-

Examples

Basic initialization

prisma init

Creates a PostgreSQL project setup.

SQLite project

prisma init --datasource-provider sqlite

MySQL with custom URL

prisma init --datasource-provider mysql --url "mysql://user:password@localhost:3306/mydb"

Prisma Postgres (cloud)

prisma init --db

Opens 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 fullTextSearch

Generated 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

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.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.