How to use Prisma 2 CLI on Heroku
问题 I have deployed NestJs application on Heroku which uses Prisma 2, but when I run the command npx prisma --version on heroku bash I get Prisma CLI version: prisma/1.34.10 (linux-x64) node-v14.15.0 but I have installed prisma 2.11.0, I want to use Prisma 2 cli to introspect my existing database, and run prisma generate. 回答1: I managed to introspect my existing database and run prisma generate by adding heroku-postbuild command on my package.json in scripts section as show below: { "scripts": {