> ## Documentation Index
> Fetch the complete documentation index at: https://arize-ax.mintlify.site/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AX CLI

> Command-line interface for managing Arize AX resources

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

<Info>
  Requires Python 3.11 or later.
</Info>

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
pip install arize-ax-cli
```

Verify the installation:

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
ax --version
```

### 2. Create a configuration profile

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
ax profiles create
```

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.

<Warning>
  `ax profiles create` is required before running any other commands. Without it, most commands will fail with: `Error: Profile 'default' not found.`
</Warning>

### 3. Verify your setup

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
ax profiles show    # Check your profile settings
ax projects list    # Run your first command
```

### Shell Completion (optional)

Enable tab completion for your shell:

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
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 profiles create`. You can also reference environment variables in config files using `${VARIABLE_NAME}` syntax.

<Info>
  **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](/docs/api-clients/cli/profiles#self-hosted--on-premise-configuration) for setup instructions.
</Info>

### Managing Profiles

Here's a full reference of profile commands:

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
ax profiles create                       # Create a new profile
ax profiles list                         # List all profiles (active profile is marked)
ax profiles show                         # Show active profile settings
ax profiles show myprofile               # Show a specific profile
ax profiles show --expand                # Resolve environment variable references
ax profiles show --all                   # Show all sections including defaults
ax profiles use <profile>                # Switch the active profile
ax profiles delete <profile>             # Delete a profile (cannot delete default or active)
ax profiles delete <profile> --force     # Delete without confirmation prompt
```

### Working with Multiple Environments

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

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
ax profiles create   # name it "production"
ax profiles create   # name it "staging"

# Switch the active profile
ax profiles use production

# Run commands against the active profile
ax datasets list --space sp_stg123
```

***

## Options & Output

### Top-Level Options

These options are available on the root `ax` command itself:

| Option | Short | Description |
| - | - | - |
| `--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 |
| - | - | - |
| `--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 |

The active profile is selected with `ax profiles use <name>`; it applies to every subsequent command. There is no per-command profile flag.

<Note>
  `--output` is a subcommand option, not a top-level flag. Use it after the subcommand: `ax datasets list --output json`, not `ax --output json datasets list`.
</Note>

### Output Formats

The default output format is `table`. 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 |

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
ax datasets list --output json                                 # Print as JSON
ax datasets list --output datasets.json                        # Write to a JSON file
ax datasets export <dataset-id> --stdout | jq '.' > out.json   # Pipe export to file
```

***

## Resources

<CardGroup cols={4}>
  <Card title="AI Integrations" href="/docs/api-clients/cli/ai-integrations" icon="plug">
    Create and manage LLM provider integrations
  </Card>

  <Card title="Integrations" href="/docs/api-clients/cli/integrations" icon="plug-circle-bolt">
    Manage LLM and agent integrations
  </Card>

  <Card title="Annotation Configs" href="/docs/api-clients/cli/annotation-configs" icon="tag">
    Create and manage annotation schemas
  </Card>

  <Card title="API Keys" href="/docs/api-clients/cli/api-keys" icon="key">
    Create, refresh, and revoke API keys
  </Card>

  <Card title="Datasets" href="/docs/api-clients/cli/datasets" icon="database">
    Create, list, and manage datasets
  </Card>

  <Card title="Evaluators" href="/docs/api-clients/cli/evaluators" icon="scale-balanced">
    Create and manage LLM-as-judge evaluators
  </Card>

  <Card title="Experiments" href="/docs/api-clients/cli/experiments" icon="flask">
    Create, list, and manage experiments
  </Card>

  <Card title="Projects" href="/docs/api-clients/cli/projects" icon="folder">
    Create, list, and manage projects
  </Card>

  <Card title="Prompts" href="/docs/api-clients/cli/prompts" icon="message">
    Create and version prompt templates
  </Card>

  <Card title="Spaces" href="/docs/api-clients/cli/spaces" icon="building">
    Create, list, and manage spaces
  </Card>

  <Card title="Spans" href="/docs/api-clients/cli/spans" icon="chart-gantt">
    Export span data with filtering
  </Card>

  <Card title="Tasks" href="/docs/api-clients/cli/tasks" icon="circle-check">
    Create and manage evaluation tasks
  </Card>

  <Card title="Traces" href="/docs/api-clients/cli/traces" icon="arrow-progress">
    List and export trace data
  </Card>

  <Card title="Users" href="/docs/api-clients/cli/users" icon="user">
    Create, list, and manage users
  </Card>

  <Card title="Annotation Queues" href="/docs/api-clients/cli/annotation-queues" icon="list-check">
    Create and manage human review queues
  </Card>

  <Card title="Auth" href="/docs/api-clients/cli/auth" icon="lock">
    Sign in and out via OAuth
  </Card>

  <Card title="Organizations" href="/docs/api-clients/cli/organizations" icon="sitemap">
    Create, list, and manage organizations
  </Card>

  <Card title="Resource Restrictions" href="/docs/api-clients/cli/resource-restrictions" icon="shield">
    Restrict and unrestrict platform resources
  </Card>

  <Card title="Role Bindings" href="/docs/api-clients/cli/role-bindings" icon="link">
    Assign roles to users on resources
  </Card>

  <Card title="Roles" href="/docs/api-clients/cli/roles" icon="user-shield">
    Create and manage custom roles
  </Card>

  <Card title="Skills" href="/docs/api-clients/cli/skills" icon="graduation-cap">
    Install Arize skills for AI coding agents
  </Card>

  <Card title="Instrument" href="/docs/api-clients/cli/instrument" icon="wand-magic-sparkles">
    Set up AX tracing with your coding agent
  </Card>

  <Card title="Upgrade" href="/docs/api-clients/cli/upgrade" icon="rocket">
    Upgrade the CLI to the latest version
  </Card>
</CardGroup>

***

## Useful Links

<CardGroup cols={2}>
  <Card title="PyPI Package" href="https://pypi.org/project/arize-ax-cli/" icon="python">
    Install and version history
  </Card>

  <Card title="GitHub Repository" href="https://github.com/Arize-ai/arize-ax-cli" icon="github">
    Source code and issues
  </Card>

  <Card title="Arize Community Slack" href="https://arize-ai.slack.com" icon="slack">
    Get help from the community
  </Card>

  <Card title="Support" href="mailto:support@arize.com" icon="envelope">
    Contact the Arize support team
  </Card>
</CardGroup>
