Arize AX CLI
- Features
- Installation
- Using pip
- From source
- Verify Installation
- Quick Start
- 1. Initialize Configuration
- 2. Verify Configuration
- 3. Start Using the CLI
- Configuration
- Configuration Commands
- Configuration Modes
- Simple Configuration (Recommended)
- Advanced Configuration
- Configuration File Location
- Updating a Profile
- Configuration Reference
- Using Environment Variables
- 1. Auto-Detection During Setup
- 2. Manual Environment Variable References
- Viewing Expanded Values
- Multiple Profiles
- Shell Autocompletion
- Quick Install (Recommended)
- Verify Installation
- Manual Installation (Alternative)
- Supported Shells
- Commands
- Global Options
- AI Integrations
- Annotation Configs
- Annotation Queues
- API Keys
- Resource Restrictions
- Datasets
- Evaluators
- Code evaluators
- Remote evaluators
- Decision Judge evaluators
- Experiments
ax experiments run — execute a task locally
ax experiments create — publish pre-computed runs
- Integrations
- Organizations
- Projects
- Prompts
- Roles
- SAML Identity Providers
- Spaces
- Skills
- Spans
- Tasks
- Traces
- Users
- Webhooks
- Usage Examples
- Creating a Dataset from a CSV File
- Creating a Dataset from stdin
- Exporting Dataset List to JSON
- Exporting Dataset Examples
- Running an Experiment with a Task
- Exporting Experiment Runs
- Exporting Spans by Trace ID
- Exporting Spans
- Listing Traces and Exporting to Parquet
- Subscribing a Webhook to Evaluator Versions
- Pagination
- Working with Multiple Environments
- Filtering Spans by Status
- Listing Traces in a Time Window
- Advanced Topics
- Output Formats
- Programmatic Usage
- Environment Variables
- Debugging
- Troubleshooting
- Configuration Issues
- Connection Issues
- Shell Completion Not Working
- Getting Help
- Command-specific Help
- Support
- Contributing
- License
- Changelog
Official command-line interface for Arize AI - manage your AI observability resources including datasets, projects, spans, traces, and more.

Features
- Dataset Management: Create, list, update, and delete datasets
- Evaluator Management: Create and manage LLM-as-judge evaluators and their versions
- Experiment Management: Run and analyze experiments on your datasets
- Project Management: Organize your projects
- API Key Management: Create, refresh, and revoke API keys
- AI Integrations: Configure external LLM providers (OpenAI, Anthropic, AWS Bedrock, and more)
- Prompt Management: Create and version prompts with label management
- Webhook Management: Create webhooks and subscribe them to prompt and evaluator events
- Role Management: Create, update, and delete custom roles with granular permissions
- User Management: Invite users, manage account-level roles, and control organization/space memberships
- Agent Skills: Install Arize context skills for AI coding agents (Claude Code, Cursor, Codex, Windsurf)
- Spans & Traces: Query and filter LLM spans and traces
- Multiple Profiles: Switch between different Arize environments
- Flexible Output: Export to JSON, CSV, Parquet, or display as tables
- Shell Completion: Tab completion for bash, zsh, and fish
- Rich CLI Experience: Beautiful terminal output with progress indicators
Installation
Using pip
pip install arize-ax-cli
From source
git clone https://github.com/Arize-ai/arize-ax-cli.git
cd arize-ax-cli
pip install -e .
Verify Installation
ax --version
Quick Start
1. Initialize Configuration
The first time you use the CLI, you'll need to create a configuration profile:
ax profiles create
This interactive setup will:
- Detect existing
ARIZE_* environment variables and offer to use them
- Guide you through credential setup if no environment variables are found
- Create a configuration profile (default or named)
- Save your preferences for output format, caching, and more
Example output:
_ _ _ __ __
/ \ _ __(_)_______ / \ \ \/ /
/ _ \ | '__| |_ / _ \ / _ \ \ /
/ ___ \| | | |/ / __/ / ___ \ / \
/_/ \_\_| |_/___\___| /_/ \_\_/\_\
AI Observability Platform
Welcome to Arize AX CLI!
No configuration found. Let's set it up!
Environment Variable Detection
✓ Detected ARIZE_API_KEY = ak-2a...FCf
Create config from detected environment variables? [Y/n]: y
? Default output format: table
✓ Configuration saved to profile 'default'
You're ready to go! Try: ax datasets list
2. Verify Configuration
Check your configuration:
ax profiles show
3. Start Using the CLI
List your datasets:
ax datasets list
List your projects:
ax projects list
Export spans from a project:
ax spans export <project-id> --stdout
List traces in a project:
ax traces list <project-id>
Configuration
The Arize CLI uses a flexible configuration system that supports multiple profiles, environment variables, and two setup modes.
Configuration Commands
| Command |
Description |
ax profiles create [name] |
Create a new configuration profile interactively or from flags/file |
ax profiles update [name] |
Update fields in an existing profile (uses active profile if omitted) |
ax profiles list |
List all available profiles |
ax profiles show [name] |
Display a profile's configuration (uses active profile if omitted) |
ax profiles use <profile> |
Switch to a different profile |
ax profiles validate [name] |
Check a profile for missing or incorrect config (uses active if omitted) |
ax profiles delete <profile> |
Delete a configuration profile |
Configuration Modes
You can also create a profile non-interactively using CLI flags or a TOML file:
# Create with flags (no prompts)
ax profiles create staging --api-key ak_abc123 --region US --output-format json
# Create from a TOML file
ax profiles create production --from-file ./prod.toml
# Create from file and override the API key
ax profiles create production --from-file ./prod.toml --api-key ak_override
Flag precedence (highest to lowest): CLI flags → --from-file (TOML) → interactive prompts.
When you run ax profiles create without flags, you'll be prompted to choose between two configuration modes:
Simple Configuration (Recommended)
Best for: Most users, cloud deployments, standard Arize usage
The simple setup only asks for the essentials:
- API Key: Your Arize API key
- Region: US, EU, or leave unset (auto-detect)
- Output Format: table, json, csv, or parquet
Example:
Choose configuration mode:
> Simple (recommended)
Advanced
API Key: Insert value
API Key (e.g., ak-123...): [hidden input]
Region:
> US (United States, default)
EU (Europe)
CA (Canada)
Use environment variable
Default output format:
> table
json
csv
parquet
Generated configuration:
[profile]
name = "default"
[auth]
api_key = "ak_your_api_key_here"
[routing]
region = "us-central-1a"
[output]
format = "table"
Choose the region where your account is hosted. US uses the normal US GCP deployment. Region aliases are case-insensitive. The GCP identifiers us-central-1a, eu-west-1a, and ca-central-1a are also accepted. The unfinished AWS US East deployment is not a supported public region.
Profiles that contain an unsupported region must be recreated with the correct public region. Selecting a region does not move an account between deployments.
Advanced Configuration
Best for: On-premise deployments, Private Connect, custom routing, performance tuning
The advanced setup provides full control over:
- API Key: Your Arize credentials
- Routing: Choose from multiple strategies:
- No override (use defaults)
- Region-based routing (US, EU)
- Single endpoint (on-premise deployments)
- Base domain (Private Connect)
- Custom endpoints & ports (granular control)
- Transport: Performance tuning:
- Stream max workers
- Stream max queue bound
- PyArrow max chunksize
- Max HTTP payload size
- Security: TLS certificate verification
- Output Format: Default display format
Example routing options:
What type of override should we setup?
0 - No override (use defaults)
1 - Region (for region-based routing)
2 - Single endpoint (typical for on-prem deployments)
> 3 - Base Domain (for Private Connect)
4 - Custom endpoints & ports
Generated configuration (example with Private Connect):
[profile]
name = "production"
[auth]
api_key = "${ARIZE_API_KEY}"
[routing]
base_domain = "arize-private.yourcompany.com"
[transport]
stream_max_workers = 8
stream_max_queue_bound = 5000
pyarrow_max_chunksize = 10000
max_http_payload_size_mb = 8
[security]
request_verify = true
[output]
format = "json"
Configuration File Location
Configuration files are stored at:
| Profile |
Linux/macOS |
Windows |
default |
~/.arize/config.toml |
%USERPROFILE%\.arize\config.toml |
| Named profiles |
~/.arize/profiles/<profile>.toml |
%USERPROFILE%\.arize\profiles\<profile>.toml |
Updating a Profile
Use ax profiles update to modify specific fields in an existing profile without recreating it:
# Update the API key in the active profile
ax profiles update --api-key ak_new_key
# Update the region in a named profile
ax profiles update production --region EU
# Replace an entire profile from a TOML file
ax profiles update production --from-file ./prod.toml
# Load from file and override the API key
ax profiles update staging --from-file ./staging.toml --api-key ak_override
Arguments:
| Argument |
Description |
[name] |
Profile to update (uses active profile if omitted) |
Options:
| Option |
Description |
--from-file, -f |
TOML file to load; completely replaces the existing profile |
--api-key |
Arize API key |
--region |
Account region: US (default), EU, or CA |
--output-format |
Default output format (table, json, csv, parquet) |
--verbose, -v |
Enable verbose logs |
With flags only, just the specified fields are updated; all others are preserved. With --from-file, the profile is fully replaced by the file contents (flags are still applied on top).
Configuration Reference
All Available Sections
Authentication (required)
[auth]
api_key = "ak_your_api_key_here"
# Or use environment variable reference:
api_key = "${ARIZE_API_KEY}"
Routing (choose one strategy)
[routing]
# Option 1: Region-based (recommended for cloud)
region = "US" # or "EU"
# Option 2: Single endpoint (on-premise)
single_host = "arize.yourcompany.com"
single_port = "443"
# Option 3: Base domain (Private Connect)
base_domain = "arize-private.yourcompany.com"
# Option 4: Custom endpoints (advanced)
api_host = "api.arize.com"
api_scheme = "https"
otlp_host = "otlp.arize.com"
otlp_scheme = "https"
flight_host = "flight.arize.com"
flight_port = "443"
flight_scheme = "grpc+tls"
Transport (optional, advanced only)
[transport]
stream_max_workers = 8
stream_max_queue_bound = 5000
pyarrow_max_chunksize = 10000
max_http_payload_size_mb = 8
Security (optional, advanced only)
[security]
request_verify = true # Set to false to disable SSL verification (not recommended)
ssl_ca_cert = "/etc/ssl/certs/corp-ca.pem" # CA bundle for a private gateway or TLS proxy
client_cert = "~/.arize/client.crt" # Client certificate for mutual TLS
client_key = "~/.arize/client.key" # Unencrypted private key for client_cert
ssl_ca_cert, client_cert, and client_key are file paths, not PEM content. Set
client_cert and client_key together. They apply to every connection the CLI makes to
Arize: REST, file upload, Arrow Flight, and the ax auth OAuth calls. The key must be
unencrypted, and the CLI warns when other users can read it (fix with chmod 600).
When a field is not set in the profile, the CLI reads the same environment variables as the
Python SDK: ARIZE_SSL_CA_CERT (then REQUESTS_CA_BUNDLE, then SSL_CERT_FILE),
ARIZE_CLIENT_CERT, and ARIZE_CLIENT_KEY. A ssl_ca_cert bundle replaces the default
trust roots for Arize connections, so it must include every CA your endpoints need.
request_verify = false turns off server verification and ignores ssl_ca_cert.
Output (optional)
[output]
format = "table" # Options: table, json, csv, parquet
Using Environment Variables
The CLI can detect and use environment variables in two ways:
1. Auto-Detection During Setup
When you run ax profiles create, the CLI automatically detects existing ARIZE_* environment variables and offers to use them:
ax profiles create
Environment Variable Detection
✓ Detected ARIZE_API_KEY = ak_***************xyz
✓ Detected ARIZE_REGION = US
Create profiles from detected environment variables? [Y/n]: y
This will create a configuration that references the environment variables:
[auth]
api_key = "${ARIZE_API_KEY}"
[routing]
region = "${ARIZE_REGION}"
2. Manual Environment Variable References
During both Simple and Advanced setup, you can choose "Use environment variable" for any field to reference an environment variable:
API Key:
Insert value
> Use environment variable
Environment variable name for API Key: ARIZE_API_KEY
Viewing Expanded Values
To see the actual values (with environment variables expanded):
ax profiles show --expand
Without --expand, you'll see the variable references like ${ARIZE_API_KEY}.
Multiple Profiles
Create different profiles for different environments:
# Create a production profile (name as argument skips the name prompt)
ax profiles create production
# Create a staging profile interactively
ax profiles create staging
# List all profiles
ax profiles list
# Switch profiles
ax profiles use production
ax profiles use staging
# Update a field in a specific profile
ax profiles update staging --region EU
# Run commands against a different profile by switching first
ax profiles use production
ax datasets list
# Delete a profile (prompts for confirmation)
ax profiles delete staging
# Delete a profile without confirmation
ax profiles delete staging --force
Shell Autocompletion
Enable tab completion for your shell to autocomplete commands, options, and arguments.
Quick Install (Recommended)
The CLI includes a built-in installer that automatically configures completion for your shell:
ax --install-completion
This will: