Available in @arizeai/phoenix-cli 1.0.4+ The Phoenix CLI now supports writing annotations to spans and traces. UseDocumentation Index
Fetch the complete documentation index at: https://arizeai-433a7140-mikeldking-12899-providers-and-secrets.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
px span annotate and px trace annotate to attach labels, scores, and explanations directly from the terminal — useful for labeling traces in CI pipelines, scripting evaluation workflows, or quick manual review.
Annotate a Span
Annotate a Trace
| Flag | Description |
|---|---|
--name | Annotation name (e.g. correctness, quality) |
--label | Categorical label (e.g. correct, incorrect) |
--score | Numeric score |
--explanation | Free-text explanation |
--annotator-kind | HUMAN, LLM, or CODE |
--format | Output format: pretty, json, or raw |
--label or --score is required. Submitting again with the same --name updates the existing entry rather than creating a duplicate.
View Annotations in Output
Pass--include-annotations when reading traces or spans to see existing annotations alongside the data:
TypeScript SDK and CLI reference.

