Skip to content

fix(prisma-compute): teach the Composer deploy surface of the Prisma 8 CLI - #31

Open
sorenbs wants to merge 1 commit into
mainfrom
fix/prisma-compute-ga-surface
Open

sorenbs wants to merge 1 commit into
mainfrom
fix/prisma-compute-ga-surface

Conversation

@sorenbs

@sorenbs sorenbs commented Oct 8, 2026

Copy link
Copy Markdown
Member

Summary

prisma-compute (1.5.1) taught the Compute CLI from before Composer: bunx @prisma/cli@latest app deploy, prisma.compute.ts / defineComputeConfig, compute:deploy, build logs, app logs. Against prisma / @prisma/cli 8.0.0-rc.21, app deploy returns CLI.UNKNOWN_COMMAND, so an agent following the skill ran commands that no longer exist.

This rewrites the skill (2.0.0) for the surface that exists today:

  • Deploys go through Prisma Composer: module.ts, a service.ts per server, the composer section of prisma.config.ts, then npx prisma dev module.ts / npx prisma deploy module.ts / --stage <name>.
  • Deploy on push: prisma git connect plus a workflow running prisma/cloud-deploy-action.
  • Operations: service (logs, versions, rollback with --to/--confirm, domains), project env, postgres, bucket.
  • A "Removed surface" table maps every old command to its replacement.
  • Package skills: the skill defers to the version-matched skills that prisma and @prisma/composer ship (prisma skills sync) for API detail.

Files

  • prisma-compute/SKILL.md: rewritten, version 2.0.0.
  • Deleted: references/app-deploy-cli.md and references/compute-config.md, which only described the removed surface.
  • Rewritten and renamed:
    • frameworks.md → app-framework-builds.md
    • create-prisma.md → automation-create-prisma.md
    • sdk-api.md → automation-rest-api.md
    • troubleshooting.md → debug-deploy-failures.md
  • New references: cli-command-map.md, app-composer-setup.md, runtime-requirements.md, deploy-cli-and-ci.md, deploy-on-push.md, ops-services-and-config.md.
  • README.md: the prisma-compute entry.
  • prisma-postgres-setup/references/provisioning.md: pointed at the removed database group; it now says postgres (skill bumped to 2.0.1).

How it was verified

  • Commands: every command and flag was checked against --help from prisma and @prisma/cli 8.0.0-rc.21, @prisma/composer and @prisma/composer-prisma-cloud 0.28.0, @prisma/compute, and create-prisma 0.14.1, plus the CLI source for consent tokens, targeting and the .prisma/local.json link.
  • Removed commands: each one in the table was run with --json --no-interactive (no network) to confirm it returns CLI.UNKNOWN_COMMAND.
  • Code samples: the example app and control-API snippets type-check, and the bundle builds with bun build.
  • REST paths: checked against the live spec at https://api.prisma.io/v1/doc.
  • Not run: nothing signs in, deploys, or creates remote resources.
  • Repo check: validate-skills passes locally.

Not changed

prisma-cli/SKILL.md still calls @prisma/cli a "public-beta Platform package". It already routes Compute work to prisma-compute and points at no removed command, and its version is pinned to the ORM release.

Found while reviewing the Prisma Compute GA blog post (prisma/web#8433); listed with the other follow-ups in the prisma/web follow-up PR.

🤖 Generated with Claude Code

…8 CLI

The skill (1.5.1) taught `@prisma/cli app deploy`, `prisma.compute.ts`,
`defineComputeConfig`, `compute:deploy`, `build logs`, and `app logs`.
Against prisma / @prisma/cli 8.0.0-rc.21 those commands fail with
CLI.UNKNOWN_COMMAND, so an agent following the skill ran commands that
no longer exist.

Rewrite the skill (2.0.0) around what ships today, verified against
prisma 8.0.0-rc.21, @prisma/composer and @prisma/composer-prisma-cloud
0.28.0, @prisma/compute 0.1.0-beta.0, create-prisma 0.14.1, and
https://api.prisma.io/v1/doc:

- Deploys go through a Composer app: module.ts, compute() services with
  the node/nextjs build adapters, and the composer section of
  prisma.config.ts. `prisma dev` / `prisma deploy`, `--stage` previews,
  regions, service-token CI, and teardown through the control API.
- Deploy on push with `prisma git connect` and prisma/cloud-deploy-action.
- Operations through `service` (logs, versions, rollback with
  --to/--confirm, domains), `project env`, `postgres`, and `bucket`.
- A removed-surface table mapping each old command to its replacement,
  and pointers to the version-matched prisma-platform-core-concepts and
  prisma-composer-core-concepts skills shipped inside the packages.

References: delete app-deploy-cli.md and compute-config.md (removed
surface only); rewrite frameworks.md, create-prisma.md, sdk-api.md, and
troubleshooting.md as app-framework-builds.md, automation-create-prisma.md,
automation-rest-api.md, and debug-deploy-failures.md; add
cli-command-map.md, app-composer-setup.md, runtime-requirements.md,
deploy-cli-and-ci.md, deploy-on-push.md, and ops-services-and-config.md.

Also update the README entry, and point prisma-postgres-setup's
provisioning reference at `postgres` instead of the removed `database`
group (2.0.1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@sampolahtinen sampolahtinen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prisma-postgres-setup looks great and these changes should not break Vercel marketplace discovery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants