From prisma
Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma/cli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps/deployments/logs/domains, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, or Turborepo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prisma:prisma-computeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide agents through Prisma Compute app creation, deployment, operations, and framework-specific deploy readiness.
Guide agents through Prisma Compute app creation, deployment, operations, and framework-specific deploy readiness.
Prisma Compute is actively moving into the Prisma Platform CLI. Before giving commands or editing a project, verify the local/current command surface:
bunx @prisma/cli@latest app deploy --help
bunx @prisma/cli@latest app --help
bunx create-prisma@latest --help
Use @prisma/cli@latest for Compute app deployment unless current help output shows the command has moved. Use create-prisma@latest for new-project scaffolding after verifying --deploy appears in create-prisma@latest --help.
For a compact agent-readable summary, run:
node prisma-compute/scripts/verify-compute-surface.mjs
Set PRISMA_COMPUTE_RUNNER=bunx to use bunx instead of npx.
Prefer evidence that matches the user's project and installed tooling:
prisma.compute.ts, compute:deploy, framework config, and package.json.create-prisma and @prisma/cli.If these disagree, trust the more local/current source and explain the mismatch briefly.
Use this skill for:
prisma.compute.ts deploy configcreate-prisma --deploy, compute:deploy, or app deploy@prisma/cli@prisma/compute-sdk or Management API integrationsExisting project deployment or redeploy:
Read references/app-deploy-cli.md.
Typed Compute config, monorepos, deploy targets, app roots, or build/env defaults:
Read references/compute-config.md.
Framework-specific build/runtime work:
Read references/frameworks.md.
New project from a scaffold:
Read references/create-prisma.md.
Programmatic deployment, SDKs, APIs, or low-level service/version concepts:
Read references/sdk-api.md.
Build, auth, env, deploy, or runtime failures:
Read references/troubleshooting.md.
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Command verification | CRITICAL | verify- |
| 2 | Auth and workspace selection | CRITICAL | auth- |
| 3 | Framework readiness | CRITICAL | framework- |
| 4 | Runtime host and port binding | CRITICAL | runtime- |
| 5 | Typed Compute config | HIGH | config- |
| 6 | Branch, environment, and database wiring | HIGH | env- |
| 7 | Deploy operations | HIGH | deploy- |
| 8 | SDK and API automation | MEDIUM | sdk- |
verify-help-first - Run current help output before assuming package names or flags.verify-helper-script - Use scripts/verify-compute-surface.mjs for a compact current CLI summary when available.verify-prisma-vs-platform-cli - Do not assume prisma app deploy exists in the ORM CLI; check whether the task should use @prisma/cli.verify-generated-scripts - Prefer the generated compute:deploy script when a project already has one.verify-public-url - After a real deploy, smoke-test the public deployment URL instead of trusting local or readiness-only checks.verify-config-support - For prisma.compute.ts, verify current CLI help/source because published package help may lag the repo.verify-auth-workspace-support - Check @prisma/cli auth workspace --help before using workspace list/use/logout commands against an installed package.auth-source-precedence - A non-empty PRISMA_SERVICE_TOKEN is the active auth source for commands and local OAuth workspaces are ignored for execution. If it is set but empty, the CLI should fail instead of falling back to stored OAuth.auth-multi-workspace - auth login can store OAuth sessions for multiple workspaces on the same machine. The active workspace pointer selects which stored OAuth grant normal commands use.auth-list-before-switch - Use auth workspace list --json to inspect local sessions. Agents should prefer workspace ids from JSON over names because names can be ambiguous.auth-switch-explicitly - Use auth workspace use <id-or-name> for non-interactive switching. Use auth workspace use with no argument only for an interactive picker or when exactly one local OAuth workspace exists.auth-no-fallthrough - If the active OAuth workspace is logged out or fails refresh, the CLI should not silently fall through to another cached workspace. Run auth workspace use <id> to choose the next workspace.auth-single-workspace-logout - Use auth workspace logout <id-or-name> or auth logout --workspace <id-or-name> to remove one local OAuth workspace session. Plain auth logout clears all local OAuth workspace sessions.auth-service-token-switching - While PRISMA_SERVICE_TOKEN is set, auth workspace use is unavailable because the service token is the active auth source; unset the env var to switch local OAuth workspaces. Workspace logout still only cleans local OAuth state.auth-storage-awareness - Local OAuth credentials live in the platform auth file, with workspace metadata in a sidecar context file. Project pins live in .prisma/local.json, and CLI app/project state lives in .prisma/cli/state.json near prisma.compute.ts when present.framework-cli-first - Evaluate deploy readiness against current @prisma/cli app deploy, not against what create-prisma can scaffold.framework-supported-cli-deploy - Current CLI source supports nextjs, nuxt, astro, hono, nestjs, tanstack-start, and bun; verify installed help/source before relying on a key.framework-create-prisma-defaults-only - create-prisma can provide generated defaults and compute:deploy, but it is not the general deploy surface for existing apps.framework-build-output - Compute needs a server entrypoint or framework artifact, not only static output.runtime-bind-all-interfaces - Deployed servers must bind on all interfaces (0.0.0.0 or the framework equivalent), not hard-coded localhost or 127.0.0.1.runtime-match-http-port - The app must listen on the deployed HTTP port: read process.env.PORT when possible, or pass the matching --http-port.runtime-readiness-port-only - Compute readiness watches listening ports; a loopback-only listener can look ready while public ingress cannot reach it.config-optional-simple-app - prisma.compute.ts is not required to deploy a normal single app; use flags when there is no durable config.config-use-prisma-compute-ts - Put reusable deploy defaults in prisma.compute.ts with defineComputeConfig, not in prisma.config.ts.config-app-vs-apps - Use app for a single deploy target and apps for monorepos or multi-app repos; define exactly one.config-monorepo-roots - For monorepos, use prisma.compute.ts to declare app targets, roots, framework defaults, entrypoints, ports, and env inputs.config-targets - In multi-app configs, @prisma/cli app deploy web selects the apps.web target. Without [app], commands can infer the target from the current directory; otherwise deploy can run all targets while build/run require one.config-no-project-branch-secrets - Do not commit Workspace, Project, Branch, production intent, service tokens, or secret values in prisma.compute.ts; keep those in flags, .prisma/local.json, env storage, or CI secrets.config-flags-win - Explicit deploy flags such as --framework, --entry, --http-port, and --env override matching config values.env-do-not-leak-secrets - Never print full DATABASE_URL, service tokens, or secret values.env-deploy-loads-dotenv - Generated deploy scripts may load env via prisma.compute.ts or --env .env; inspect the actual script/config before redeploy.env-migrations-separate - Redeploy scripts do not run migrations or seed data. Run the appropriate Prisma database scripts separately.env-cli-token-name - Current @prisma/cli uses PRISMA_SERVICE_TOKEN for service-token auth.env-branch-scope - Branch deploys, branch env vars, and branch databases must use the same branch name; pass --branch <git-name> explicitly when targeting a preview branch.env-production-vs-preview - Use --role production for production env, --role preview for preview template env, and --branch <git-name> for branch-specific overrides.env-db-explicit - --db creates and wires one Prisma Postgres database for the branch; it never runs migrations, never creates one database per app, and conflicts with database URLs supplied through --env.deploy-prod-intent - Use --prod --yes only when the user intends a production deploy.deploy-noninteractive-auth - Non-interactive deploys need either the correct active stored OAuth workspace or a supported service token env var; never print the token.deploy-json-for-agents - Use --json --no-interactive for scripts and agent-readable output.deploy-create-project - Use --create-project <name> only when the user wants deploy to create and link a new project; it conflicts with --project and PRISMA_PROJECT_ID.deploy-ops-targets - App show/open/logs/list-deploys/promote/rollback/remove and domain commands can also accept [app] targets from prisma.compute.ts.sdk-use-cli-first - Prefer @prisma/cli app deploy for app workflows; use create-prisma only to scaffold a new app unless the user is building lower-level automation.sdk-result-handling - @prisma/compute-sdk returns Result values; check isOk()/isErr() instead of relying on exceptions.package.json scripts, Prisma version, Prisma client location, prisma.compute.ts, and existing compute:deploy.scripts/verify-compute-surface.mjs for the standard Compute surface check.auth whoami --json, and when multiple local sessions may exist, auth workspace list --json.compute:deploy, or @prisma/cli app build/run/deploy flagscreate-prisma, then generated compute:deploy or @prisma/cli app deploy@prisma/compute-sdk or Management APIapp build before deploying when feasible.prisma-cli skill.create-prisma inside an existing app just to deploy it; use the generated compute:deploy script or @prisma/cli app deploy.create-prisma template can auto-deploy.prisma.config.ts; use prisma.compute.ts until the CLI ships a unified config shape.DATABASE_URL values.next start is the Compute runtime path; Next.js deploys need standalone output..env, CLI output, Management API responses, or logs.npx claudepluginhub prisma/prisma-plugin --plugin prismaCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.