Skip to content

CLI and Programmatic Access

Antares supports programmatic workflows through personal access tokens and the antares CLI.

Create tokens from Profile → Security. Tokens are intended for CLI, CI/CD, and agent access.

Token behavior:

  • Tokens are prefixed with ant_.
  • Tokens are hashed before storage.
  • Tokens can expire after 1 to 365 days, or have no expiry if your tenant allows it.
  • A user can have up to 10 active tokens.
  • Token-authenticated requests cannot create or revoke tokens.
  • New tokens are shown once. Copy the token before closing the dialog.

Use session authentication in the browser to create, list, or revoke tokens. Use bearer token authentication for CLI and API automation:

Authorization: Bearer ant_your_token_here

Download the antares CLI from Profile → Security. CLI downloads appear below the API token controls.

Profile Security page showing API tokens and Antares CLI download buttons.

Download the CLI package that matches your operating system and processor:

Platform Use when
macOS ARM You use a Mac with Apple Silicon.
macOS Intel You use an older Intel-based Mac.
Linux You run automation from a Linux workstation, VM, or CI runner.
Windows You run automation from Windows.

The CLI uses this authentication priority:

  1. --token
  2. ANTARES_TOKEN
  3. saved config

Run the interactive login flow:

Terminal window
antares auth login

Or configure a non-interactive environment:

Terminal window
export ANTARES_SERVER="https://app.getantares.io"
export ANTARES_TOKEN="ant_your_token_here"
antares --server "$ANTARES_SERVER" auth status

The CLI stores saved credentials in the Antares config directory, such as ~/.config/antares/config.json on Linux.

Use --human for readable terminal output. Without --human, commands return JSON where supported.

Terminal window
antares --server "$ANTARES_SERVER" --token "$ANTARES_TOKEN" --human analysis list

Analysis commands:

  • antares analysis list
  • antares analysis get <id>
  • antares analysis upload <file> [--wait]
  • antares analysis wait <id> [--timeout 30m]
  • antares analysis export <id> --format json
  • antares analysis export <id> --format csv
  • antares analysis export <id> --format xlsx --output analysis.xlsx
  • antares analysis delete <id>

Report commands:

  • antares report overview <analysis-id>
  • antares report workbook <analysis-id> <workbook-id>

Auth commands:

  • antares auth login
  • antares auth status
  • antares auth logout

Personal access tokens are designed for analysis automation. Browser session authentication is required for token management and some administrative workflows.

Common automation capabilities include:

CapabilityWhat it supports
Authentication checkVerify that a token can reach the Antares tenant and identify the current user.
Analysis managementList analyses, inspect analysis status, upload a workbook, wait for completion, and delete analyses.
Report accessRead environment overview data and workbook-level report details.
ExportExport analysis results as JSON, CSV, or XLSX for downstream review.
CLI distributionDownload the platform-specific CLI package from the user profile.

Browser workflows can also manage:

  • Authentication and user profile.
  • Personal access tokens.
  • Tableau connections and pre-checks.
  • Fabric connections, workspaces, semantic models, and imports.
  • Conversions and deployment.
  • Admin users, settings, audit logs, app logs, notifications, and operations.