Skip to Content
Helm

CLI Reference

Commands and options exposed by the Helm CLI.

The CLI binary name is zagvar-helm. Global package installs expose that command on your shell PATH; local installs can run it through your package manager.

pnpm exec zagvar-helm --help

Commands

CommandPurpose
zagvar-helm evaluateEvaluate one applicant from a JSON file.
zagvar-helm evaluate-batchEvaluate multiple applicants from JSON or CSV.
zagvar-helm compileCompile a risk-profile definition into a JDM graph.
zagvar-helm validateValidate a JDM graph and optionally test it with sample input.
zagvar-helm profileRun an interactive terminal questionnaire.

evaluate

Evaluate one applicant from a JSON file.

zagvar-helm evaluate --input applicant.json --output json
Argument or optionRequiredNotes
--inputYesPath to a JSON file containing evaluation input.
--definitionNoPath to a custom risk-profile definition.
--jdm-pathNoPath to a custom JDM graph file.
--outputNotable or json. Defaults to table.

When --definition is supplied without --jdm-path, the CLI compiles the definition into a graph before evaluation. When both are supplied, the definition declares the contract and the JDM file supplies the executable graph.

evaluate-batch

Evaluate multiple applicants from a JSON or CSV file.

zagvar-helm evaluate-batch --input applicants.csv --input-format csv --output json
Argument or optionRequiredNotes
--inputYesPath to JSON or CSV batch input.
--input-formatNojson or csv. Defaults from file extension; .csv means CSV, otherwise JSON.
--definitionNoPath to a custom risk-profile definition.
--jdm-pathNoPath to a custom JDM graph file.
--outputNojson or csv. Defaults to json.
--max-batch-sizeNoPositive integer. Defaults to 100.

JSON batch input can be a raw array or an object with an items array:

{
  "items": [
    {
      "applicantId": "APP-001",
      "answers": {}
    }
  ]
}

CSV output is a flat report with status, profile, score, allocation, and error columns.

compile

Compile a risk-profile definition into a JDM graph.

zagvar-helm compile --definition definition.json --output risk-profiler.json
Argument or optionRequiredNotes
--definitionYesPath to the risk-profile definition.
--outputNoOutput path. If omitted, the graph is printed to standard output.

When an output file is written, the CLI prints the definition ID, version, and graph checksum to standard error.

validate

Validate a JDM graph file.

zagvar-helm validate --jdm risk-profiler.json --definition definition.json --input sample.json
Argument or optionRequiredNotes
--jdmYesPath to the JDM JSON file.
--definitionNoDefinition that declares the custom JDM contract.
--inputNoSample evaluation input used to verify the graph contract.

Validation checks that the file is JSON, has JDM nodes and edges, passes ZenEngine graph validation, and can produce a contract-compatible result when sample input is available.

profile

Run the default questionnaire interactively in the terminal.

zagvar-helm profile
OptionRequiredNotes
--definitionNoPath to a custom risk-profile definition.
--jdm-pathNoPath to a custom JDM graph file.
--outputNotable or json. Defaults to table.

The command prompts for answers from the active definition and prints a formatted risk-profile result.

Exit Behavior

Commands write errors to the terminal and exit with status code 1 when input files, JSON parsing, validation, or evaluation fail. JSON output modes write the machine-readable result to standard output.

Last updated on

On this page