CLI Commands

new

Generate a new blitz project at <current_folder>./NAME

$ blitz new myProjectName

start

Start your app in development mode

$ blitz start

Start your app in production mode

$ blitz start --production

db migrate

Run any needed migrations via Prisma 2 and generate Prisma Client

$ blitz db migrate

db introspect

Will introspect the database defined in db/schema.prisma and automatically generate a complete schema.prisma file for you. Lastly, it'll generate Prisma Client.

$ blitz db introspect

db studio

Open the Prisma Studio UI at http://localhost:5555 to see and change data in your database.

$ blitz db studio

blitz console

$ blitz console