Skip to content

Command reference

Command Purpose
init Create a project without overwriting files
preview Serve a local preview until Ctrl+C
validate Check sources and layout
build Compile intermediate and generated artifacts
export Write PDF or static HTML after validation gates
clean Remove reproducible generated/cache files

All commands accept --json and --help. wwpo --version is used without a command. Options belong only to commands that accept them; an inapplicable option is a usage error.

--json emits one JSON document to stdout with apiVersion: 1. Progress belongs on stderr. preview --json reports the URL once, then keeps running. Do not publish its token-bearing URL.

Code Meaning
0 Success
1 Errors or failure
2 Export blocked by warnings
64 Usage error
70 Internal error
130 Interrupted operation

Stopping a running CLI preview with Ctrl+C completes successfully (0).