Skip to content
Nilay Kabariya

Entry No.046·Database·Updated ·7 min read

prisma generate not working: "No command registered" (Prisma 8)

npm now installs a Prisma 8 release candidate as prisma@latest. It has no generate, migrate dev or db push. Reproduced, with the fix for Docker and CI.

What changed on Nov 17, 2026: Prisma 8.0.0-rc.34 words the error differently: it now says prisma generate is a Prisma 7 command. The fix is unchanged, and Prisma's new prisma7 package also worked.

The error, verbatim

Jump to the fix ↓
{"kind":"result","envelope":{"ok":false,"commandId":"","error":{"code":"CLI.UNKNOWN_COMMAND","severity":"error","summary":"No command registered for `generate`","nextActions":[{"kind":"run-command","label":"List every command","command":"prisma --help"}]}}}

# 8.0.0-rc.34 and later:
✘ [CLI.V7_COMMAND] `prisma generate` is a Prisma 7 command and is not available in Prisma 8

The fix that worked

Pin the CLI back to Prisma 7:

npm i -D prisma@7
Not it? Every cause, tested ↓

Tested on

prisma (latest tag)
8.0.0-rc.20, re-checked on rc.23, rc.28, rc.29, rc.30, rc.31, rc.32, rc.33 and rc.34
prisma / @prisma/client
7.10.0, re-checked on 7.10.1
Postgres
17 (Docker)
Node / OS
24.14.0 / Windows 11 Pro

✓ Re-verified on prisma 8.0.0-rc.34, @prisma/client 7.10.1 (Linux): 4/4 checks still hold · results

Nothing is wrong with your schema. On npm, prisma@latest now points to 8.0.0-rc.34 (it was rc.20 when I first tested, rc.23 on October 7, rc.28 in late October, rc.29 until November 3, rc.30 until November 6, then rc.31, rc.32 and rc.33; the generate error read No command registered for `generate` on all of those, and rc.34 words it differently, shown below), a release candidate of Prisma ORM 8. It’s a new command-line tool that doesn’t read schema.prisma and has no generate, migrate dev or db push. Meanwhile @prisma/client@latest is still Prisma 7 (7.10.1 since October 15). So a fresh npm i prisma @prisma/client today gives you two different major versions, and every Prisma 7 tutorial breaks at the first command.

I checked it on October 7, 2026 with a fresh install:

$ npm view prisma dist-tags.latest
8.0.0-rc.23
$ npm view @prisma/client dist-tags.latest
7.10.1

These are the Prisma 7 commands I ran against it, each in the CLI’s new JSON output:

You ran Prisma 8 RC answered
npx prisma generate No command registered for `generate`
npx prisma migrate dev No command registered for `migrate`, did you mean `migration`? (on rc.31: [CLI.COMMAND_MOVED] `migrate dev` has been replaced)
npx prisma db push No command registered for `push`, did you mean `update`?
npx prisma validate No command registered for `validate`

From 8.0.0-rc.34 the CLI recognises these as Prisma 7 commands and says so. On November 17, 2026, on a fresh install of rc.34, all four failed with the same new code, CLI.V7_COMMAND, and exit code 2:

$ npx prisma generate
✘ [CLI.V7_COMMAND] `prisma generate` is a Prisma 7 command and is not available in Prisma 8
$ npx prisma migrate dev
✘ [CLI.V7_COMMAND] `prisma migrate dev` is a Prisma 7 command and is not available in Prisma 8
$ npx prisma db push
✘ [CLI.V7_COMMAND] `prisma db push` is a Prisma 7 command and is not available in Prisma 8
$ npx prisma validate
✘ [CLI.V7_COMMAND] `prisma validate` is a Prisma 7 command and is not available in Prisma 8

So if you see either wording, it’s the same problem: a Prisma 8 CLI in a Prisma 7 project. The same day, npx -y prisma@8.0.0-rc.33 generate still printed the old No command registered for `generate` .

Check which CLI you have

npx prisma --version tells you straight away. Prisma 7 prints a table (prisma : 7.10.0, @prisma/client : 7.10.0 and so on). The 8 release candidate prints a single bare version number, with no table:

8.0.0-rc.29

If you see one line starting with 8., you’re on Prisma 8. (Earlier release candidates printed a line of JSON here instead. On rc.28 and rc.29 you only get JSON if you add --json.)

The fix for an existing Prisma 7 app

Prisma 8 isn’t final yet: Prisma’s own release status page calls it a release candidate, with general availability expected in October 2026. October has passed: on November 2 the page still said October, and npm’s latest was still 8.0.0-rc.29. The same page says Prisma 7 keeps getting bug fixes and security updates for 18 months after the final release, and that Prisma 6 security patches end on 19 November 2026. If you have a working Prisma 7 app, the move is a rewrite (no @prisma/client, a new schema format, new commands), not a version bump.

Pin the CLI to the same major version as your client:

npm i -D prisma@7

npm saves that as ^7.10.1 (it was ^7.10.0 before October 15), which stays on 7.x. Then the usual commands work again:

$ npx prisma generate
✔ Generated Prisma Client (7.10.1) to .\src\generated\prisma in 54ms
$ npx prisma migrate dev --name init
Datasource "db": PostgreSQL database "postgres", schema "public" at "localhost:55432"

The rc.34 error message suggests a second way: Prisma now publishes the Prisma 7 CLI under its own name, @prisma/prisma7, with a prisma7 command. I tested it on November 17, 2026 (version 7.10.1):

$ npm install --save-dev @prisma/prisma7@7
$ npx prisma7 generate
✔ Generated Prisma Client (7.10.1) to .\src\generated\prisma in 52ms

It works, but every script and tutorial that says prisma then has to say prisma7. Pinning prisma@7 keeps the command name you already use, and on the same day it still gave prisma : 7.10.1 and a generated client.

Docker and CI: npx prisma without a version

This is where most of the breakage is. A Dockerfile or CI step that runs npx prisma generate in a place where Prisma isn’t installed (a slim production image, a separate migration job) makes npx download whatever latest is. I ran it in an empty folder with only prisma/schema.prisma in it:

$ npx -y prisma generate
{"kind":"result","envelope":{"ok":false,...,"summary":"No command registered for `generate`",...}}

Public repos have been filing the same failure since early September: Docker images, Railway deploys, a self-hosted release script, and Prisma’s own Claude Code plugin (“unpinned npx -y prisma mcp now resolves to 8.0.0”).

Put the major version in the command itself:

npx -y prisma@7 generate

Better still, keep prisma in devDependencies with the ^7 range and install from your lockfile (npm ci) before running it. Then npx uses the local copy instead of downloading latest.

If you already ran prisma init on the new CLI

npx prisma init with 8.0.0-rc.20 doesn’t create prisma/schema.prisma or .env. In my test it created:

  • a prisma.config.ts that imports definePrismaConfig and only lists AI agents,
  • .claude, .cursor, .agents and .devin folders with Prisma “skills” in them,
  • a postinstall script in package.json: prisma skills sync || exit 0.

That config file breaks the old CLI even after the fix above. With it in place, Prisma 7.10.0 refused to start:

Failed to load config file "D:\nk-repro\prisma-init" as a TypeScript/JavaScript module.
Error: TypeError: (0 , _config.definePrismaConfig) is not a function

Replace prisma.config.ts with a Prisma 7 config (Prisma 7 reads the connection URL from here, not from the schema):

import 'dotenv/config';
import { defineConfig, env } from 'prisma/config';

export default defineConfig({
  schema: 'prisma/schema.prisma',
  migrations: { path: 'prisma/migrations' },
  datasource: { url: env('DATABASE_URL') },
});

Then delete the postinstall line, and the four agent folders if you don’t want them.

Watch out for the update banner

Once the fix above is in, the Prisma 7 CLI shows an “update available” box at the end of some commands. Mine ended with:

│  Run the following to update                            │
│    npm i --save-dev prisma@latest                       │
│    npm i @prisma/client@latest                          │

Running that puts you straight back on the release candidate. Ignore it until you decide to move to Prisma 8 on purpose.

Moving to Prisma 8 instead

If you’re starting a new project and want Prisma 8, these are the replacements from Prisma’s migration page. I confirmed that the old names fail on 8.0.0-rc.20, but I haven’t built a project on Prisma 8, so treat this as a map, not tested steps:

Prisma 7 Prisma 8 (per Prisma’s docs)
prisma init prisma orm init --write-env
prisma generate prisma contract emit
prisma migrate dev prisma db update, or prisma migration plan then prisma db migrate
prisma db push prisma db init (empty database) or prisma db update
@prisma/client one package per database, e.g. @prisma/orm-postgres

What didn’t work

How this was tested

A fresh npm project on Windows 11 with Node 24.14.0, created with npm i -D prisma and npm i @prisma/client on October 7, 2026, which installed prisma 8.0.0-rc.20 and @prisma/client 7.10.0. Every Prisma 7 command above was run against that CLI, then again after the fix, against Postgres 17 in Docker. The CI case was a folder containing only prisma/schema.prisma and .env, with nothing installed, running npx -y prisma generate and then the version-pinned command from the Docker section. npm dist-tags can change at any time: when Prisma 8 reaches its final release, latest will point to it for good, and the fix above stays the way to keep a Prisma 7 app running. On October 16, after @prisma/client 7.10.1 came out, I re-ran the install, the error, npm i -D prisma@7 with generate, and the empty-folder npx -y prisma@7 generate: same results, on 7.10.1. I didn’t re-run migrate dev or the config-file case on 7.10.1.

The code for every case above is public, so you can run it yourself: prisma-init and prisma-ci in nk-repro.

November 2, 2026: the automated daily check re-ran on Linux with prisma@latest at 8.0.0-rc.29 and @prisma/client@latest at 7.10.1. Unpinned npx -y prisma generate still failed with No command registered for `generate` , and npx -y prisma@7 generate still generated the client.

November 3, 2026, the day 8.0.0-rc.30 became latest: the daily check re-ran on it (run). Unpinned npx -y prisma generate still failed with No command registered for `generate` , npx -y prisma@7 generate still generated the client, and @prisma/client@latest was still 7.10.1.

November 6, 2026, the day 8.0.0-rc.31 became latest, on Windows 11 with Node 24.14.0: prisma generate still failed with No command registered for `generate` and prisma db push with No command registered for `push`, did you mean `update`?. prisma migrate dev now fails differently, with [CLI.COMMAND_MOVED] `migrate dev` has been replaced, and points you to Prisma 8’s three steps: prisma contract emit, then prisma migration plan --name <name>, then prisma db migrate --advance-ref db. Its message also says that while Prisma 7 still owns your project’s migrations, you should run migrate dev with Prisma 7’s CLI, which is the fix above. rc.32 (later on November 6) and rc.33 (November 7) printed the same three errors.

November 17, 2026, with 8.0.0-rc.34 as latest and @prisma/client@latest still 7.10.1, on Windows 11 with Node 24.14.0 and npm 11.9.0: a fresh npm i -D prisma installed rc.34, and generate, migrate dev, db push and validate each failed with [CLI.V7_COMMAND] `prisma <command>` is a Prisma 7 command and is not available in Prisma 8 (exit code 2; with --json the code is CLI.V7_COMMAND and commandId is generate). prisma --version still printed one bare line, 8.0.0-rc.34. In a folder with only the schema and .env, unpinned npx -y prisma generate failed the same way and npx -y prisma@7 generate generated the client (7.10.1). npm i -D prisma@7 gave 7.10.1, and @prisma/prisma7@7 with npx prisma7 generate also generated the client.

— N.K., end of entry No.046

Useful? Pass it on:Post on XFollow @EmotionalMatter

Related entries

  1. No.047

    Fix: @prisma/client did not initialize yet (Prisma 6 and 7)

    The error says run prisma generate. Why it keeps coming back on Windows, npm 12 and CI, reproduced, plus the errors Prisma 7 throws instead.

    > D:\project\node_modules\.prisma\client\default.js:43

    DATABASE5 minWindows
  2. No.112

    pnpm 12 breaking changes, tested: the errors pnpm 11 didn't give

    Four commands that exited 0 on pnpm 11.28.13 failed on 12.21.0: a misspelled setting in a pinned project (ERR_PNPM_UNRECOGNIZED_WORKSPACE_SETTINGS), --frozen-lockfile false, --resolution-only, and sudo pnpm add -g (ERR_PNPM_SUDO_NOT_SUPPORTED). pnpm add yarn now changes packageManager instead of adding a dependency. Each of the four errors has a one-line fix; for the yarn change, pnpm documents a one-line specifier (`pnpm add yarn@npm:yarn@1.22.22`) that was not run.

    TESTED4 min
  3. No.110

    Cannot find module @rollup/rollup-linux-x64-gnu: what causes it

    Rollup blames an npm bug and says to delete your lockfile. On npm 11 that wasn't it: five setups that gave the error on Linux and Alpine, and the fix for each.

    > Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.

    FIXED3 min

tip: paste the exact error text