The Akuity CLI
The Akuity CLI allows you to manage the Akuity Platform resources using the operating system's command line. See the CLI reference section for all available commands.
Installation
- Mac
- Linux or WSL
- Windows
Homebrew
brew install akuity
Manual
- Download the latest release with the script:
arch=$(uname -m)
[ "$arch" = "x86_64" ] && arch=amd64
curl -L -o akuity "https://dl.akuity.io/akuity-cli/$(curl -sL https://dl.akuity.io/akuity-cli/stable.txt)/darwin/${arch}/akuity"
The following architectures are available to download: amd64
, arm64
To download a specific version, replace the $(curl -sL https://dl.akuity.io/akuity-cli/stable.txt)
portion of the command with the specific version.
For example, to download version v0.9.3 on Mac, use:
arch=$(uname -m)
[ "$arch" = "x86_64" ] && arch=amd64
curl -L -o akuity "https://dl.akuity.io/akuity-cli/v0.9.3/darwin/${arch}/akuity"
Alternatively, you can download the CLI binary from the Akuity Portal UI using the CLI
button in the left navigation bar.
- Make the
akuity
binary executable:
chmod +x ./akuity
- Move the
akuity
binary to a file location on your systemPATH
.
sudo mv ./akuity /usr/local/bin/akuity
sudo chown root: /usr/local/bin/akuity
Make sure /usr/local/bin
is in your PATH
environment variable.
- Check whether the version you've installed is the one you wanted:
akuity version
If your system shows
"akuity" can't be opened because Apple cannot check it for malicious software.
you can allow running it by the following command:
sudo xattr -d com.apple.quarantine /usr/local/bin/akuity
- Download the latest release with the command:
arch=$(dpkg --print-architecture)
curl -sSL -o akuity "https://dl.akuity.io/akuity-cli/$(curl -sL https://dl.akuity.io/akuity-cli/stable.txt)/linux/${arch}/akuity"
chmod +x akuity
sudo mv akuity /usr/local/bin/akuity
The following architectures are available to download: amd64
, arm64
, ppc64le
, s390x
To download a specific version, replace the $(curl -sL https://dl.akuity.io/akuity-cli/stable.txt)
portion of the command with the specific version.
For example, to download version v0.9.3 on Linux, type:
arch=$(dpkg --print-architecture)
curl -sSL -o akuity "https://dl.akuity.io/akuity-cli/v0.9.3/linux/${arch}/akuity"
chmod +x akuity
sudo mv akuity /usr/local/bin/akuity
Alternatively, you can download the CLI binary from the Akuity Portal UI using the CLI
button in the left navigation bar.
- Make the
akuity
binary executable:
chmod +x /usr/local/bin/akuity
- Check whether the version you've installed is the one you wanted:
akuity version
- Download the latest release with the command:
Invoke-WebRequest -URI https://dl.akuity.io/akuity-cli/$(Invoke-WebRequest https://dl.akuity.io/akuity-cli/stable.txt)/windows/amd64/akuity.exe -OutFile akuity.exe
The following architectures are available to download: amd64
To download a specific version, replace the $(Invoke-WebRequest https://dl.akuity.io/akuity-cli/stable.txt)
portion of the command with the specific version.
For example, to download version v0.9.3 on Windows, type:
Invoke-WebRequest -URI "https://dl.akuity.io/akuity-cli/v0.9.3/windows/amd64/akuity.exe" -OutFile akuity.exe
Alternatively, you can download the CLI binary from the Akuity Portal UI using the CLI
button in the left navigation bar.
-
Append or prepend the
akuity
binary folder to yourPATH
environment variable. -
Check whether the version you've installed is the one you wanted:
akuity version
Login to Akuity Platform:
akuity login
Alternatively, you can generate an API token from the Akuity Portal UI using the API Keys tab on the organization profile page and expose the key
using AKUITY_API_KEY_ID
, AKUITY_API_KEY_SECRET
, and optionally AKUITY_SERVER_URL
environment variables:
export AKUITY_API_KEY_ID=<API_KEY_ID>
export AKUITY_API_KEY_SECRET=<API_KEY_SECRET>
akuity argocd instance list --organization-name <organization-name>