CLI Reference
The pipeline exposes a thin CLI through abacus.pipeline.runner.
Entry point
AI advisor patch approval uses a separate file-based entry point:
On success, the CLI prints the final run directory:
Arguments
| Flag | Required | Default | Meaning |
|---|---|---|---|
--config |
Yes | None | YAML config path |
--output-dir |
No | results |
Root directory for pipeline runs |
--run-name |
No | Config filename stem | Optional run-name override |
--dataset-path |
No | None | Combined dataset CSV override |
--x-path |
No | None | Feature CSV override when not using --dataset-path |
--y-path |
No | None | Target CSV override when not using --dataset-path |
--holidays-path |
No | None | Holiday CSV override |
--target-column |
No | None | Target column used when reading CSV input |
--prior-samples |
No | 20 |
Prior predictive samples for Stage 10 |
--draws |
No | None | Posterior draws override |
--tune |
No | None | Posterior tuning steps override |
--chains |
No | None | Posterior chains override |
--cores |
No | None | Posterior cores override |
--random-seed |
No | 42 |
Shared random seed |
--curve-samples |
No | 100 |
Posterior samples for Stage 60 curves |
--curve-points |
No | 100 |
Number of x-values for saturation curves |
Common command patterns
Use the dataset path from YAML
Override the combined dataset path
Use separate feature and target files
Override sampler settings for one run
Override the holiday CSV
Approve an AI advisor patch
When ai_advisor.enabled: true and the advisor proposes a valid patch, Stage
08 writes 08_ai_advisor/approval_request.yaml with status: pending. Review
the proposal, edit the request to status: approved, then run:
The command writes approved_config.resolved.yaml and approval_record.yaml
beside the advisor artifacts. It does not edit the source config.
How CLI overrides interact with YAML
The CLI does not replace the full YAML config. It only overrides the runtime
fields exposed through PipelineRunConfig.
Important behaviours:
--dataset-pathtakes precedence overdata.dataset_path.--x-pathand--y-pathtake precedence overdata.x_pathanddata.y_path.--holidays-pathtakes precedence overholidays.path.--draws,--tune,--chains,--cores, and--random-seedare merged onto YAMLfit.--target-columnaffects CSV loading. Keep it consistent withtarget.columnin YAML.
Exit behaviour
The CLI exits with status 0 on success. On failure, the process exits
non-zero with the underlying exception.
The pipeline stops at the first stage failure. It does not provide flags to:
- run only a subset of stages
- continue after a failed stage
- disable individual built-in stages other than omitting the optional
optimizationblock from YAML
See Runner Overview and YAML Configuration for the execution model and config surface.