Add an output configuration
stencila outputs add [OPTIONS] <OUTPUT> [SOURCE] [-- <ARGUMENTS>...]
# Add a simple output (render report.md to report.pdf)
stencila outputs add report.pdf report.md
# Add with explicit render command
stencila outputs add report.pdf report.md --command render
# Add output that only runs on main branch
stencila outputs add report.pdf report.md --refs main
# Add static file (copy as-is)
stencila outputs add data.csv
# Add pattern-based outputs
stencila outputs add "exports/*.pdf" --pattern "exports/*.md"
# Add spread output (generates multiple variants)
stencila outputs add "{region}/report.pdf" report.md --command render -- region=north,south
# Add spread with multiple arguments (grid mode)
stencila outputs add "{region}/{year}/data.pdf" report.md --command render -- region=north,south year=2024,2025
# Add spread with zip mode
stencila outputs add "{q}-report.pdf" report.md --command render --spread zip -- q=q1,q2,q3,q4
Possible values of --spread
Possible values of --command