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.
pip install arize-ax-cli
Verify the installation:
ax --version

2. Create a configuration profile

ax config init
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 config init is required before running any other commands. Without it, commands will fail with: Error: Profile 'default' not found.

3. Verify your setup

ax config show      # Check your profile settings
ax projects list    # Run your first command

Shell Completion (optional)

Enable tab completion for your shell:
ax --install-completion
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 config init. You can also reference environment variables in config files using ${VARIABLE_NAME} syntax.

Managing Profiles

Here’s a full reference of profile commands:
ax config init                       # Create a new profile
ax config list                       # List all profiles (active profile is marked)
ax config show                       # Show active profile settings
ax config show --profile myprofile   # Show a specific profile
ax config show --expand              # Resolve environment variable references
ax config show --all                 # Show all sections including defaults
ax config use <profile>              # Switch the active profile
ax config delete <profile>           # Delete a profile (cannot delete default or active)
ax config delete <profile> --force   # Delete without confirmation prompt

Working with Multiple Environments

Create separate profiles for production and staging, then switch between them as needed:
ax config init   # name it "production"
ax config init   # name it "staging"

# Switch the active profile
ax config use production

# Or override per-command with --profile
ax datasets list --profile staging --space-id sp_stg123

Options & Output

Top-Level Options

These options are available on the root ax command itself:
OptionShortDescription
--verbose-vEnable detailed logging
--versionShow version and exit
--install-completionInstall shell completion
--show-completionShow completion script for your shell
--help-hShow help

Subcommand Options

Most subcommands (e.g., ax datasets list, ax projects get) accept these options:
OptionShortDescription
--profile <name>-pUse a specific configuration profile instead of the active one
--output <format|path>-oSet output format (table, json, csv, parquet) or write to a file path
--verbose-vEnable detailed logging
--help-hShow help for the command
--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:
FormatDescription
tableHuman-readable default; formatted for the terminal
jsonMachine-parseable JSON
csvSpreadsheet-compatible format
parquetApache columnar format for large datasets
ax datasets list --output json                                      # Print as JSON
ax datasets list --output datasets.json                             # Write to a JSON file
ax datasets list_examples <dataset-id> --output examples.parquet    # Write to Parquet

Cache

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

Resources