Hi! When should I use `npx prisma generate` ? I us...
# orm-help
a
Hi! When should I use
npx prisma generate
? I usually migrate my schemas using
npx prisma migrate [...]
, which I think also regenerates the Prisma Client, so what are other use cases for
npx prisma generate
?
✅ 1
n
Hey 👋 Welcome to our Slack community!
npx prisma generate
command should be invoked anytime you make changes to your
schema.prisma
file, for your
PrismaClient
to be in sync with your schema file you would need to execute the generate command. Here’s the related reference from the docs.
o
Either when you make changes to the schema, or when you want to run a community generator