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.
2. Create a configuration profile
3. Verify your setup
Shell Completion (optional)
Enable tab completion for your shell: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
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: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 rootax command itself:
| Option | Short | Description |
|---|---|---|
--verbose | -v | Enable detailed logging |
--version | Show version and exit | |
--install-completion | Install shell completion | |
--show-completion | Show completion script for your shell | |
--help | -h | Show help |
Subcommand Options
Most subcommands (e.g.,ax datasets list, ax projects get) accept these options:
| Option | Short | Description |
|---|---|---|
--profile <name> | -p | Use a specific configuration profile instead of the active one |
--output <format|path> | -o | Set output format (table, json, csv, parquet) or write to a file path |
--verbose | -v | Enable detailed logging |
--help | -h | Show 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 istable. Use --output to change the format or write results directly to a file:
| Format | Description |
|---|---|
table | Human-readable default; formatted for the terminal |
json | Machine-parseable JSON |
csv | Spreadsheet-compatible format |
parquet | Apache columnar format for large datasets |
Cache
The CLI caches certain data locally at~/.arize/cache/ to speed up repeated operations. To clear the cache:
Resources
Datasets
Create, list, and manage datasets
Projects
Create, list, and manage projects
Spans
Query and export span data