vaw Wiki
Reading preferences
Text size

CLI reference

On this page

CLI reference#

Running vaw with no subcommand runs a build using vaw.yaml in the current directory. Use vaw --help and vaw COMMAND --help for flags and the other commands.

Command Behavior
init [directory] [--vault PATH] Create config and ignore entries without overwriting config; create sample homepage only for a new publishing vault
build Analyze, render and replace owned static output
check Analyze without writing output; any diagnostic exits nonzero
inspect Show public note routes and publication counts
stats Show note, asset and relationship counts
serve Serve a local static preview with recursive filesystem watching, debounced rebuilds and optional live reload
config validate Validate configuration
version Show installed executable version
doctor Check config, source analysis and project pin locally; no network update check
upgrade --version TAG Resolve an exact GitHub release and update committed integrity metadata; does not replace the executable
upgrade --check [--version TAG] Check the requested/current pin without changing files
completion SHELL Generate shell completion

build, check, inspect, stats and serve accept --vault, --output, --base-url, --strict, --verbose. Use --strict=false to deliberately allow diagnostic fallback rendering; default strictness is true. --json emits structured build/analysis summaries; diagnostics/errors also determine the exit status. No color is emitted, including under NO_COLOR.

serve --host 127.0.0.1 --port 8080 --no-open binds locally by default and suppresses browser opening. Without --no-open, vaw attempts to open the preview using the operating system. Successful watched rebuilds trigger browser reloads; failed rebuilds retain previous output and report the error. Changing host/port requires restarting preview. The preview server is never required in production.

init --deployment cloudflare (or cloudflare-workers, github-pages, static) adds deployment configuration, an embedded bootstrap script and an unconfigured lock. Offline initialization does not invent checksums or download a release. Intentionally pin a published release before CI use. Existing Markdown/configuration is preserved; an existing README is preserved and instructions go to VAW.md instead.

upgrade --repository OWNER/REPO --version TAG explicitly selects a release origin. Resolving a requested release uses the network; ordinary builds, checks, preview and doctor do not perform update checks. The installed generator and content-project pin have independent lifecycles. Review lock diffs before committing. A first public release must exist before a fresh starter bootstrap can download it.

Optional public-source export is not provided: use a dedicated publishing vault or carefully controlled private repository. Exit code 0 means success; 1 means a command/build/validation error. Cobra enforces invalid argument handling.

Linked notes

Related notes

Linked from

Search is ready.

    ↑ ↓ move · Enter open · Esc close

    Explore graph

    Open the graph to explore note relationships.