Skip to content

CLI: export

Terminal window
vally export --eval-spec <path> --exporter <specifier> [options] [-- key=value ...]

Convert an eval spec to a format consumed by another evaluation tool. The export command validates the eval spec, resolves environments and stimuli, loads an exporter plugin, and invokes it to generate output files.

FlagTypeRequiredDescription
--eval-spec <path>stringYesPath to eval.yaml file
--exporter <specifier>stringYesExporter plugin to load (npm package name or local path)
--grader-plugin <specifier>stringNoGrader plugin to load (npm package name or local path). Prevents unknown-grader-type errors for plugin graders during validation.
--output-dir <dir>stringNoDirectory for output files (default: ./<exporter-name>/)
--tag <key=values>stringNoFilter stimuli by tag (repeatable, e.g., --tag cost=free,low)
--verbosebooleanNoShow resolved eval schema and plugin details

Options after -- are forwarded to the exporter plugin as key=value pairs.

The --exporter specifier is resolved differently depending on its shape:

Specifier typeExamplesResolved from
Local path./my-exporter, ../plugins/exp, /abs/pathCurrent working directory
Bare package name@contoso/vally-exporter-foo, my-exporterEval project directory (dirname(eval.yaml))
CodeMeaning
0Export completed successfully
1Validation error, plugin load failure, or export error
Terminal window
vally export --eval-spec eval.yaml --exporter @contoso/vally-exporter-foo
Terminal window
vally export --eval-spec ./evals/my-eval/eval.yaml \
--exporter @contoso/vally-exporter-foo \
--output-dir ./exported \
--tag cost=free,low
Terminal window
vally export --eval-spec eval.yaml \
--exporter @contoso/exporter \
-- baseImage=ubuntu:22.04 format=compact