Summary
Every published 8.0.0-rc build of the unified CLI (prisma@next = 8.0.0-rc.3/rc.4, @prisma/cli@next = 8.0.0-rc.3/rc.4) crashes at import time, before any command runs:
file:///.../node_modules/@prisma/cli/dist/cli.js:4
import { ..., readActiveAccessToken, ... } from "@prisma/cli-engine";
SyntaxError: The requested module '@prisma/cli-engine' does not provide an export named 'readActiveAccessToken'
Cause
@prisma/cli@8.0.0-rc.3 and rc.4 both pin @prisma/cli-engine to exactly 0.1.1.
- Published
@prisma/cli-engine@0.1.1 (2026-08-17) does not export readActiveAccessToken (grep -c readActiveAccessToken node_modules/@prisma/cli-engine/dist/index.js → 0).
- Repo HEAD's
packages/cli-engine (also versioned 0.1.1) does export it (src/exports/index.ts, src/active-access-token.ts), so the CLI was published against an engine state that was never published. dist-tags now show dev: 0.2.0, but the rc CLIs' exact pin keeps resolving the broken 0.1.1.
Repro
npx -y @prisma/cli@next --version # SyntaxError above (Node 24.11.1, macOS)
npx -y prisma@next --version # same
npx -y @prisma/cli@8.0.0-rc.3 --version # same
Impact
- Every
npx @prisma/cli@next … / npx prisma@next … command in the docs fails today.
- It cascades:
orm init scaffolds a project, installs @prisma/cli@next as a devDependency, then shells out to it for the initial contract emit — so orm init ends with CLI.INIT_EMIT_FAILED for every new user (exit code 5).
Suggested fix
Publish a cli-engine version containing the new exports and republish the rc CLIs pinned to it (or add a publish-pipeline check that installs the packed CLI tarball and runs --version before tagging next — docs/oss/release-automation.md already records a similar miss for @prisma/composer-cli@0.6.0).
Found while validating the docs against 8.0.0-rc.4 (prisma/web#8151); the repo-built CLI works fine, published artifacts do not.
🤖 Filed with Claude Code on behalf of datta@prisma.io
Summary
Every published 8.0.0-rc build of the unified CLI (
prisma@next= 8.0.0-rc.3/rc.4,@prisma/cli@next= 8.0.0-rc.3/rc.4) crashes at import time, before any command runs:Cause
@prisma/cli@8.0.0-rc.3andrc.4both pin@prisma/cli-engineto exactly0.1.1.@prisma/cli-engine@0.1.1(2026-08-17) does not exportreadActiveAccessToken(grep -c readActiveAccessToken node_modules/@prisma/cli-engine/dist/index.js→ 0).packages/cli-engine(also versioned 0.1.1) does export it (src/exports/index.ts,src/active-access-token.ts), so the CLI was published against an engine state that was never published.dist-tagsnow showdev: 0.2.0, but the rc CLIs' exact pin keeps resolving the broken 0.1.1.Repro
Impact
npx @prisma/cli@next …/npx prisma@next …command in the docs fails today.orm initscaffolds a project, installs@prisma/cli@nextas a devDependency, then shells out to it for the initialcontract emit— soorm initends withCLI.INIT_EMIT_FAILEDfor every new user (exit code 5).Suggested fix
Publish a cli-engine version containing the new exports and republish the rc CLIs pinned to it (or add a publish-pipeline check that installs the packed CLI tarball and runs
--versionbefore taggingnext— docs/oss/release-automation.md already records a similar miss for @prisma/composer-cli@0.6.0).Found while validating the docs against 8.0.0-rc.4 (prisma/web#8151); the repo-built CLI works fine, published artifacts do not.
🤖 Filed with Claude Code on behalf of datta@prisma.io