You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
generate: Usage instructions should be directly below ✔ Generated ... of generator #1737
If you use a custom generator, the output currently looks like this:
✔ Generated Prisma Client to .\node_modules\@prisma\client in 287ms
✔ Generated Prisma Test Utils to .\prisma\node_modules\@generated\prisma-test-utils in 3.50s
You can now start using Prisma Client in your code:
´´´
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
´´´
Explore the full API: http://pris.ly/d/client
I think the output would make more sense with the "usage instructions" next to the generator that caused them:
✔ Generated Prisma Client to .\node_modules\@prisma\client in 287ms
You can now start using Prisma Client in your code:
´´´
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
´´´
Explore the full API: http://pris.ly/d/client
✔ Generated Prisma Test Utils to .\prisma\node_modules\@generated\prisma-test-utils in 3.50s
That could also lead to generators being able to add their own output.
changed the title [-]`generate`: Usage instructions should be next to generator[/-][+]`generate`: Usage instructions should be directly below "✔ Generated ..." of generator[/+]on Sep 11, 2020
changed the title [-]`generate`: Usage instructions should be directly below "✔ Generated ..." of generator[/-][+]`generate`: Usage instructions should be directly below `✔ Generated ...` of generator[/+]on Sep 11, 2020
Approach: In the Prisma CLI generator runner, after printing the 'Generated X to ...' line for each generator, the usage instructions should be printed immediately beneath that specific generator's output rather than grouped at the end. This means moving the post-generate message emission inside the per-generator loop rather than after all generators have completed. I'd find the relevant code in the packages/cli/src/Generate.ts (or similar) and adjust the output ordering.
ETA: 1-2 days Background: I maintain 35+ npm packages and work extensively in this ecosystem. This is a focused TypeScript CLI output change.
Activity
Jolg42 commentedon Mar 3, 2020
Related https://github.com/prisma/specs/issues/427
[-]`generate`: Usage instructions should be next to generator[/-][+]`generate`: Usage instructions should be directly below "✔ Generated ..." of generator[/+][-]`generate`: Usage instructions should be directly below "✔ Generated ..." of generator[/-][+]`generate`: Usage instructions should be directly below `✔ Generated ...` of generator[/+]4 remaining items
timsuchanek commentedon Nov 16, 2020
Thanks @muxahuk! I answered your questions in the PR.
feat(cli,client,generator-helper,sdk): add ability for generators to …
Mbistami commentedon Oct 16, 2024
@Jolg42 @matthewmueller Can I handle this issue?
SE7EN2028 commentedon Nov 21, 2025
Hey! I created a PR that fixes this issue:
#28628
Please take a look whenever you get time. Thanks!
fix(generate): show usage instructions directly below each generator'…
fix(generate): place usage instructions directly after generator output
chengyixu commentedon Mar 20, 2026
Hi! I'd like to work on this UX improvement.
Approach: In the Prisma CLI generator runner, after printing the 'Generated X to ...' line for each generator, the usage instructions should be printed immediately beneath that specific generator's output rather than grouped at the end. This means moving the post-generate message emission inside the per-generator loop rather than after all generators have completed. I'd find the relevant code in the
packages/cli/src/Generate.ts(or similar) and adjust the output ordering.ETA: 1-2 days
Background: I maintain 35+ npm packages and work extensively in this ecosystem. This is a focused TypeScript CLI output change.
Happy to discuss before starting. — @chengyixu