Installation
Install using go install
To install Axiom CLI, make sure you have Go installed, then run this command from any directory in your terminal.Install using Homebrew
You can also install the CLI using Homebrewaxiom commands from any directory.
To update:
Install from source
Run the Docker image
Docker images are available on DockerHub.Authentication
The recommended way to authenticate Axiom CLI is with a personal access token. A personal access token starts withxapt- and lets you do everything you can do in the Axiom Console, including querying and streaming data.
- In the Axiom Console, go to Settings → Profile → Personal Tokens and create a token. Copy the token value (it starts with
xapt-). - Log in with the token. Use one of the following methods.
--alias (a local name for the deployment) and --org-id are required:
axiom auth login entirely and set environment variables. AXIOM_ORG_ID is optional with a personal access token—the token resolves to your default organization, so set it only when your account belongs to more than one organization and you want to target a specific one:
axiom dataset list.
For more information about tokens, see Tokens.
Managing multiple organizations
While most users will only need to manage a single Axiom deployment, Axiom CLI provides the capability to switch between multiple organizations for those who require it. You can easily switch between organizations using straightforward CLI commands. For example,axiom auth switch-org lets you change your active organization, or you can set the AXIOM_ORG_ID environment variable for the same purpose.
Every setting in Axiom CLI can be overwritten via environment variables configured in the ~/.axiom.toml file. Specifically, AXIOM_URL, AXIOM_TOKEN, and AXIOM_ORG_ID are important for configuring your environment. Set AXIOM_URL to your Axiom domain. For more information, see Edge deployments. You can switch between environments using the axiom auth select command.
To view available environment variables, run axiom help environment for an up to date list of env vars:
One-Click Login
The One-Click Login is an easier way to authenticate Axiom-CLI and log in to your Axiom deployments and account resources directly on your terminal using the Axiom CLI.
Field list
Tokens
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)Querying
Get deeper insights into your data using Axiom Processing LanguageIngestion
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 runaxiom on your terminal:
Command Reference
Below are the commonly used commands on Axiom CLI Core Commands
Management Commands
Additional Commands
Get help
To get usage tips and learn more about available commands from within Axiom CLI, run the following:help with the name of the command.