-
Notifications
You must be signed in to change notification settings - Fork 932
WIP docs(compute): base Compute docs (internal) #7800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a491937
99ed136
6426dd1
29f9003
ac6d693
8353ddf
18936fa
9fc4672
cc06ce4
11cf432
9a43b7a
7d02f2e
354a6f0
b8ecf41
f6c2e1e
f69b5c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,167 @@ | ||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||
| title: CLI reference | ||||||||||||||||||||||||||||||||||||||
| description: Authenticate, deploy, and manage environment variables for Prisma Compute from the CLI. | ||||||||||||||||||||||||||||||||||||||
| badge: early-access | ||||||||||||||||||||||||||||||||||||||
| url: /compute/cli | ||||||||||||||||||||||||||||||||||||||
| metaTitle: CLI reference | Prisma Compute | ||||||||||||||||||||||||||||||||||||||
| metaDescription: Reference for the Prisma Compute CLIs. Authentication, deploy, and environment variable commands for @looma/prisma-cli and @prisma/compute-cli. | ||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Two CLIs currently target Prisma Compute during Early Access. This page documents the commands needed day-to-day: install, authenticate, deploy, and manage environment variables. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| | Package | Binary | Typical invocation | | ||||||||||||||||||||||||||||||||||||||
| |---|---|---| | ||||||||||||||||||||||||||||||||||||||
| | [`@looma/prisma-cli`](https://www.npmjs.com/package/@looma/prisma-cli) | `prisma` | `npx @looma/prisma-cli …` | | ||||||||||||||||||||||||||||||||||||||
| | [`@prisma/compute-cli`](https://www.npmjs.com/package/@prisma/compute-cli) | `compute` | `bunx @prisma/compute-cli …` | | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ## Authentication | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Run an interactive browser flow once per machine. Credentials are stored locally. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Using `@looma/prisma-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli auth login | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli auth whoami | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli auth logout | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Using `@prisma/compute-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli login | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli logout | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| For CI, scripts, and agents, set `PRISMA_API_TOKEN` in the environment instead of running the interactive flow. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ## Deploy | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Using `@looma/prisma-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app deploy [options] | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| | Option | Description | | ||||||||||||||||||||||||||||||||||||||
| |---|---| | ||||||||||||||||||||||||||||||||||||||
| | `--app <name>` | App name | | ||||||||||||||||||||||||||||||||||||||
| | `--entry <path>` | Entry point path for Bun or auto-detected deploys | | ||||||||||||||||||||||||||||||||||||||
| | `--build-type <type>` | `auto`, `bun`, or `nextjs` (default: `auto`) | | ||||||||||||||||||||||||||||||||||||||
| | `--http-port <port>` | HTTP port the deployed app listens on | | ||||||||||||||||||||||||||||||||||||||
| | `--env <KEY=VALUE>` | Environment variable (repeat for multiple) | | ||||||||||||||||||||||||||||||||||||||
| | `--json` | Emit structured JSON output | | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Using `@prisma/compute-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli deploy [options] | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| | Option | Description | | ||||||||||||||||||||||||||||||||||||||
| |---|---| | ||||||||||||||||||||||||||||||||||||||
| | `--project <id>` | Project ID | | ||||||||||||||||||||||||||||||||||||||
| | `--service <id>` | Compute service ID | | ||||||||||||||||||||||||||||||||||||||
| | `--service-name <name>` | Name for a new compute service | | ||||||||||||||||||||||||||||||||||||||
| | `--region <region>` | Region for a new compute service | | ||||||||||||||||||||||||||||||||||||||
| | `--path <path>` | App directory (default: `.`) | | ||||||||||||||||||||||||||||||||||||||
| | `--entrypoint <file>` | File to run at startup (falls back to `package.json` `main`) | | ||||||||||||||||||||||||||||||||||||||
| | `--build-type <type>` | `auto`, `bun`, or `nextjs` (default: `auto`) | | ||||||||||||||||||||||||||||||||||||||
| | `--http-port <port>` | HTTP port the app listens on (default: `8080`) | | ||||||||||||||||||||||||||||||||||||||
| | `--env <KEY=VALUE>` | Environment variable (repeat for multiple) | | ||||||||||||||||||||||||||||||||||||||
| | `--unset-env <KEY>` | Remove an environment variable (repeat for multiple) | | ||||||||||||||||||||||||||||||||||||||
| | `--skip-build` | Deploy a pre-built artifact | | ||||||||||||||||||||||||||||||||||||||
| | `--skip-promote` | Deploy without promoting to the service endpoint | | ||||||||||||||||||||||||||||||||||||||
| | `--destroy-old-version` | Delete the previous version after stopping it | | ||||||||||||||||||||||||||||||||||||||
| | `--json` | Output JSON | | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ## Environment variables | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| You can set environment variables two ways: inline with `deploy`, or with a dedicated update command that creates a new version without rebuilding source. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Set variables during a deploy | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Repeat `--env` for each variable. Values are stored on the platform and injected into the running version. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| #### Using `@looma/prisma-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app deploy \ | ||||||||||||||||||||||||||||||||||||||
| --app my-app \ | ||||||||||||||||||||||||||||||||||||||
| --env DATABASE_URL=postgresql://example \ | ||||||||||||||||||||||||||||||||||||||
| --env NODE_ENV=production | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| #### Using `@prisma/compute-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli deploy \ | ||||||||||||||||||||||||||||||||||||||
| --env DATABASE_URL=postgresql://example \ | ||||||||||||||||||||||||||||||||||||||
| --env NODE_ENV=production | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Update variables without rebuilding | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Use this when you only need to rotate or add a secret. Both commands cut a **new compute version** — the previous version stays live until the new one is healthy. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| #### Using `@looma/prisma-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app update-env --env DATABASE_URL=postgresql://example | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app update-env --app my-app --env STRIPE_KEY=sk_live_… | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| List the current values: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app list-env | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app list-env --app my-app | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| #### Using `@prisma/compute-cli` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli env update --env DATABASE_URL=postgresql://example | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli env update \ | ||||||||||||||||||||||||||||||||||||||
| --env STRIPE_KEY=sk_live_… \ | ||||||||||||||||||||||||||||||||||||||
| --env NODE_ENV=production | ||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use explicit placeholders instead of On Line 111 and Line 126, Suggested doc tweak-npx `@looma/prisma-cli` app update-env --app my-app --env STRIPE_KEY=sk_live_…
+npx `@looma/prisma-cli` app update-env --app my-app --env STRIPE_KEY=<your-stripe-key>
...
- --env STRIPE_KEY=sk_live_… \
+ --env STRIPE_KEY=<your-stripe-key> \📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Remove variables | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Pass `--unset-env KEY` (repeat for multiple) on either `deploy` or `env update` with `@prisma/compute-cli`: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli env update --unset-env LEGACY_FLAG --unset-env DEBUG | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ## Versions and services | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| `@prisma/compute-cli` exposes primitives for managing versions and services directly: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli versions list | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli versions show <version-id> | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli versions start <version-id> | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli versions stop <version-id> | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli versions promote <version-id> | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli versions delete <version-id> | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli services list | ||||||||||||||||||||||||||||||||||||||
| bunx @prisma/compute-cli projects list | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| With `@looma/prisma-cli`, equivalent operations live under `app`: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app list-deploys | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app show-deploy <deployment-id> | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app promote <deployment-id> | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app rollback | ||||||||||||||||||||||||||||||||||||||
| npx @looma/prisma-cli app remove | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ## See also | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - [Stream logs](/compute/logs) — tail logs for a compute version or deployment. | ||||||||||||||||||||||||||||||||||||||
| - [Known limitations](/compute/limitations) — what's still in flight during EA. | ||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| title: Prisma Compute | ||
| description: Deploy Next.js and Bun applications to Prisma Compute from the CLI. | ||
| badge: early-access | ||
| url: /compute | ||
| metaTitle: Prisma Compute | ||
| metaDescription: Prisma Compute is a simple, reliable app hosting runtime tightly integrated with Prisma Postgres. Deploy, observe, and manage apps from the terminal. | ||
| --- | ||
|
|
||
| Prisma Compute is a simple, reliable app hosting runtime for Next.js and Bun applications, built with tight integration to Prisma Postgres and designed for a CLI-first, AI-native workflow. | ||
|
|
||
| ## What you get | ||
|
|
||
| - **One-command deploys** for Next.js and Bun apps. | ||
| - **Two CLIs** currently coexist during EA: | ||
| - [`@looma/prisma-cli`](https://www.npmjs.com/package/@looma/prisma-cli) — the new unified Prisma CLI (`prisma app …`). | ||
| - [`@prisma/compute-cli`](https://www.npmjs.com/package/@prisma/compute-cli) — the original compute CLI (`compute …`). | ||
| - **Environment variables** managed from the CLI on every deploy or as a standalone update. | ||
| - **Log streaming** for any compute version. | ||
| - **Tight Prisma Postgres integration** — build against a managed Postgres without leaving the Prisma toolchain. | ||
|
|
||
| ## Getting started | ||
|
|
||
| <Cards> | ||
| <Card href="/compute/quickstart-nextjs" title="Next.js quickstart"> | ||
| Create a Next.js app and ship it to Compute in a few commands. | ||
| </Card> | ||
| <Card href="/compute/quickstart-bun" title="Bun quickstart"> | ||
| Deploy a minimal Bun HTTP server to Compute. | ||
| </Card> | ||
| </Cards> | ||
|
|
||
| ## Reference | ||
|
|
||
| <Cards> | ||
| <Card href="/compute/cli" title="CLI reference"> | ||
| Install, authenticate, deploy, and manage environment variables from the terminal. | ||
| </Card> | ||
| <Card href="/compute/logs" title="Stream logs"> | ||
| Tail logs for a specific compute version or deployment. | ||
| </Card> | ||
| <Card href="/compute/limitations" title="Known limitations"> | ||
| What is and isn't supported during the EA window. | ||
| </Card> | ||
| </Cards> | ||
|
|
||
| ## Which CLI should I use? | ||
|
|
||
| Both CLIs target the same platform. For EA: | ||
|
|
||
| - Start with **`@looma/prisma-cli`** if you want the unified `prisma app` experience that we are standardizing on for Prisma 8. | ||
| - Fall back to **`@prisma/compute-cli`** if you hit an edge case, or for features that have only landed on the original CLI yet. | ||
|
|
||
| Every quickstart and reference page on this site shows the equivalent command in both CLIs side by side. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| title: Known limitations | ||
| description: What is and isn't supported in Prisma Compute during Early Access. | ||
| badge: early-access | ||
| url: /compute/limitations | ||
| metaTitle: Known limitations | Prisma Compute | ||
| metaDescription: A running list of known limitations in Prisma Compute during the Early Access window. | ||
| --- | ||
|
|
||
| Prisma Compute is moving fast during Early Access. This page is the running list of known limitations — keep it close while you're building. | ||
|
|
||
| ## Runtime | ||
|
|
||
| - **Next.js apps require `output: "standalone"`.** Set this in `next.config.ts` / `next.config.mjs` before your first deploy. See the [Next.js quickstart](/compute/quickstart-nextjs#2-enable-standalone-output). | ||
| - **First-class framework support** for this release covers **Next.js** and **Bun/Hono** only. | ||
|
|
||
| ## CLI | ||
|
|
||
| - **Two CLIs coexist.** `@looma/prisma-cli` (unified `prisma app …`) is the direction of travel; `@prisma/compute-cli` (original `compute …`) is the fallback for features or fixes that haven't reached the new CLI yet. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI blocker: Spellcheck is failing on a legitimate package scope. Add Suggested minimal page-local fix (if global dictionary update is deferred) ---
title: Known limitations
description: What is and isn't supported in Prisma Compute during Early Access.
badge: early-access
url: /compute/limitations
metaTitle: Known limitations | Prisma Compute
metaDescription: A running list of known limitations in Prisma Compute during the Early Access window.
---
+<!-- cspell:words looma -->🧰 Tools🪛 GitHub Actions: Spellcheck[error] 19-19: cspell reported unknown word "looma" at line 19. 🤖 Prompt for AI Agents |
||
| - **First deploy bootstraps local project context** automatically when no project is linked. Subsequent deploys reuse the saved selection, so the scaffolding flags aren't required each time. | ||
|
|
||
| ## Log streaming | ||
|
|
||
| - **10-minute stream cap.** A single log stream disconnects after ~10 minutes — reconnect, optionally with `--cursor`, to continue. | ||
| - **One concurrent stream per version.** Only one client can stream a given compute version at a time. | ||
|
|
||
| See [Stream logs](/compute/logs) for reconnection patterns. | ||
|
|
||
| ## Environment variables | ||
|
|
||
| - `env update` (or `app update-env`) **cuts a new compute version**. The old version stays live until the new one is healthy. | ||
| - There is no bulk import from a `.env` file yet — pass `--env KEY=VALUE` for each variable, or repeat the flag. | ||
|
|
||
| ## Out of scope for EA | ||
|
|
||
| These are intentionally deferred until after the EA window closes: | ||
|
|
||
| - Canary / traffic-split deploys. | ||
| - Multi-region routing controls. | ||
| - Console UI parity with the CLI (some actions are CLI-only today — the Console may offer a "copy this command" affordance instead). | ||
|
|
||
| If you hit something that isn't listed here and isn't documented elsewhere, share it in `#product-compute` so we can fold it in. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| --- | ||
| title: Stream logs | ||
| description: Tail logs for a Prisma Compute version or deployment. | ||
| badge: early-access | ||
| url: /compute/logs | ||
| metaTitle: Stream logs | Prisma Compute | ||
| metaDescription: Stream logs from Prisma Compute versions and deployments using the Prisma CLI. Tail, replay, and resume log streams during Early Access. | ||
| --- | ||
|
|
||
| Prisma Compute can stream logs for any compute version directly to your terminal. | ||
|
|
||
| ## Stream logs for a compute version | ||
|
|
||
| ### Using `@prisma/compute-cli` | ||
|
|
||
| ```bash | ||
| bunx @prisma/compute-cli logs <compute-version-id> | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |---|---| | ||
| | `--tail <n>` | Number of recent lines to show (default: `100`) | | ||
| | `--from-start` | Start from the beginning of the log buffer instead of tailing | | ||
| | `--cursor <offset>` | Resume from a byte-offset cursor returned by a previous stream | | ||
| | `--json` | Output each log record as a JSON line | | ||
|
|
||
| Examples: | ||
|
|
||
| ```bash | ||
| # Tail the last 200 lines and follow | ||
| bunx @prisma/compute-cli logs v_042 --tail 200 | ||
|
|
||
| # Replay from the start of the available buffer | ||
| bunx @prisma/compute-cli logs v_042 --from-start | ||
|
|
||
| # Resume from where an earlier stream left off | ||
| bunx @prisma/compute-cli logs v_042 --cursor 104857600 | ||
|
|
||
| # Emit structured JSON for pipelines or agents | ||
| bunx @prisma/compute-cli logs v_042 --json | ||
| ``` | ||
|
|
||
| ### Using `@looma/prisma-cli` | ||
|
|
||
| ```bash | ||
| npx @looma/prisma-cli app logs | ||
| npx @looma/prisma-cli app logs --deployment <deployment-id> | ||
| npx @looma/prisma-cli app logs --tail 200 | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |---|---| | ||
| | `--app <name>` | App name | | ||
| | `--deployment <id>` | Specific deployment to stream | | ||
| | `--tail <n>` | Number of recent lines to show | | ||
| | `--from-start` | Start from the beginning of the log buffer | | ||
| | `--cursor <offset>` | Resume from a prior log cursor | | ||
| | `--json` | Emit structured JSON output | | ||
|
|
||
| ## Find a compute version ID | ||
|
|
||
| If you don't know the ID to pass to `logs`: | ||
|
|
||
| ```bash | ||
| # With @prisma/compute-cli | ||
| bunx @prisma/compute-cli versions list | ||
|
|
||
| # With @looma/prisma-cli | ||
| npx @looma/prisma-cli app list-deploys | ||
| ``` | ||
|
|
||
| ## Limitations during Early Access | ||
|
|
||
| :::warning | ||
|
|
||
| Log streaming has hard limits in the EA build. Plan around them when debugging: | ||
|
|
||
| - **10-minute stream cap** — a single `logs` stream disconnects after ~10 minutes. Reconnect (optionally with `--cursor`) to continue. | ||
| - **One concurrent stream per version** — only one client can stream a given compute version at a time. A second stream will fail or bump the first. | ||
|
|
||
| ::: | ||
|
|
||
| These limits will be relaxed after EA. For now, prefer short, targeted log sessions and reach for `--tail` to grab a bounded recent window instead of long-lived streams. | ||
|
|
||
| ## See also | ||
|
|
||
| - [CLI reference](/compute/cli) | ||
| - [Known limitations](/compute/limitations) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "title": "Compute", | ||
| "root": true, | ||
| "icon": "Cpu", | ||
| "pages": [ | ||
| "---Introduction---", | ||
| "index", | ||
| "---Quickstart---", | ||
| "quickstart-nextjs", | ||
| "quickstart-bun", | ||
| "---CLI---", | ||
| "cli", | ||
| "logs", | ||
| "---More---", | ||
| "limitations" | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix CI blocker: cspell rejects
loomain multiple spotsLines 7, 14, 21, and 24 currently fail spellcheck. Please add a local cspell ignore (or project dictionary entry) so docs CI can pass.
Proposed fix (local to this doc)
🧰 Tools
🪛 GitHub Actions: Spellcheck
[error] 7-7: cspell reported unknown word "looma" at line 7 (e.g., "-- variable commands for
@looma/prisma-cliand@prisma").[error] 14-14: cspell reported unknown word "looma" in a markdown table/link at line 14.
[error] 14-14: cspell reported unknown word "looma" in inline code at line 14.
[error] 21-21: cspell reported unknown word "looma" at line 21 (heading: "### Using
@looma/prisma-cli").[error] 24-24: cspell reported unknown word "looma" at line 24 (command: "npx
@looma/prisma-cliauth login").🤖 Prompt for AI Agents