Installing Astra CLI
Install Astra CLI on macOS
You can install via Homebrew or manually.
Using Homebrew
Homebrew is the easiest way to manage your Astra CLI install. Homebrew provides convenient ways to install, update, and uninstall. If you don’t have Homebrew available on your system, install Homebrew before continuing.
You can install Astra CLI on macOS by updating your brew repository information, and then running the install command:
brew install datastax/astra-cli/astra-cli
The Homebrew formula of Astra CLI installs a completion file named astra
in the Homebrew-managed completions directory.
By default, the location is /usr/local/etc/bash_completion.d/
.
To enable completion, please follow Homebrew’s instructions here.
Manual Installation on macOS
To install or reinstall Astra CLI:
curl -Ls "https://dtsx.io/get-astra-cli" | bash
Installed location on your macOS machine
Astra CLI is installed in ~/.astra/cli
. This folder is deleted and recreated during installation.
Your configuration is saved in the ~/.astrarc
file. It is not deleted during reinstallations.
Install Astra CLI on Linux
Manual Installation on Linux
To install or reinstall Astra CLI:
curl -Ls "https://dtsx.io/get-astra-cli" | bash
Installed location on your Linux machine
Astra CLI is installed in ~/.astra/cli
. This folder is deleted and recreated during installation.
Your configuration is saved in the ~/.astrarc
file. It is not deleted during reinstallations.
Install Astra CLI on Windows
-
Install Windows Subsystem for Linux.
-
Install Astra CLI:
curl -Ls "https://dtsx.io/get-astra-cli" | bash
For more information, see Awesome Astra.