01.21.2026 Phoenix CLI: Datasets, Experiments & Annotations for AI Coding Workflows
CLI Reference
Full documentation
npm
Install from npm
Overview
The Phoenix CLI now supports datasets, experiments, and annotations. You can pull evaluation data, experiment results, and human feedback directly into your terminal or pipe them into AI coding assistants.
# List available datasetspx datasets# Fetch dataset examplespx dataset <dataset-name># Export experiment resultspx experiments --dataset <dataset-name> ./experiments/# Get experiment detailspx experiment <experiment-id> --format json# Include annotations in tracespx traces --limit 10 --include-annotations
Common Workflows
Analyze Dataset Examples
Pull test cases for review:
# Get all examples from a datasetpx dataset <dataset-name> --format raw --no-progress | \ jq '.examples[] | {input, output}'# Filter by split (if dataset has splits defined)px dataset <dataset-name> --split train --format raw --no-progress | \ jq '.examples[]'
Review Experiment Results
Check evaluation results:
# Get experiment runs with their inputs and outputspx experiment <experiment-id> --format raw --no-progress | \ jq '.[] | {input, output, latency_ms, trace_id}'# Find runs with annotationspx experiment <experiment-id> --format raw --no-progress | \ jq '.[] | select(.annotations | length > 0)'
Use Annotations
Access human feedback on traces:
# Get traces with annotationspx traces --include-annotations --limit 50 --format raw | \ jq '.[] | select(.spans[].annotations != null)'
Export for Analysis
Save data to files for further processing:
# Export traces to directorypx traces --include-annotations --limit 100 ./production-samples/# Export experiments to directorypx experiments --dataset <dataset-name> ./all-experiments/# Filter examples with jqpx traces --include-annotations --format raw --no-progress | \ jq '.[] | select(.spans[].annotations[] | select(.name == "quality" and .score >= 4))'
Dataset and Experiment Commands
Datasets
# List all datasets with metadatapx datasets --format json# Fetch dataset with specific splitspx dataset <dataset-name> --split train --split validation# Get specific versionpx dataset <dataset-name> --version <version-id>
Experiments
# List experiments for a datasetpx experiments --dataset <dataset-name># Export all experiment datapx experiments --dataset <dataset-name> ./experiments/# Fetch single experiment with full detailspx experiment <experiment-id> --format raw
Annotations
# Include annotations in any trace commandpx traces --include-annotations --limit 10# Get specific trace with annotationspx trace <trace-id> --include-annotations
Example: Reviewing Experiment Results
Get data from an experiment and dataset:
# Export experiment runs to a filepx experiment <experiment-id> --format raw --no-progress > experiment-runs.json# Extract inputs and outputsjq '.[] | {input, output, latency_ms}' experiment-runs.json > run-summary.json# Export dataset examplespx dataset <dataset-name> --format raw --no-progress | \ jq '.examples[] | {input, output}' \ > dataset-examples.json
You can then ask an AI assistant to review the experiment results or analyze patterns in the dataset.
Installation
npm install -g @arizeai/phoenix-cli
Or run directly:
npx @arizeai/phoenix-cli datasets
Upgrading
If you already have the CLI installed, upgrade to 0.2.0 or later: