Skip to main content
The AX CLI (ax) lets you manage your Arize AI platform resources — datasets, projects, spans, and configuration profiles — directly from your terminal. It’s useful for scripting workflows, automating data pipelines, and integrating Arize into CI/CD environments.

Getting Started

1. Install the CLI

Requires Python 3.11 or later.
Verify the installation:

2. Create a configuration profile

You’ll be prompted for your API key, region, and preferred output format. Choose Simple mode for most use cases, or Advanced mode for custom routing, transport tuning, and SSL settings.
ax profiles create is required before running any other commands. Without it, most commands will fail with: Error: Profile 'default' not found.

3. Verify your setup

Shell Completion (optional)

Enable tab completion for your shell:
Supports bash, zsh, fish, and PowerShell. Restart your shell or source your profile to activate.

Configuration

Profiles store your API key, region, and output preferences so you don’t have to pass them on every command. Configuration files are stored at:
  • macOS/Linux: ~/.arize/profiles/<profile>.toml
  • Windows: %USERPROFILE%\.arize\profiles\<profile>.toml
The CLI automatically detects any ARIZE_* environment variables in your shell and offers to use them during ax profiles create. You can also reference environment variables in config files using ${VARIABLE_NAME} syntax.
Using a self-hosted, on-premise, or VPC deployment? You’ll need to configure custom endpoint routing in your profile. See Self-Hosted / On-Premise Configuration for setup instructions.

Managing Profiles

Here’s a full reference of profile commands:

Working with Multiple Environments

Create separate profiles for production and staging, then switch between them as needed:

Options & Output

Top-Level Options

These options are available on the root ax command itself:

Subcommand Options

Most subcommands (e.g., ax datasets list, ax projects get) accept these options:
--profile and --output are subcommand options, not top-level flags. Use them after the subcommand: ax datasets list --profile staging, not ax --profile staging datasets list.

Output Formats

The default output format is table. Use --output to change the format or write results directly to a file:

Cache

The CLI caches certain data locally at ~/.arize/cache/ to speed up repeated operations. To clear the cache:

Resources

AI Integrations

Create and manage LLM provider integrations

Annotation Configs

Create and manage annotation schemas

API Keys

Create, refresh, and revoke API keys

Datasets

Create, list, and manage datasets

Evaluators

Create and manage LLM-as-judge evaluators

Experiments

Create, list, and manage experiments

Projects

Create, list, and manage projects

Prompts

Create and version prompt templates

Spaces

Create, list, and manage spaces

Spans

Export span data with filtering

Tasks

Create and manage evaluation tasks

Traces

List and export trace data

Users

Create, list, and manage users

PyPI Package

Install and version history

GitHub Repository

Source code and issues

Arize Community Slack

Get help from the community

Support

Contact the Arize support team