@blitzjs/cli

Blitz.js CLI

Usage no npm install needed!

<script type="module">
  import blitzjsCli from 'https://cdn.skypack.dev/@blitzjs/cli';
</script>

README

cli

Command-line utility for initializing a new blitz app, code generation, database management, and other functions. It is meant to be user-friendly and easy to extend.

Installation

npm i -g blitz

Usage

These are some examples of common commands from the blitz API. A full list is available at https://blitzjs.com/docs/cli-overview.

Create a new Blitz project called "my-blog"

blitz new my-blog

Generate all available code scaffolding for a resource named Project

blitz generate all project

Create a production build

blitz build

Launch the development server

blitz dev