Comprehensive guide for installing, configuring, and using the Ankra CLI to manage clusters, chat with AI, browse charts, and automate platform operations.
The Ankra CLI is a powerful command-line interface for interacting with the Ankra platform. It enables you to manage clusters, chat with AI about your infrastructure, browse Helm charts, manage credentials, deploy stacks, and automate platform operations directly from your terminal.
The CLI can update itself in place with ankra upgrade (aliased as ankra self-update). The downloaded binary is verified against its published SHA-256 checksum before it replaces the running executable.
# Upgrade to the latest stable releaseankra upgrade# Check whether a newer release exists without installingankra upgrade --check# Pin an exact version (also works as a downgrade / rollback)ankra upgrade --version v0.3.0
Flag
Description
--version <tag>
Install an exact release (e.g. v0.3.0 or 0.3.0); installs whether newer or older, so it doubles as a rollback
--check
Report whether a newer release is available without installing
--beta
Include pre-release versions for this run (overrides the saved channel)
--force
Reinstall even if already on the target version
-y, --yes
Skip the confirmation prompt
--allow-unverified
Install even when no checksum is published (insecure)
If the binary lives in a root-owned location, run sudo ankra upgrade or re-run the install script.
# 1. Login with SSOankra login# 2. List your clustersankra cluster list# 3. Select a cluster to work withankra cluster select# 4. Start chatting with AI about your infrastructureankra chat "What's the status of my deployments?"
Commands that read or return data support structured output via the shared -o/--output flag, so scripts and AI agents never have to parse tables or prose:
-o json prints the result as indented JSON; -o yaml emits the same data as YAML.
The kubectl-style commands (cluster get ..., cluster helm releases, cluster metrics ...) default to -o table and accept json/yaml as alternatives.
ankra cluster list -o jsonankra cluster operations list -o jsonankra cluster get pods -o jsonankra org list -o json
Write commands (reconcile, provision, deprovision, scaling, node groups, token creation, …) also accept -o json and emit the API result - including operation IDs - so automation can poll ankra cluster operations list <id> -o json for completion. Asynchronous writes submitted without --wait emit {"submitted": true, ...}.