CLI reference
Run kllm-batch --help for the command list and
kllm-batch COMMAND --help for the complete, version-matched options and
recovery guidance.
Command |
Synopsis |
Operation |
Purpose |
|---|---|---|---|
|
|
Local |
Create a starter project in an empty directory. See Basic workflow. |
|
|
Local |
Open the optional project builder for an initialized project. |
|
|
Local |
Validate data, mappings, prompts, schema, request sizes, and cost. |
|
|
Local |
Select records and create an immutable, costed run for inspection. |
|
|
Local |
Add one PNG/PDF per request to an unsubmitted run. See Attach one PNG or PDF per prepared request. |
|
|
Provider / paid |
Execute all eligible batch segments, or selected zero-based segments. |
|
|
Provider |
Refresh a batch run’s remote state once. |
|
|
Local |
Append a timestamped note to a run’s |
|
|
Local |
Print every run’s notes under a runs directory in one pass. |
|
|
Provider |
Retrieve batch responses, normalize results, and audit completeness. |
|
|
Provider |
Request cancellation for all eligible or selected remote batch jobs. |
|
|
Local |
Recompute completeness, failures, and result-identifier checks. |
|
|
Local |
Project an asynchronous batch cost by scaling a processed run’s recorded aggregate token usage; defaults to the project’s full row count. |
|
|
Local |
Prepare a linked child run for retryable failed rows. |
|
|
Local |
Merge valid attempt-chain results, preferring the newest attempt. |
|
|
Local |
Compare processed runs by record ID and export disagreements. |
Prepare options used most often
--sample-size NSelect a deterministic random sample instead of all rows.
--seed SControls which rows
--sample-sizerandomly selects, so the same seed reproduces the same pilot; it does not affect row order or a full run, which has no random selection step. Only valid together with--sample-size; without it, the configured evaluation seed is used.--ids-file PATHSelect IDs from a UTF-8 file with one source record ID per line and no header. This cannot be combined with
--sample-size.--execution sync|batchOverride the default execution mode. Selected runs default to
sync; complete runs default tobatch.--seg_start START --seg_end ENDOn
submitandcancel, target a contiguous, zero-based, half-open range. For example,--seg_start 0 --seg_end 2selects segments 0 and 1. Use--seg_end -1to continue through the final segment. Both options are required when selecting a range. Omit both to operate on all eligible segments; submission skips segments that already have remote batch IDs. Synchronous runs use per-request checkpoints and do not accept ranges.
Command boundaries
Local commands can read and write project/run artifacts but do not call a
model provider. Provider commands require the corresponding environment
credential. submit may incur charges; status, sync, and cancel
operate on already submitted batch work and may also involve billable work
already performed by the provider. See Advanced workflows for failure and recovery
behavior.