fix(blog): Prisma Next posts still teach the removed migration apply command#8028
Conversation
The Prisma Next CLI replaced `prisma-next migration apply` with the top-level `prisma-next migrate` (the CLI now prints "Use `prisma-next migrate --to <contract>` instead" for the old verb). Readers copying commands from the TypeScript-migrations and MongoDB posts hit an unknown-command error. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughTwo blog articles were updated to replace the deprecated ChangesBlog documentation command updates
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Poem 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Product gotcha: published content teaches a removed CLI verb
The Prisma Next CLI replaced
prisma-next migration applywith the top-levelprisma-next migrate(verified againstprisma/prisma-nextorigin/main: the CLI ships an explicit removed-verb redirect that exits with "Useprisma-next migrate --to <contract>instead"). Two published blog posts still teach the old verb, so readers copying commands hit an unknown-command error on current builds.Fixed here
$ npx prisma-next migration applyinvocations, theFix:line inside the sample error output, and the workflow list item.prisma-next migration applyto execute."Not fixed here (needs the docs team, flagging for follow-up)
The
apps/docs/content/docs/cli/next/*reference section documents the old CLI surface more broadly and needs regeneration rather than find/replace, e.g.:cli/next/migration-apply.mdxexists as a page (the verb is gone; the replacementmigratehas different flags:--to,--advance-ref,--show,--from)cli/next/migration-ref.mdxdocumentsmigration apply --ref <name>(removed; refs are nowprisma-next ref set|list|deleteplus--to <ref>)cli/next/configuration.mdxlistsmigration applyamong commands needingdb.connectioncli/next/db-update.mdxlinks to the migration-apply pageThe new
/orm/next/migrationssection (#8025) documents the current surface and can serve as the reference for that update.🤖 Generated with Claude Code
Summary by CodeRabbit
prisma-next migratecommand.