Prisma Next
Create a Prisma Next app with Prisma Postgres.
Create a Prisma Next app backed by Prisma Postgres.
Quick start
bunx create-prisma@nextRun this from a Node.js 24 or newer environment. When prompted, choose PostgreSQL and Prisma Postgres.
Setup provisions the database, writes DATABASE_URL, adds a starter contract, creates prisma-next.md, installs project-level Prisma Next skills for your coding agent, and adds package scripts for the database steps below.
1. Create the app
Run create-prisma@next and choose the minimal template if you want the fastest first run. Choose a framework template when you want the first query wired into an app route or page.
2. Initialize the database
From the generated project directory, run db:init to apply the starter schema to Prisma Postgres and sign the database.
bun run db:init3. Seed data
db:seed inserts sample data so the first query returns something immediately.
bun run db:seed4. Run the app
Start the app and confirm the sample query runs successfully.
bun run devUse the URL or terminal output shown by your template to confirm the sample query runs successfully.
Next steps
- Open the generated contract and change the starter model.
- Use Import from PostgreSQL or Import from MySQL when you want to move an existing database to Prisma Postgres.
- Use the PostgreSQL existing-project guide when your app already has a Prisma Postgres database.