Scaffold a new app with Prisma already wired up.
create-prisma gives you a project template, Prisma setup, database scripts, and a working starting point without making you assemble everything by hand.
- creates a new app from a supported template
- adds Prisma 7 dependencies for your database
- scaffolds
prisma/schema.prisma,prisma/seed.ts, andprisma.config.ts - writes a Prisma client singleton in the right place for the selected template
- adds
db:generate,db:migrate, anddb:seedscripts - creates or updates
.envwithDATABASE_URL - can install dependencies and run
prisma generatefor you
Use the package runner you already have:
npx create-prisma@latestpnpm dlx create-prisma@latestyarn dlx create-prisma@latestbunx create-prisma@latestdeno run -A npm:create-prisma@latestIf you already have it available locally:
create-prismaCreate a project interactively:
create-prismaCreate a Hono app non-interactively:
create-prisma --name my-api --template hono --provider postgresqlScaffold into the current directory:
create-prisma --name . --template hono --provider postgresqlCreate a monorepo with a shared Prisma package:
create-prisma --name my-monorepo --template turborepo --provider postgresqlUse Prisma Postgres auto-provisioning:
create-prisma --name my-app --template nest --provider postgresql --prisma-postgreshonoelysianestnextsvelteastronuxttanstack-startturborepo
postgresqlmysqlsqlitesqlservercockroachdb
npmpnpmyarnbundeno
--nameproject name or relative path--templatechoose the template--providerchoose the database provider--package-managerchoose the package manager/runtime--schema-preset empty|basic--yesaccept defaults and skip prompts--no-installscaffold only--no-generateskipprisma generate--prisma-postgresprovision Prisma Postgres for PostgreSQL--skills --mcp --extensionenable optional add-ons--forceallow scaffolding into a non-empty directory--verboseprint full command output
create-prisma can also help with a few optional extras:
- Prisma skills for coding agents
- Prisma MCP setup
- Prisma IDE extension install
These can be selected interactively or enabled with flags.
bun install
bun run check
bun run build
bun run startUseful repo scripts:
bun run devbun run typecheckbun run formatbun run lintbun run bump
Published builds may send anonymous usage telemetry to help improve the CLI. It does not include project names, file paths, or database URLs.
Disable it with any of:
DO_NOT_TRACKCREATE_PRISMA_DISABLE_TELEMETRYCREATE_PRISMA_TELEMETRY_DISABLED