All apps/Blitz.js

Blitz.js

blitz

The fullstack React framework CLI.

Runs as blitz|macOS, Linux, Windows|blitzjs.com

Command form

ai-draft · 4 tasks · 15 fields

Create projects, run the dev and production servers and generate code.

Opens the form; the finished command lands at your prompt, unrun
otty gui blitz

blitz new

New project
New projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Project name*
string
Use npm
--npm
Form library
3 choicesenum
TasksEach one presets the form for one job
Create a project
namenpmform
ParametersOnly these flags are editable in the form
Project name
string · positional 0
Use npm
boolean
--npm
Use yarn
boolean
--yarn
Form library
enum
--formreact-final-formreact-hook-formformik
Dry run
Show what files will be created without writing them to disk.
boolean
--dry-run-d
Skip git repository
boolean
--no-git

blitz dev

Development server
Development serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Hostname
string
TasksEach one presets the form for one job
Start the dev server
porthostname
ParametersOnly these flags are editable in the form
Port
integer
--port-p
Hostname
string
--hostname-H
Node.js inspector
boolean
--inspect

blitz start

Production server
Production serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Hostname
string
TasksEach one presets the form for one job
Start the production server
porthostname
ParametersOnly these flags are editable in the form
Port
integer
--port-p
Hostname
string
--hostname-H

blitz generate

Generate code
Generate codeExample values, fixed in this page — nothing here reaches a terminal
Basic
What to generate*
9 choicesenum
Model name*
string
Context folder
string
Dry run
--dry-run
TasksEach one presets the form for one job
Generate files
typemodelcontextdry_run
ParametersOnly these flags are editable in the form
What to generate
enum · positional 0
allcrudmodelpagesqueriesquerymutationsmutationresource
Model name
Singular or plural, e.g. user.
string · positional 1
Context folder
string
--context-c
Dry run
boolean
--dry-run-d
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed blitz against its version. A form that does not match your version is not offered.