OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add prisma/cursor-plugin --skill prisma-cli-generate
prisma generate. Reference when using this Prisma feature.
npx skills add prisma/cursor-plugin --skill prisma-cli-generate
Generates assets based on the generator blocks in your Prisma schema, most commonly Prisma Client.
If you're using Bun, run Prisma with bunx --bun so it doesn't fall back to Node.js:
schema.prisma file| Option | Description |
|---|---|
--schema | Custom path to your Prisma schema |
--config | Custom path to your Prisma config file |
--sql | Generate typed sql module |
--watch | Watch the Prisma schema and rerun after a change |
--generator | Generator to use (may be provided multiple times) |
--no-hints | Hides the hint messages but still outputs errors and warnings |
--require-models | Do not allow generating a client without models |
Auto-regenerates when schema.prisma changes.
prisma-clientoutput is now required - client no longer generates to node_modulesNote: In v7, migrate dev no longer auto-runs generate.
Run before building your application.
After running prisma generate, your output directory contains:
Import the client: