Skip to content

docs: align Prisma 8 blogs and guides with the rc.6 CLI and current scaffold - #8153

Merged
ankur-arch merged 1 commit into
mainfrom
ankur/prisma8-command-audit
Aug 19, 2026
Merged

docs: align Prisma 8 blogs and guides with the rc.6 CLI and current scaffold#8153
ankur-arch merged 1 commit into
mainfrom
ankur/prisma8-command-audit

Conversation

@ankur-arch

@ankur-arch ankur-arch commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Every CLI invocation in the Prisma 8 blogs and v8 guides now uses the unified prisma@next CLI, and the scaffold-dependent steps match what create-prisma@next generates today. All repository links point at prisma/prisma, where the Prisma 8 source now lives.

What changed

Commands. Replaced every stale invocation with npx prisma@next … (or the orm init form for existing projects): npx prisma-next@latest init, pnpx prisma-next init, npx @prisma/cli@next …, and bunx prisma-next … across twelve blog posts and two docs pages. Config snippets that moved commands to the unified CLI also moved to prisma.config.ts with the definePrismaConfig/ormConfig wrapper, matching the canonical form in the extensions docs.

Scaffold flags. create-prisma@next (0.4.2-next.37) has no --prisma-postgres, --database-url, --install, or --emit flags; those belong to the Prisma 7 scaffolder (create-prisma@latest 0.7.1). Every guide and agent prompt that passed them now scaffolds with the supported flags and gets a database from npx create-db@latest (or a connection string the reader already has).

Scaffold behavior. The current scaffold is Composer-first: no .env for PostgreSQL projects, no db:seed or db:up scripts, and sample data seeds itself on the app's first query. Neither the CLI nor the dev script reads .env in scaffolded projects (the generated config lacks the dotenv/config import that prisma@next orm init writes), so the quickstarts now export DATABASE_URL explicitly. The MongoDB quickstart documents the scaffold's split env contract: the CLI reads MONGODB_URL, the app reads DATABASE_URL. The obsolete PN-CLI-4999 / db.orm.public.User known-issue boxes are gone; the scaffold now emits the unified config and namespace-qualified queries.

Studio. prisma@next rc.6 and prisma@dev no longer ship a studio command, and the stable Prisma CLI 7.9.1 bundles @prisma/studio-core 0.33.0, which includes the Migrations view. The Studio blog and docs page now say npx prisma@latest studio --url …, run from outside the project directory (the Prisma 7 CLI fails on the Prisma 8 prisma.config.ts).

Deno. The deno guide's npm:prisma@next commands fail under Deno (ERR_MODULE_NOT_FOUND in @prisma/credentials-store); the scaffold's generated deno task scripts (which call npm:prisma-next) work, so the guide uses those. The Deno scaffold still takes the legacy path: it provisions a Prisma Postgres database, writes .env, and still needs the documented db.orm.public.User fix, so those parts stay.

Repo links. prisma/prisma-nextprisma/prisma everywhere the link is a CTA or points at content that moved (examples renamed to prisma-8-demo / prisma-8-postgis-demo; retail-store migration path updated; ROADMAP.md and the tables.ts deep link verified to exist in prisma/prisma). Dated milestone PR links stay on the old repo.

Not in this PR

  • The CipherStash post rework is already staged locally (search-encrypted-data-with-prisma-8-and-cipherstash); both the published post and the staged draft still use npx prisma-next … commands and the old config filename, so that session should pick up the same fixes.
  • introducing-create-prisma correctly documents the Prisma 7 scaffolder (create-prisma@latest) and its --prisma-postgres/--database-url flags; left as is.
Validation
  • PostgreSQL quickstart, E2E: npx create-db@latestcreate-prisma@next (minimal template) → npm run db:init (5 operations applied, database signed) → npm run dev → endpoint returned the 3 seeded users. Confirmed .env alone is read by neither the scripts nor the CLI (db:verify fails with "Database connection is required" unless the variable is exported).
  • MongoDB quickstart, E2E against a local single-node rs0 replica set (mongodb-memory-server): npm run migration:plan -- --name init (3 operations) → npm run migrate (applied) → npm run dev → endpoint returned the 3 seeded users. Confirmed the CLI requires MONGODB_URL and the app requires DATABASE_URL.
  • Scaffolded the next and hono templates to confirm all templates share the same script set (no db:seed, no .env).
  • Deno, E2E: scaffold auto-provisioned Prisma Postgres; deno task db:init / db:seed / dev succeeded after the documented namespace fix; npm:prisma@next confirmed broken under Deno.
  • npx prisma@next orm init validated for postgres and mongodb targets (writes prisma.config.ts with dotenv/config; needs --target/--authoring with --yes).
  • Studio: prisma@next studio returns CLI.UNKNOWN_COMMAND; npx prisma@latest studio --url … serves Studio from a config-free directory and fails inside a Prisma 8 project.
  • Repo targets verified via the GitHub API: examples/prisma-8-demo, examples/retail-store/migrations/app/20260513T0508_backfill_product_status, packages/3-extensions/*, ROADMAP.md, packages/3-targets/.../tables.ts.
  • pnpm lint:links (0 errors), pnpm run lint:spellcheck (0 issues), pnpm check clean.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated Prisma 8 setup instructions across tutorials and framework guides.
    • Simplified database setup by separating database creation from application scaffolding.
    • Standardized CLI commands and configuration examples.
    • Documented exporting DATABASE_URL, deployment environment setup, and automatic sample-data seeding on the first query.
    • Updated PostgreSQL, MongoDB, pgvector, migrations, extensions, and Studio workflows.
    • Refreshed repository links, migration examples, and Studio guidance to reflect current Prisma tooling.

…caffold

Every CLI invocation in the Prisma 8 blogs and v8 guides now uses the
unified prisma@next CLI, and the scaffold-dependent steps match what
create-prisma@next actually generates today, validated end to end
against a live Prisma Postgres database and a local MongoDB replica set.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview Aug 19, 2026 12:03pm
docs Ready Ready Preview Aug 19, 2026 12:03pm
eclipse Ready Ready Preview Aug 19, 2026 12:03pm
site Ready Ready Preview Aug 19, 2026 12:03pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

255 links: ✅ 32 OK | 🚫 0 errors | 🔀 6 redirects | 👻 223 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 32
🔀 Redirected 6
👻 Excluded 223
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 79776dc7-ce94-4b61-832f-b40b098f45c4

📥 Commits

Reviewing files that changed from the base of the PR and between 220a3d7 and 3e70716.

📒 Files selected for processing (38)
  • apps/blog/content/blog/data-migrations-in-prisma-next/index.mdx
  • apps/blog/content/blog/mongodb-without-compromise/index.mdx
  • apps/blog/content/blog/prisma-next-call-for-extension-authors/index.mdx
  • apps/blog/content/blog/prisma-next-early-access-write-your-contract-prompt-your-agent-ship-your-app/index.mdx
  • apps/blog/content/blog/prisma-next-ltree-extension/index.mdx
  • apps/blog/content/blog/prisma-next-performance-benchmark/index.mdx
  • apps/blog/content/blog/prisma-next-roadmap-april-milestone/index.mdx
  • apps/blog/content/blog/prisma-next-roadmap/index.mdx
  • apps/blog/content/blog/prisma-studio-migrations-view/index.mdx
  • apps/blog/content/blog/ship-risky-schema-changes-without-a-shared-staging-database/index.mdx
  • apps/blog/content/blog/stop-your-ai-agent-dropping-your-database/index.mdx
  • apps/blog/content/blog/typescript-migrations-in-prisma-next/index.mdx
  • apps/blog/content/blog/you-dont-need-a-vector-database-postgres-already-has-pgvector/PgvectorDemoRunner.tsx
  • apps/blog/content/blog/you-dont-need-a-vector-database-postgres-already-has-pgvector/index.mdx
  • apps/docs/content/docs/(index)/index.mdx
  • apps/docs/content/docs/(index)/prisma-postgres/quickstart/prisma-next.mdx
  • apps/docs/content/docs/(index)/v8/full-stack-tutorial.mdx
  • apps/docs/content/docs/(index)/v8/getting-started.mdx
  • apps/docs/content/docs/(index)/v8/index.mdx
  • apps/docs/content/docs/(index)/v8/prisma-postgres/from-the-cli.mdx
  • apps/docs/content/docs/(index)/v8/quickstart/mongodb.mdx
  • apps/docs/content/docs/(index)/v8/quickstart/postgresql.mdx
  • apps/docs/content/docs/composer/databases.mdx
  • apps/docs/content/docs/guides/v8/frameworks/astro.mdx
  • apps/docs/content/docs/guides/v8/frameworks/elysia.mdx
  • apps/docs/content/docs/guides/v8/frameworks/hono.mdx
  • apps/docs/content/docs/guides/v8/frameworks/nestjs.mdx
  • apps/docs/content/docs/guides/v8/frameworks/nextjs.mdx
  • apps/docs/content/docs/guides/v8/frameworks/nuxt.mdx
  • apps/docs/content/docs/guides/v8/frameworks/sveltekit.mdx
  • apps/docs/content/docs/guides/v8/frameworks/tanstack-start.mdx
  • apps/docs/content/docs/guides/v8/runtimes/bun.mdx
  • apps/docs/content/docs/guides/v8/runtimes/deno.mdx
  • apps/docs/content/docs/guides/v8/upgrade-prisma-orm/meta.json
  • apps/docs/content/docs/orm/v8/extensions/using-extensions.mdx
  • apps/docs/content/docs/orm/v8/migrations/editing-a-migration.mdx
  • apps/docs/content/docs/orm/v8/migrations/the-migration-graph.mdx
  • apps/docs/content/docs/studio/prisma-next.mdx

Walkthrough

The PR updates Prisma 8 blog and documentation examples. It replaces legacy CLI commands and configuration, separates database creation from scaffolding, uses DATABASE_URL, documents automatic first-query seeding, updates Studio guidance, and changes repository links.

Changes

Prisma 8 documentation updates

Layer / File(s) Summary
Blog CLI and configuration examples
apps/blog/content/blog/*
Blog examples now use prisma@next, prisma.config.ts, the current ORM configuration structure, and the prisma/prisma repository.
Database setup and initialization guides
apps/docs/content/docs/(index)/*, apps/docs/content/docs/guides/v8/*
Guides separate scaffolding from database setup, export DATABASE_URL, use db:init, remove manual seeding, and document automatic first-query seeding.
Studio setup and availability
apps/blog/content/blog/prisma-studio-migrations-view/index.mdx, apps/docs/content/docs/studio/prisma-next.mdx
Studio instructions use separate project and database setup, explicit connection strings, application-triggered seeding, and stable CLI support.
Repository links and metadata
apps/docs/content/docs/orm/v8/*, apps/docs/content/docs/guides/v8/upgrade-prisma-orm/meta.json
Example links now target the current repository, and the metadata array formatting is condensed without changing its values.

Estimated code review effort: 4 (Complex) | ~45 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ankur/prisma8-command-audit

Comment @coderabbitai help to get the list of available commands.

@ankur-arch
ankur-arch merged commit 71030dc into main Aug 19, 2026
16 of 17 checks passed
@ankur-arch
ankur-arch deleted the ankur/prisma8-command-audit branch August 19, 2026 12:03
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.

1 participant