CLI — Workflow Examples
Fifteen copy-paste CLI workflows covering traces, judges, evaluations, bulk runs, CI, and cleanup.
1. Quick start: first trace to evaluation
# 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?