A Collection of Prisma CLI Commands
Prisma Login
- pscale auth login
Connect the Prisma PlanetScale Bridge
- pscale connect (database name)
Create a Prisma database
- pscale database create (database name) --region gcp-asia-norteast3
Push the Prisma database (saves the changes in schema.prisma)
- npx prisma db push
Open Prisma Studio in the browser
- npx prisma studio
Generate the client
npm install @prisma/client
js
import { PrismaClient } from "@prisma/client";npx prisma generate
- #CLI
- #Prisma
- #Frontend Developer Sungjun Um