CLI
Accelerate your development with the Blizzard CLI.
Blizzard CLI
BlizzardTS comes with a powerful CLI to help you scaffold projects and generate code quickly.
Installation
The CLI is included with blizzardts. You can run it using bunx or via bun run if installed locally.
bunx blizzard <command>Commands
Create Project
Scaffold a new BlizzardTS project with a ready-to-use structure.
blizzard create <project-name>This will create a new directory with:
src/index.ts: Entry pointpackage.json: Dependenciestsconfig.json: TypeScript config
Generate Middleware
Create a new middleware file in src/middleware/.
blizzard make:middleware <name>Example:
blizzard make:middleware AuthCreates src/middleware/Auth.ts.
Generate Handler
Create a new route handler file in src/handlers/.
blizzard make:handler <name>Example:
blizzard make:handler UserCreates src/handlers/User.ts.
Development Server
Start the development server with hot reloading (via Bun's watch mode).
blizzard devThe dev command is a wrapper around bun run --watch src/index.ts.