Statico Source
Contents

Command line

Every statico command, its flags and its exit codes.

Build and deploy, page 21

statico new <folder> [--template blog|docs|starter|aria|boxed|stone|owner/repo|./dir|file.zip]
statico init                     turn the current folder into a Statico project
statico dev [--port 3000] [--open]
statico build [url] [--out dir] [--no-minify] [--skip-tools]
statico serve                    preview the built site like a static host
statico check [--strict]         build in a temp dir and check links, anchors, alt text, titles
statico add page|post|include|layout|collection <name> [--title …]
statico routes                   list every URL and the file that renders it
statico docs [topic|--all]       this reference, offline
statico explain <code>           explain an error code, e.g. S101
statico diff <old_dir> <new_dir> compare two builds (safe upgrades)
statico schema                   JSON Schema for statico.json
statico agents                   write AGENTS.md / CLAUDE.md for AI coding agents
statico templates                list starter templates

Global flags: --json (one machine-readable JSON object on stdout), -C <dir> (run in another folder). Exit codes: 0 success, 1 errors (build failed, check found problems), 2 invalid usage.