CLI Reference¶
Two CLIs. Serve and benchmark.
| CLI | Purpose |
|---|---|
ot-serve |
MCP server |
ot-bench |
Benchmark harness |
Configuration¶
All CLIs follow a consistent configuration pattern:
| CLI | Env Var | Default Path | Fallback |
|---|---|---|---|
ot-serve |
OT_SERVE_CONFIG |
.onetool/ot-serve.yaml |
~/.onetool/ot-serve.yaml, then defaults |
ot-bench |
OT_BENCH_CONFIG |
.onetool/ot-bench.yaml |
Task file config |
Resolution order:
- CLI flags (if provided)
- Environment variable (if set and file exists)
.onetool/<tool>.yaml(project config)~/.onetool/<tool>.yaml(global config)- Built-in defaults
Common Options¶
All CLIs support:
-v, --version- Show version and exit--json- Output as JSON (where applicable)