Commands
Main Command
The primary Spaz command is straightforward:
spaz [OPTIONS]
Options
--input / -i
Specifies the input directory containing your markdown files.
spaz --input docs
spaz -i ./content
Default: Current directory (.)
--output / -o
Specifies where to generate the HTML output.
spaz --output dist
spaz -o public
Default: dist
Examples
Basic Usage
spaz --input docs --output dist
Custom Directories
spaz -i content/pages -o build/static
Watch Mode (with external tool)
You can combine with watchexec for development:
watchexec -e md 'spaz --input docs --output dist'
Exit Codes
0: Generation succeeded1: Generation failed (check error message)
Output
When successful, Spaz prints the path to each generated file:
Generated: "dist/index.html"
Generated: "dist/about/index.html"
Generated: "dist/getting-started/install/index.html"
...
SPA generated successfully in "dist"