← Back to Pull requests

docs: run Composer's dev and deploy for 0.35, with the entry in prisma.config.ts and full dev url addresses #8649

Closed
unknown closed this pull request without merging on Oct 28, 2026 16:22 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 15:07 UTC
Author

At a glance

With prisma 8.0.0-rc.28 and Composer 0.35.0, the command every Composer page shows fails:

$ npx prisma dev module.ts
✘ [CLI.INVALID_ARGUMENTS] Too many arguments, expected 0 but encountered "module.ts"

After this PR the pages name the entry once, in prisma.config.ts, and run the commands without it:

composer: composer({
  entry: './module.ts',
  extensions: [prismaCloud(), nodeBuild()],
  state: prismaState(),
}),

npx prisma dev
npx prisma deploy --stage demo

The next step on the page fails too, because dev url now wants the node's full address:

$ npx prisma dev url gateway
✘ [DEV.ADDRESS_UNKNOWN] "my-app" has no node at "gateway".
$ npx prisma dev url my-app.gateway
✔ The service my-app.gateway is running at http://localhost:3001

What this PR changes

1. Every prisma dev and prisma deploy command in the docs and the answers pages drops module.ts.
2. Every composer({ ... }) block in the docs sets entry: './module.ts'.
3. The dev and deploy CLI reference pages describe entry in the config and list the new --entry <path> flag.
4. Prose that said the entry file is passed to the command now says it is named in the composer section.
5. Every dev url command, and every sample of dev, dev url and emulator list output, uses the address that starts with the app's name.

The entry moves into the config

The entry is the module whose default export is the app, usually module.ts. Up to Composer 0.34.0, dev and deploy took it as a positional argument, and the composer section of prisma.config.ts accepted only extensions and state. Composer 0.35.0 removed the positional argument. The CLI now reads the entry from entry in the composer section, or from --entry <path>, and fails with "No entry module is set" when neither is there. There is no default file name, so every config block on these pages needs the field.

The programmatic deploy({ entry: 'module.ts' }) on the deploy reference page is unchanged. The control API still takes entry as an input that overrides the config.

Node addresses start with the app name

A node is one service, database or bucket in the app, and dev url <address> prints where it answers locally. Up to 0.34.0 the address was the node's name inside the app, such as gateway or catalog.database. In 0.35.0 it is the path from the app's name, such as my-app.gateway or my-app.catalog.database. dev's startup lines and emulator list print the same addresses. Each page uses the app name its own module(...) declares. The local database page starts from a scaffold named after the reader's directory, so it uses my-app.database and says to replace my-app.

I checked this on a fresh scaffold with prisma 8.0.0-rc.28: prisma dev --detach came up, prisma dev url app failed with DEV.ADDRESS_UNKNOWN, prisma dev url <app>.app printed the URL, and the app answered 200.

Not in this PR

  • create-prisma. 0.14.5 still pins Composer 0.34.0 and scaffolds prisma.config.ts without entry, with composer:dev and composer:deploy scripts that pass module.ts. The scaffold-based pages here (framework guides, the full-stack tutorial, the create-prisma page) describe the scaffold after it moves to 0.35.0. A separate create-prisma PR makes that change.

  • The CLI error reference. cli/error-reference.mdx is generated from docs/reference/error-reference.md in prisma/prisma-cli, which still says prisma dev <entry> in three places and the old address form. It needs fixing there and regenerating.

  • Blog posts and the changelog are dated, so they keep the old commands.

  • This repository's own package.json pins Composer 0.30 and keeps prisma dev module.ts, which works at that version.
  • Checks

    lint:links, lint:agent-ready and cspell on the changed files pass. lint:code and lint:versions report the same violations as main, none in lines this PR changes.

    Found by the nightly getting-started check (prisma/getting-started-eval), which runs the Composer getting-started page's commands. It has failed at npx prisma dev module.ts since rc.28.

    Alternatives considered

  • --entry module.ts on every command instead of entry in the config. It works, but it repeats the file name on every command, and the CLI's own examples use the config field and keep --entry for overrides.

  • Waiting for the create-prisma release before changing the scaffold-based pages. The docs describe the latest versions. Holding back those pages would leave them inconsistent with the Composer pages in the meantime.
  • Agent: janeway-45

    Diff: 584 lines (+438 / -146) across 7 files Reviewer: wmadden Review duration: 74m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 584 lines diff across 7 files
    0.73
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.381
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.073
    Real PR Conversation Timeline
    1 comments
    "Review active on #8649"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 73.1% (HIGH) · Higher = larger blast radius
    73.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.9% · Safe to merge
    28.9%
    Repository