Component test reference
Verifier
Synopsis, global flags, exit codes, artifacts, and CI usage
Verifier tests a running software component through its interface. This page covers the command structure, global flags, exit codes, artifacts, and common invocation patterns.
Synopsis
verifier [--config FILE] [--loglevel LEVEL] <command> [options]
Subcommands
init: Set Verifier up for a project, interactively.run: Run Verifier against a component.doctor: Validate config and Flex model before running.results: Read a run’s test results.logs: Read and filter a run’s structured log file.config: Inspect or modify a Verifier config YAML file.docs: Read this manual, offline, from the binary.
Running verifier without a subcommand prints this
summary and exits 1.
Global Flags
Two flags, --config and --loglevel, apply
globally but only when using run, doctor, or
init. Those three commands accept them in any position —
before or after the subcommand name. The config command
accepts --config after its own name as well, since the file
it edits is the point of the command. The logs and
results commands register neither flag after their own
name; place them before the subcommand name when you need them
there.
-c/--config FILE: Optional (Defaults toverifier.yaml) Path to the Verifier configuration file.-l/--loglevel LEVEL: Optional (Defaults towarning) Minimum log level for output. Choices:trace,debug,info,warning,error. This flag is used byrunonly.
Examples:
verifier run -c staging.yaml -l debug
verifier config -c staging.yaml timeout_ms
Exit Codes
- 0: The command succeeded.
- 1: An argument error occurred, no subcommand was given, or the command reported a failure.
Artifacts
After each verifier run, the full results, logs, and
event traces are written to a timestamped directory under
.verifier/ in the working directory:
.verifier/<component>-YYYY-MM-DD--HH-MM-SS/
log.json structured log records
results.json test results
stream.json per-attempt streaming results
trace.json event-level trace
The results, logs, and
results tui commands find the newest artifact directory
automatically when no path is given. Pass
--no-artifacts-dir to verifier run to skip
creating the artifact directory.
Your First Run
The shortest path from nothing to a verdict:
Write your interface model and compile it to JSON.
Set Verifier up:
verifier initinitasks about your component, its transports, and its model, writesverifier.yaml, and checks the result. Writeverifier.yamlby hand instead if you prefer.Check your setup:
verifier doctorRun the test:
verifier runRead the results:
verifier results
See verifier docs open component
for a complete walkthrough with model and config examples.
Verifier in CI
For non-interactive environments:
--no-ttyonrunanddoctordisables the TUI and forces plain-text log output.--quietonrunalso disables the TUI, with the same effect as--no-tty. It does not silence log output.--json FILEonrunwrites results to a file instead of stdout.
Gate a pipeline on the test outcome:
verifier run --no-tty
verifier results passed
verifier results passed exits 0 if every protocol passed
and 1 otherwise, making it suitable as a pipeline gate. For hosted CI
integration, see docs.tangramflex.io.
Shell Completion
Not yet implemented. Verifier can build a bash
completion script that covers subcommand names, flag names, file paths
for file arguments, and the valid choices for enumerated flags such as
--loglevel and --testtype. No command exposes
it yet, so there is currently no way to generate or install the
script.
See Also
verifier docs open about, verifier docs open commands/init, verifier docs open commands/run, verifier docs open commands/doctor, verifier docs open commands/logs, verifier docs open commands/config, verifier docs open results, verifier docs open component, verifier docs open commands/docs