Prisma 7 setup paths
Choose the fastest path to start using Prisma ORM 7, Prisma Postgres, or Prisma Compute in a new or existing TypeScript project.
Prisma 7 is the current generally available release of Prisma ORM, and npx prisma@latest init installs it. This page collects the Prisma 7 starting points: start a new project, add Prisma to an existing one, then deploy.
Starting a new project? Prisma Next is the recommended path for new apps. It is the next major version of Prisma ORM (soon Prisma 8), available now in Early Access. The getting started page covers it.
Start a new project
The recommended path is the Quickstart with Prisma Postgres: it provisions a managed PostgreSQL database for you and gets you from install to first query in about five minutes.
Working with a specific database instead?
- Quickstart with PostgreSQL
- Quickstart with SQLite for a lightweight local setup
- Quickstart with MySQL
- Quickstart with MongoDB
Add Prisma to an existing project
Use these guides if you already have an application or database and want to add Prisma ORM:
- Add Prisma ORM to an existing PostgreSQL project
- Add Prisma ORM to an existing MySQL project
- Add Prisma ORM to an existing SQLite project
- Add Prisma ORM to an existing MongoDB project
- Add Prisma ORM to an existing Prisma Postgres project
Deploy to Prisma Compute
Once your app runs locally, Prisma Compute (currently in Public Beta) runs it next to your Prisma Postgres database:
- Sign in with
npx @prisma/cli@latest auth login. - Run
npx @prisma/cli@latest app deployfrom your app directory to get a live URL, adding--env .envso environment variables likeDATABASE_URLreach the deployment. --env .envapplies to that one deployment. Persist variables for future deploys withnpx @prisma/cli@latest project env add --file .env --role production; see environment variables.- Keep deploying from the CLI, or connect GitHub to deploy on push.
The deploy guide covers build settings, frameworks, and troubleshooting.
Use with your agent
To hand the full Prisma 7 stack to your coding agent, copy this prompt. The commands below install Prisma 7, not Prisma Next:
Next steps
After setup, these pages are usually the next ones people need:
- Prisma Client overview
- Prisma Migrate getting started
- Prisma schema overview
- Open Prisma Studio to inspect and edit data visually
- Review pricing if you're evaluating Prisma Postgres for a team
Deploy your first app
Take a TypeScript app from your terminal to a live URL on Prisma Compute, either by scaffolding a new one or deploying a project you already have.
Prisma Postgres
Create a new TypeScript project from scratch by connecting Prisma ORM to Prisma Postgres and generating a Prisma Client for database access