Skip to content

Axiom CLI

Get started with Axiom CLI

Axiom's command line interface (CLI) is an Axiom tool that lets you test, manage, and build your Axiom deployments and projects by typing commands on the command-line.

You can use the command line to Ingest data, manage authentication state, and configure multiple deployments.


To install Axiom CLI, make sure you have Go version 1.15 or higher, then run this command from any directory in your terminal.

$ go get -u

You can also install the CLI using Homebrew

$ brew tap axiomhq/tap
$ brew install axiom 

This installs Axiom command globally so you can run axiom commands from any directory.

You can check the version and find out basic commands about the tool with the following command:

$ axiom


You can manage the authentication state of your deployments with the Axiom command-line interface. It's possible for you to log in, log out of, select an Axiom deployment, and view the authentication status of your deployments.

Before logging in, you are being asked for your account credentials interactively on the command line, enter your various credentials, and log into your specified deployment. The resulting token is printed out for further use or stored in the configuration file alongside the instance URL and alias to refer to it in the future.


Axiom CLI uses a personal or ingest token to authenticate with Axiom. You can obtain this token via the Axiom UI.

Session support

You can configure multiple Axiom deployments using the Axiom CLI by configuring the appropriate endpoint and auth token. The configuration is obtained from the configuration file or the environment: ~/.config/.axiom.toml


active-backend: main-instance
- main-instance:
- alt-instance:
To view available environment variables run axiom help environment for an up to date list of env vars:

# Directly set an Axiom instance:

# Select an Axiom instance from the available ones configured in
# "~/.config/axiom/backends.yml" by using its alias, overriding the
# preference in the config file:


You can generate an ingest and personal token manually in your Axiom user settings.

See Tokens to know more about managing access and authorization.

Configuration and Deployment

Axiom CLI lets you ingest, authenticate, and stream data.

For more information about Configuration, managing authentication status, ingesting, streaming, and more, visit the Axiom CLI repository on GitHub.

Axiom CLI supports the ingestion of different formats of data ( JSON, NDJSON, and CSV)


Import, transfer, load and process data for later use or storage using the Axiom CLI. With Axiom CLI you can Ingest the contents of a JSON, NDJSON, CSV logfile into a dataset.

To view a list of all the available commands run axiom on your terminal:

➜ ~ axiom
The power of Axiom on the command-line.

  axiom <command> <subcommand> [flags]

  ingest:      Ingest data
  stream:      Livestream data

  auth:        Manage authentication state
  config:      Manage configuration
  dataset:     Manage datasets
  organization:Manage organizations

  completion:  Generate shell completion scripts
  help:        Help about any command
  version:     Print version

  -C, --config string       Path to configuration file to use
  -D, --deployment string   Deployment to use
  -h, --help                Show help for command
  -I, --insecure            Bypass certificate validation
  -O, --org-id string       Organization ID to use (only valid for Axiom Cloud)
  -T, --token string        Token to use
  -U, --url string          Url to use
  -v, --version             Show axiom version

  $ axiom auth login
  $ axiom version
  $ cat /var/log/nginx/*.log | axiom ingest nginx-logs

  See 'axiom help credentials' for help and guidance on authentication.

  See 'axiom help environment' for the list of supported environment variables.

  Use 'axiom <command> <subcommand> --help' for more information about a command.

  Read the manual at

Command reference

View and Get started with Axiom CLI Command List here.

Get help

To get usage tips and learn more about available commands from within Axiom CLI, run the following:

$ axiom help

For more information about a specific command, run help with the name of the command.

$ axiom help auth 

This also works for sub-commands.

$ axiom help auth status

if you have questions, or any opinions you can start an issue on Axiom CLI's open source repository.

You can also visit our Slack group to start or join a discussion. We’d love to hear from you!