Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Prisma Is Building the Stack for the Next Million Products"
slug: "building-the-stack-for-the-next-million-products"
date: "2026-08-25"
date: "2026-08-26"
authors:
- "Søren Bramer Schmidt"
metaTitle: "Prisma Is Building the Stack for the Next Million Products"
Expand Down Expand Up @@ -132,7 +132,7 @@ npm create prisma@latest
For an existing project:

```bash
npx prisma@latest init
npx prisma@latest orm init
```

There is more on the way. Follow us on [X](https://x.com/prisma) or join the [Discord](https://pris.ly/discord) to see the upcoming releases as they land.
4 changes: 2 additions & 2 deletions apps/docs/content/docs/(index)/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If you're using Express or another Node.js server, follow the [existing-project

</SectionRow>

<SectionRow title="Using Prisma 7?" description="Prisma 7 remains fully supported. Scaffold it with `npx create-prisma@stable`, or add it to an existing project with `npx prisma@7.9.1 init`. It pairs with Prisma Postgres and Prisma Compute the same way. When you're ready, Prisma 8 is the upgrade path.">
<SectionRow title="Using Prisma 7?" description="Prisma 7 remains fully supported. Scaffold it with `npx create-prisma@stable`, or add it to an existing project with `npx prisma@7.10.0 init`. It pairs with Prisma Postgres and Prisma Compute the same way. When you're ready, Prisma 8 is the upgrade path.">

<IconGrid>
<IconLink href="/v7/getting-started" title="Prisma 7 setup paths" description="All database quickstarts, plus the agent prompt" icon={<Milestone />} />
Expand Down Expand Up @@ -124,7 +124,7 @@ Add Prisma ORM 7 to this project with my existing database.

If I have not given you a database connection string and none exists in the project, stop and ask.

1. Run `npx prisma@7.9.1 init` (Prisma 7). For an existing database, set DATABASE_URL in `.env` and introspect it with `npx prisma db pull`; for a new schema, define models in `prisma/schema.prisma` and run `npx prisma migrate dev --name init`. If migrate dev asks to reset the database, stop and ask me first.
1. Run `npx prisma@7.10.0 init` (Prisma 7). For an existing database, set DATABASE_URL in `.env` and introspect it with `npx prisma db pull`; for a new schema, define models in `prisma/schema.prisma` and run `npx prisma migrate dev --name init`. If migrate dev asks to reset the database, stop and ask me first.
2. Install the driver adapter for the database (Prisma 7 requires one), e.g. `npm install @prisma/adapter-pg` for PostgreSQL, and pass it to `new PrismaClient({ adapter })`. Generate the client with `npx prisma generate` and write one query in an existing code path.
3. Run the query (e.g. with `npx tsx`) and show me the output, the schema, and the query you added.

Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/(index)/v7/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metaTitle: Prisma 7 getting started
metaDescription: 'Choose the fastest Prisma 7 setup path. Quickstarts and existing-project guides for Prisma ORM 7, Prisma Postgres, and Prisma Compute, plus an agent prompt.'
---

Prisma 7 remains fully supported; [Prisma 8](/getting-started) is the current release of Prisma ORM. Scaffold a new Prisma 7 app with `npx create-prisma@stable`, or add it to an existing project with `npx prisma@7.9.1 init`. This page collects the Prisma 7 starting points: start a new project, add Prisma to an existing one, then deploy.
Prisma 7 remains fully supported; [Prisma 8](/getting-started) is the current release of Prisma ORM. Scaffold a new Prisma 7 app with `npx create-prisma@stable`, or add it to an existing project with `npx prisma@7.10.0 init`. This page collects the Prisma 7 starting points: start a new project, add Prisma to an existing one, then deploy.

:::note

Expand Down Expand Up @@ -57,7 +57,7 @@ Set up the Prisma 7 stack: Prisma ORM 7, Prisma Postgres, and Prisma Compute.

If I have not told you which framework template to use, stop and ask.

1. Scaffold a new app non-interactively: `npx create-prisma@stable --name my-app --template [next|hono|nuxt|astro|nest|svelte|tanstack-start|elysia|turborepo] --provider postgresql --no-deploy`. Or add Prisma 7 to an existing app with `npx prisma@7.9.1 init --db`, which provisions a Prisma Postgres database and may open a browser to sign in; if it does, stop and ask me to complete the sign-in.
1. Scaffold a new app non-interactively: `npx create-prisma@stable --name my-app --template [next|hono|nuxt|astro|nest|svelte|tanstack-start|elysia|turborepo] --provider postgresql --no-deploy`. Or add Prisma 7 to an existing app with `npx prisma@7.10.0 init --db`, which provisions a Prisma Postgres database and may open a browser to sign in; if it does, stop and ask me to complete the sign-in.
2. From the project directory, define a small schema in `prisma/schema.prisma`, then run `npx prisma migrate dev --name init` and `npx prisma generate`. If migrate dev asks to reset the database, stop and ask me first.
3. Update the seed and app code to query the schema, and verify locally with the dev script.
4. Deploy with Prisma Compute: port the app to Prisma Composer following https://www.prisma.io/docs/composer/porting-an-app.md — declare the service around the existing server, read the port from `service.port()` and bind 0.0.0.0, bind `DATABASE_URL` with `envSecret` in the service input, and produce one self-contained entry file. Check `npx prisma@latest auth whoami`. If I am not signed in, stop and ask me to run `npx prisma@latest auth login`, because that step opens a browser. Then run the build followed by `npx prisma@latest deploy module.ts` with `DATABASE_URL` exported so the first deploy copies it up, and verify the deployed URL with curl.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metaDescription: 'Add Prisma ORM to an existing TypeScript project with Cockroac
Navigate to your existing project directory and install the required dependencies:

```npm
npm install prisma@7.9.1 @types/node @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/node @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metaDescription: 'Add Prisma ORM to an existing TypeScript project with MySQL an
Navigate to your existing project directory and install the required dependencies:

```npm
npm install prisma@7.9.1 @types/node --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-mariadb dotenv
npm install prisma@7.10.0 @types/node --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-mariadb dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Navigate to your existing project directory and install the required dependencie
### MySQL

```npm
npm install prisma@7.9.1 @types/node --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-planetscale undici dotenv
npm install prisma@7.10.0 @types/node --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-planetscale undici dotenv
```

### Postgres

```npm
npm install prisma@7.9.1 @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

## 2. Initialize Prisma ORM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metaDescription: 'Add Prisma ORM to an existing TypeScript project with PostgreS
Navigate to your existing project directory and install the required dependencies:

```npm
npm install prisma@7.9.1 @types/node @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/node @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metaDescription: 'Add Prisma ORM to an existing TypeScript project with Prisma P
Navigate to your existing project directory and install the required dependencies:

```npm
npm install prisma@7.9.1 @types/node @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/node @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metaDescription: 'Add Prisma ORM to an existing TypeScript project with SQL Serv
Navigate to your existing project directory and install the required dependencies:

```npm
npm install prisma@7.9.1 @types/node @types/mssql --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-mssql dotenv
npm install prisma@7.10.0 @types/node @types/mssql --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-mssql dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metaDescription: 'Add Prisma ORM to an existing TypeScript project with SQLite a
Navigate to your existing project directory and install the required dependencies:

```npm
npm install prisma@7.9.1 @types/node @types/better-sqlite3 --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-better-sqlite3 dotenv
npm install prisma@7.10.0 @types/node @types/better-sqlite3 --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-better-sqlite3 dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ npx tsc --init
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ npx tsc --init
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/node --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-mariadb dotenv
npm install prisma@7.10.0 @types/node --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-mariadb dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ Install the packages needed for this quickstart:
### MySQL

```npm
npm install prisma@7.9.1 --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-planetscale undici dotenv
npm install prisma@7.10.0 --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-planetscale undici dotenv
```

### Postgres

```npm
npm install prisma@7.9.1 @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

## 3. Configure ESM support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ npx tsc --init
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ npx tsc --init
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/pg --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 @types/pg --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ npx tsc --init
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/node @types/mssql --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-mssql dotenv
npm install prisma@7.10.0 @types/node @types/mssql --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-mssql dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ npx tsc --init
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/node @types/better-sqlite3 -D
npm install prisma@7.10.0 @types/node @types/better-sqlite3 -D
```

```npm
npm install @prisma/client@7.9.1 @prisma/adapter-better-sqlite3 dotenv
npm install @prisma/client@7.10.0 @prisma/adapter-better-sqlite3 dotenv
```

:::note[pnpm users with SQLite]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This page provides a step-by-step guide for Prisma Postgres after setting it up
This guide assumes you initialized Prisma with `prisma init` and created a Prisma Postgres database with `npx create-db`:

```npm
npx prisma@7.9.1 init
npx prisma@7.10.0 init
npx create-db
```

Expand Down Expand Up @@ -107,8 +107,8 @@ Update `package.json` to enable ESM:
Install the required dependencies to use Prisma Postgres:

```npm
npm install prisma@7.9.1 --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install prisma@7.10.0 --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

Here's what each package does:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ metaDescription: 'Set up Prisma Postgres in a new TypeScript project with Prisma
Install the packages needed for this quickstart:

```npm
npm install prisma@7.9.1 @types/node --save-dev
npm install @prisma/client@7.9.1 @prisma/adapter-pg dotenv
npm install prisma@7.10.0 @types/node --save-dev
npm install @prisma/client@7.10.0 @prisma/adapter-pg dotenv
```

Here's what each package does:
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/ai/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In the era of AI, where code is increasingly written by agents, ensuring clarity
Run the following command to bootstrap your database with a prompt:

```npm
npx prisma@7.9.1 init --prompt "Create a habit tracker application"
npx prisma@7.10.0 init --prompt "Create a habit tracker application"
```

## AI Coding Tools
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/ai/prompts/astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ export default prisma

```bash
# Dev dependencies
npm install prisma@7.9.1 tsx --save-dev
npm install prisma@7.10.0 tsx --save-dev

# Production dependencies
npm install @prisma/extension-accelerate @prisma/client@7.9.1
npm install @prisma/extension-accelerate @prisma/client@7.10.0
```

## CORRECT PRISMA INITIALIZATION
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/docs/ai/prompts/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ export default prisma

```bash
# Dev dependencies
npm install prisma@7.9.1 tsx --save-dev
npm install prisma@7.10.0 tsx --save-dev

# Production dependencies
npm install @prisma/adapter-pg @prisma/client@7.9.1 dotenv
npm install @prisma/adapter-pg @prisma/client@7.10.0 dotenv
```

## CORRECT PRISMA INITIALIZATION
Expand Down Expand Up @@ -428,11 +428,11 @@ User should follow these steps (AI should provide these instructions):
1. **Install dependencies**:

```npm
npm install prisma@7.9.1 tsx --save-dev
npm install prisma@7.10.0 tsx --save-dev
```

```npm
npm install @prisma/adapter-pg @prisma/client@7.9.1 dotenv
npm install @prisma/adapter-pg @prisma/client@7.10.0 dotenv
```

2. **Initialize Prisma, then create Prisma Postgres:**
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/docs/ai/prompts/nuxt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ export { prisma }

```bash
# Production dependencies
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv

# Dev dependencies
npm install -D prisma@7.9.1 @types/pg tsx
npm install -D prisma@7.10.0 @types/pg tsx
```

## CORRECT PRISMA INITIALIZATION
Expand Down Expand Up @@ -440,11 +440,11 @@ User should follow these steps (AI should provide these instructions):
2. **Install dependencies**:

```bash
npm install @prisma/client@7.9.1 @prisma/adapter-pg pg dotenv
npm install @prisma/client@7.10.0 @prisma/adapter-pg pg dotenv
```

```bash
npm install -D prisma@7.9.1 @types/pg tsx
npm install -D prisma@7.10.0 @types/pg tsx
```

3. **Initialize Prisma AND create Prisma Postgres database** (⚠️ USER MUST RUN MANUALLY):
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/ai/prompts/prisma-7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ alwaysApply: false
## 1) Dependencies

- Upgrade/install:
- Dev: `prisma@7.9.1`, `tsx`, `dotenv` (skip if Bun).
- Runtime: `@prisma/client@7.9.1`.
- Dev: `prisma@7.10.0`, `tsx`, `dotenv` (skip if Bun).
- Runtime: `@prisma/client@7.10.0`.
- **One** database adapter that matches the datasource:
- Postgres: `@prisma/adapter-pg`
- SQLite: `@prisma/adapter-better-sqlite3`
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/ai/prompts/turborepo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ At repo root:
npm install turbo --save-dev

# Prisma v7
npm install prisma@7.9.1 tsx --save-dev
npm install @prisma/client@7.9.1 dotenv
npm install prisma@7.10.0 tsx --save-dev
npm install @prisma/client@7.10.0 dotenv
```

If using Prisma Postgres:
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/ai/tutorials/typefully-clone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ Now let's add a database to save favorite tweets! We'll use Prisma ORM with Pris
### Install Dependencies

```npm
npm install prisma@7.9.1 tsx --save-dev
npm install @prisma/adapter-pg @prisma/client@7.9.1 dotenv
npm install prisma@7.10.0 tsx --save-dev
npm install @prisma/adapter-pg @prisma/client@7.10.0 dotenv
```

### Initialize Prisma
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/cli/v7/debug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ false
If using an older Prisma version:

```npm
npx prisma@7.9.1 debug
npx prisma@7.10.0 debug
```
2 changes: 1 addition & 1 deletion apps/docs/content/docs/cli/v7/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The Prisma CLI provides commands for:
The Prisma CLI is available as an npm package. Install it as a development dependency:

```npm
npm install prisma@7.9.1 --save-dev
npm install prisma@7.10.0 --save-dev
```

:::info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ cd authjs-prisma
To get started with Prisma, you'll need to install a few dependencies:

```npm
npm install prisma@7.9.1 tsx @types/pg --save-dev
npm install prisma@7.10.0 tsx @types/pg --save-dev
```

```npm
npm install @prisma/client@7.9.1 @prisma/adapter-pg dotenv pg
npm install @prisma/client@7.10.0 @prisma/adapter-pg dotenv pg
```

:::info
Expand Down
Loading
Loading