For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI — Workflow Examples

Fifteen copy-paste CLI workflows covering traces, judges, evaluations, bulk runs, CI, and cleanup.

Fifteen copy-paste workflows covering the most common CLI tasks.


1. Quick start: first trace to evaluation

Set up, list traces, inspect one, and evaluate it with a judge.

# Configure
export LAYERLENS_STRATIX_API_KEY="sk-..."

# See what traces are available
stratix trace list

# Inspect a specific trace
stratix trace get <TRACE_ID>

# Create a judge and test it against the trace
stratix judge create --name "Accuracy" --goal "Rate factual accuracy of the response" --model-id <MODEL_ID>
stratix judge test --judge-id <JUDGE_ID> --trace-id <TRACE_ID>

2. Run an evaluation and wait for results


3. Compare models on the same benchmark


4. Judge workflow: create, test, tune, apply


5. Trace search and export


6. Bulk evaluation from a JSONL file


7. Bulk trace evaluation with a judge


8. CI/CD pipeline integration


9. Integration monitoring


10. Scorer management


11. Evaluation spaces


12. JSON output and scripting


13. Pagination and sorting


14. Verbose mode and debugging


15. Clean up resources

Last updated

Was this helpful?