Skip to Content
Helm

CLI

Run Helm evaluations from JSON and CSV files.

Use @zagvar/helm-cli for local checks, scripted workflows, or operations tasks where input already exists as JSON or CSV.

The CLI is useful when you want to evaluate files without building an HTTP service around the engine.

Common uses

  • Validate a custom definition before using it in a service.
  • Evaluate a JSON applicant payload.
  • Evaluate a CSV batch exported from another system.
  • Compile a definition into a JDM graph for inspection or expert workflows.
  • Run an interactive questionnaire from the terminal.

See Installation for package-manager commands.

Running the binary

Global installation exposes the zagvar-helm binary on your shell PATH through the package bin entry. After installing globally, you can run commands directly:

zagvar-helm evaluate --input applicant.json --output json

For project-local installation, add the CLI as a development dependency and run it through your package manager:

pnpm add --save-dev @zagvar/helm-cli
pnpm exec zagvar-helm evaluate --input applicant.json --output json

Local installation is usually better for repeatable project scripts. Global installation is convenient for ad hoc local checks.

Commands

zagvar-helm profile

Runs the active questionnaire interactively and prints a table result. Use --output json when another script should consume the result.

zagvar-helm evaluate --input applicant.json --output json

Evaluates one JSON applicant input.

zagvar-helm evaluate-batch --input applicants.csv --input-format csv --output json

Evaluates a JSON or CSV batch. The input format is inferred from the file extension unless --input-format is provided.

zagvar-helm compile --definition custom-definition.json --output risk-profiler.json

Compiles a custom definition into a JDM graph and prints the graph checksum.

zagvar-helm validate --jdm risk-profiler.json --definition custom-definition.json --input sample.json

Validates a JDM graph and, when --input is provided, checks that the graph also satisfies the Helm result contract.

Custom definitions

Most commands accept --definition custom-definition.json. evaluate, evaluate-batch, profile, and validate also accept --jdm-path when you need to run an expert-managed JDM graph instead of the generated graph.

Last updated on

On this page