Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f0f3afb
feat(docs): add Prisma Compute docs section and integrate into docs n…
ankur-arch Jun 3, 2026
2b8c66c
docs(compute): align with authoritative product docs and Public Beta …
ankur-arch Jun 3, 2026
50caf33
docs(compute): add @prisma/cli reference page and clean up sidebar
ankur-arch Jun 3, 2026
1e79585
docs(compute): verify against @prisma/cli 3.0.0-beta.3 and rewrite fo…
ankur-arch Jun 3, 2026
f8fe791
docs(compute): add Code Hike concept animations and tighten copy
ankur-arch Jun 4, 2026
4a5ea54
docs(compute): refine Compute pitch and tighten copy voice
ankur-arch Jun 4, 2026
0b8e19d
docs(compute): remove product-specific beta section from feature-matu…
ankur-arch Jun 4, 2026
f504aa8
docs(compute): fix production deploy contract, positioning, and badge…
ankur-arch Jun 4, 2026
6d107db
Merge branch 'main' into compute-docs
ankur-arch Jun 4, 2026
6ee34cc
docs(compute): sharpen overview lead — make deploy job explicit, bala…
ankur-arch Jun 4, 2026
e3d1856
docs(compute): rewrite overview in docs voice, cut markety phrasing
ankur-arch Jun 4, 2026
796e483
docs(compute): rework overview flow, hand-holdey quickstart, richer c…
ankur-arch Jun 5, 2026
3698aaf
docs(compute): apply PDP terminology and trim fillers across the section
ankur-arch Jun 5, 2026
c8ced78
Merge remote-tracking branch 'origin/main' into compute-docs
ankur-arch Jun 5, 2026
44f5594
blog: launching Prisma Compute in public beta
ankur-arch Jun 5, 2026
eb801ba
docs(compute): render concept animations as visual flow diagrams
ankur-arch Jun 8, 2026
67c1be0
docs(compute): make env var composition explicit in the flow
ankur-arch Jun 8, 2026
7df983d
docs(compute): fix scope-box overflow, make var default explicit
ankur-arch Jun 8, 2026
0816e92
docs(compute): align animations with docs content and positioning
ankur-arch Jun 8, 2026
d91e116
docs(blog): tweak compute launch post copy
ankur-arch Jun 8, 2026
e064f18
docs(compute): give parallel flow edges separate bend lanes
ankur-arch Jun 8, 2026
0412bc7
docs(compute): rewrite deploy quickstart and tighten FAQ wording
ankur-arch Jun 8, 2026
40a4499
docs(blog): refine Compute launch "Try it" section
ankur-arch Jun 8, 2026
bc16662
docs: align getting-started and overview entry points with Compute
ankur-arch Jun 8, 2026
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
14 changes: 13 additions & 1 deletion apps/docs/content/docs/(index)/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metaTitle: Prisma getting started
metaDescription: Choose a Prisma quickstart for new or existing projects and get from schema to first query quickly.
---

Prisma gives you a few good starting points depending on whether you need a database, already have one, or want the smallest possible local setup.
Prisma gives you a few good starting points depending on whether you need a database, already have one, want the smallest possible local setup, or are ready to deploy your app.

## Choose your path

Expand All @@ -18,6 +18,11 @@ Prisma gives you a few good starting points depending on whether you need a data
- [Quickstart with MySQL](/prisma-orm/quickstart/mysql) if your application uses MySQL
- [Quickstart with MongoDB](/prisma-orm/quickstart/mongodb) if your application uses MongoDB

### Deploy your app

- [Deploy your first app](/prisma-compute/deploy) on [Prisma Compute](/compute), currently in Public Beta, to run it next to your Prisma Postgres database
- [Set environment variables](/compute/environment-variables) to connect your deployed app to a database

### Add Prisma to an existing project

- [Add Prisma ORM to an existing PostgreSQL project](/prisma-orm/add-to-existing-project/postgresql)
Expand All @@ -35,6 +40,13 @@ No matter which guide you choose, the flow is usually the same:
3. Run `prisma generate` to create a type-safe client for your schema.
4. Create or introspect your database, then start sending queries from your application.

If you're deploying to [Prisma Compute](/compute), the equivalent flow is:

1. Sign in with `npx @prisma/cli@latest auth login`.
2. Run `npx @prisma/cli@latest app deploy` from your app directory to get a live URL.
3. Set your database connection string and other config as [environment variables](/compute/environment-variables).
4. Redeploy to apply them, then keep shipping from the CLI or [connect GitHub](/compute/github) to deploy on push.

## Next steps

After setup, these pages are usually the next ones people need:
Expand Down
13 changes: 10 additions & 3 deletions apps/docs/content/docs/(index)/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ npx create-db
```


[**Prisma Compute**](/compute) runs your app next to your Prisma Postgres database, currently in [Public Beta](/console/more/feature-maturity#public-beta). Deploy Next.js, Hono, TanStack Start, and Bun apps, with an isolated preview for every branch.

```npm
npx @prisma/cli@latest app deploy
```


<Cards>
<Card href="/prisma-compute/deploy" title="Use Prisma Compute" icon={<Rocket className="text-primary" />}>
**Ready to deploy?** Run your app next to your database, with a live preview for every branch.
</Card>
<Card href="/prisma-orm/quickstart/prisma-postgres" title="Use Prisma Postgres" icon={<div className="text-primary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="159" height="195" viewBox="0 0 640 640" fill="none"><path d="M355.2 85C348.2 72.1 334.7 64 320 64C305.3 64 291.8 72.1 284.8 85L209.7 224L430.2 224L355.1 85zM123.3 384L516.6 384L456.1 272L183.7 272L123.2 384zM97.4 432L68.8 485C62.1 497.4 62.4 512.4 69.6 524.5C76.8 536.6 89.9 544 104 544L536 544C550.1 544 563.1 536.6 570.4 524.5C577.7 512.4 577.9 497.4 571.2 485L542.6 432L97.4 432z" fill="currentColor"/></svg></div>
}>
**Need a database?** Get started with your favorite framework and Prisma Postgres.
</Card>
<Card href="/prisma-postgres/quickstart/prisma-orm" title="Bring your own database" icon={<Database className="text-primary" />}>
**Already have a database?** Use Prisma ORM for a type-safe developer experience and automated migrations.
</Card>
</Cards>
4 changes: 3 additions & 1 deletion apps/docs/content/docs/(index)/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"---Prisma ORM---",
"...prisma-orm",
"---Prisma Postgres---",
"...prisma-postgres"
"...prisma-postgres",
"---Prisma Compute---",
"...prisma-compute"
]
}
92 changes: 92 additions & 0 deletions apps/docs/content/docs/(index)/prisma-compute/deploy.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
title: Deploy your first app
description: Take an existing TypeScript app from your terminal to a live URL on Prisma Compute.
url: /prisma-compute/deploy
metaTitle: 'Quickstart: Deploy your first app on Prisma Compute'
metaDescription: Deploy a TypeScript app to Prisma Compute with the @prisma/cli beta package and verify it at a live URL.
---

[Prisma Compute](/compute) runs your app next to your Prisma Postgres database. In this guide, you will deploy an existing app to Compute and open it at a live URL.

## Prerequisites

- A JavaScript runtime: Node.js 22.12 or newer for `npx`/`pnpm`, or Bun for `bunx`.
- A Prisma developer platform account ([console.prisma.io](https://console.prisma.io)).
- An app built with **Next.js**, **Hono**, **TanStack Start**, or a plain **Bun** HTTP server.

:::info

Next.js apps must set `output: "standalone"` in their Next.js config before deploying.

:::

## 1. Sign in

Deploys fail without a session, so authenticate first:

```npm
npx @prisma/cli@latest auth login
```

This opens a browser to sign you in and stores a session that every later command inherits. Check it any time with `auth whoami`.

## 2. Deploy

From your app directory:

```npm
npx @prisma/cli@latest app deploy
```

Then the CLI sets up the project, builds your app, and deploys it. After it finishes, you get a live URL. Your first deployment is promoted to production automatically.

## 3. Verify

Open the deployed app in your browser:

```npm
npx @prisma/cli@latest app open
```

If something looks off, stream the logs:

```npm
npx @prisma/cli@latest app logs
```

## 4. Keep shipping

After your app is live, you can keep deploying with the Prisma CLI or inspect your resources in the [Prisma Console](https://console.prisma.io): projects, branches, apps, deployments, integrations, and domains.

Deploys from a Git feature branch create isolated [preview deployments](/compute/branching). After your first production deploy, deploying to production again needs an explicit `--prod` flag; add `--yes` to accept the confirmation up front in scripts and CI:

```npm
npx @prisma/cli@latest app deploy --prod --yes
```

## Hand it to your agent

You can also let your coding agent do the deploying. Sign in once yourself ([step 1](#1-sign-in)), because the browser step needs a human. After that, anything running in your environment inherits the session, including your agent. Paste this into your agent and fill in the blanks:

```text
Build [what you want] in [framework] and deploy it to Prisma Compute using `npx @prisma/cli@latest`.
```

For example:

```text
Build a Hono API with a /todos endpoint backed by an in-memory list. Deploy it to Prisma Compute using `npx @prisma/cli@latest`.
```

Notes worth giving your agent:

- Run every CLI command as `npx @prisma/cli@latest <command>`, and add `--json` for structured output.
- Check login state with `npx @prisma/cli@latest auth whoami`.
- On the first deploy, the CLI creates the project and prints a live URL. Open it and confirm the app responds. The first deploy is promoted to production automatically.
- If the app needs config or secrets, scope them to the environment you're deploying. Use `--role production` for production deploys and `--role preview` for preview branches, then redeploy: `npx @prisma/cli@latest project env add KEY=value --role production` (or `--role preview`). Don't write production config to the preview scope. For the full scoping rules, see [Environment variables](/compute/environment-variables).

## What's next

- [Add environment variables](/compute/environment-variables) for configuration, secrets, and your database connection string
- [Connect a GitHub repository](/compute/github) to deploy on push
- [Read the full CLI getting-started guide](/compute/getting-started)
5 changes: 5 additions & 0 deletions apps/docs/content/docs/(index)/prisma-compute/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"title": "Prisma Compute",
"defaultOpen": true,
"pages": ["deploy"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ You've successfully set up Prisma ORM. Here's what you can explore next:
- **Build a full application**: Check out our [framework guides](/guides) to integrate Prisma ORM with Next.js, Express, and more
- **Join the community**: Connect with other developers on [Discord](https://pris.ly/discord)

:::info[Deploy to Compute]

Want to run this app in the cloud? Deploy it to [Prisma Compute](/compute), which runs your app next to your Prisma Postgres database. Follow [Deploy your first app](/prisma-compute/deploy).

:::

## More info

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,9 @@ Connection closed
## Next steps

You've successfully connected Drizzle ORM to Prisma Postgres! For more advanced features like schemas, migrations, and queries, see the [Drizzle ORM documentation](https://orm.drizzle.team/docs/get-started).

:::info[Deploy to Compute]

Want to run this app in the cloud? Deploy it to [Prisma Compute](/compute), which runs your app next to your Prisma Postgres database. Follow [Deploy your first app](/prisma-compute/deploy).

:::
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,9 @@ All users: [ { id: 1, email: 'alice@prisma.io', name: 'Alice' } ]
## Next steps

You've successfully connected Kysely to Prisma Postgres! For more advanced features like schemas, migrations, and complex queries, see the [Kysely documentation](https://kysely.dev/docs/intro).

:::info[Deploy to Compute]

Want to run this app in the cloud? Deploy it to [Prisma Compute](/compute), which runs your app next to your Prisma Postgres database. Follow [Deploy your first app](/prisma-compute/deploy).

:::
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ You've successfully set up Prisma ORM. Here's what you can explore next:
- **Build a full application**: Check out our [framework guides](/guides) to integrate Prisma ORM with Next.js, Express, and more
- **Join the community**: Connect with other developers on [Discord](https://pris.ly/discord)

:::info[Deploy to Compute]

Want to run this app in the cloud? Deploy it to [Prisma Compute](/compute), which runs your app next to your Prisma Postgres database. Follow [Deploy your first app](/prisma-compute/deploy).

:::

## More info

- [Prisma Postgres documentation](/postgres)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,9 @@ Loaded users: [ User { id: 1, firstName: 'Timber', lastName: 'Saw', age: 25 } ]
## Next steps

You've successfully connected TypeORM to Prisma Postgres! For more advanced features like entities, migrations, and queries, see the [TypeORM documentation](https://typeorm.io/docs/getting-started).

:::info[Deploy to Compute]

Want to run this app in the cloud? Deploy it to [Prisma Compute](/compute), which runs your app next to your Prisma Postgres database. Follow [Deploy your first app](/prisma-compute/deploy).

:::
6 changes: 6 additions & 0 deletions apps/docs/content/docs/cli/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ The Prisma CLI is available as an npm package. Install it as a development depen
npm install prisma --save-dev
```

:::info

Looking for [Prisma Compute](/compute) commands? Deployments to Compute use the separate [`@prisma/cli`](/compute/getting-started) beta package, which exposes the `prisma-cli` binary so it can coexist with `prisma`. See [Get started with `@prisma/cli`](/compute/getting-started) and the [Prisma Compute CLI reference](/compute/cli-reference).

:::

## Usage

```bash
Expand Down
69 changes: 69 additions & 0 deletions apps/docs/content/docs/compute/branching.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: Branching
description: Branches are isolated environments that map to your Git branches, so preview work never touches production.
url: /compute/branching
metaTitle: Branching | Prisma Compute
metaDescription: How production and preview branches work in Prisma Compute, how the CLI picks a branch, and how branches are created and cleaned up.
---

A branch is an isolated environment for one line of work. Every branch in a project gets its own apps, databases, and deployments, so work on a preview never touches production.

A platform branch usually matches a Git branch name, but in Prisma it is a real resource that owns its own apps and databases:

<ConceptAnimation name="compute-model" />

## Production and preview

Every branch has a role:

- The **first branch** in a project is your production branch, usually `main`. It's protected and durable: after the first deploy, deploys to it need an explicit `--prod` flag, and automated cleanup never touches it.
- **Every other branch** is a preview by default: disposable resources for testing changes before they merge. Preview deploys never ask for confirmation.

To learn more, see the [Deployments docs](/compute/deployments).

## How the CLI picks a branch

When you deploy, the CLI resolves the branch in this order:

1. `--branch <name>`, if you pass it.
2. Your active Git branch.
3. `main`.

Inside a Git repo, deploying from `feature/search` targets the `feature/search` branch automatically. To target a branch explicitly:

```npm
npx @prisma/cli@latest app deploy --branch feature/search
```

Inspect platform branches:

```npm
npx @prisma/cli@latest branch list
npx @prisma/cli@latest branch show
```

`branch use` changes which branch your later commands target, without creating anything remote:

```npm
npx @prisma/cli@latest branch use feature/search
```

Listing a branch doesn't expand the apps and databases inside it. Use the `app` commands to inspect those.

## Creating branches

You rarely create branches manually. They appear when work needs them:

- **On deploy**: `app deploy --branch feature/search` creates the branch if it doesn't exist.
- **From GitHub**: when a repo is connected, branch and push events create or update the matching platform branch automatically. To set this up, see the [GitHub integration docs](/compute/github).

Connecting GitHub doesn't create branches retroactively; it wires up automation for future events.

## Cleaning up

When GitHub is connected, deleting a Git branch tears down the matching platform branch, as long as it isn't your production or default branch. Those are always left alone.

## Next steps

- [Environment variables](/compute/environment-variables): preview values and per-branch overrides.
- [GitHub integration](/compute/github): keep platform branches in sync with your repo.
Loading
Loading