What is Ankra CLI?
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.Installation
Single Command Installation (Recommended)
Direct Download
Download the binary directly from GitHub Releases.Upgrading the CLI
The CLI can update itself in place withankra upgrade (aliased as ankra self-update). The downloaded binary is verified against its published SHA-256 checksum before it replaces the running executable.
Beta (pre-release) channel
Opt in to release candidates (such asv0.3.0-rc.1) so ankra upgrade resolves the newest release including pre-releases:
~/.ankra/settings.json (separate from your credentials).
Authentication
SSO Login (Recommended)
The easiest way to authenticate is using browser-based SSO:- Open your browser to the Ankra login page
- After you authenticate, save your credentials locally
- You can then use all ankra CLI commands
~/.ankra.yaml.
To logout and clear credentials:
Environment Variables (Alternative)
You can also use environment variables:~/.zshrc or ~/.bashrc) for persistence.
Quick Start
Machine-readable output (-o json|yaml)
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 jsonprints the result as indented JSON;-o yamlemits the same data as YAML.- The kubectl-style commands (
cluster get ...,cluster helm releases,cluster metrics ...) default to-o tableand acceptjson/yamlas alternatives.
-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, ...}.
Command Reference
The full command reference - every command, subcommand, flag, and default - is generated from the CLI source on each release, so it never drifts:CLI Command Reference
Browse all 18 command families: cluster, credentials, tokens, profile, org, chat, skills, and more.
Configuration
The CLI stores configuration in~/.ankra.yaml:
--tokenflag (explicit CLI argument)- Config file token (saved by
ankra login) ANKRA_API_TOKENenvironment variable
--base-url or the ANKRA_BASE_URL environment variable.
Troubleshooting
Common Issues
PATH issues:Error Messages
- “No active cluster selected” Run
ankra cluster selectfirst - “Resource not found” Verify the resource name and selected cluster
- “Unauthorized” Re-authenticate with
ankra login
Support & Resources
- Slack: Join Ankra Community
- Email: [email protected]
- GitHub: ankraio/ankra-cli
For more advanced usage, see the full documentation or contact support.