ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak versions
List local versions for ak, kits, and skills
Show the current ak binary version alongside every locally available kit and installed skill. Live latest-version comparison is disabled until the AgentKit versions registry endpoint is deployed; cached latest fields are best-effort and may be empty.
Who it's for: Both: power devs (--json for scripting) and non-technical users (default pretty output).
When to use it: Audit what is installed locally or diagnose version mismatches.
What changes on disk: Read-only unless a versions registry endpoint is configured and returns a fresh cacheable response.
Usage
ak versions [flags]Examples
ak versions # local inventory
ak versions --local-only # local inventory; no registry/cache lookup
ak versions --json # machine-readable JSON
ak versions --cache-ttl 30m # shorten TTL for registry cache readsFlags
| Flag | Description |
|---|---|
--cache-ttl duration | Registry cache TTL (e.g. 30m, 2h) (default 1h0m0s) |
-h, --help | help for versions |
--json | Emit machine-readable JSON (implies --no-interactive) |
--local-only | Skip registry fetch; show only installed versions |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
--remote-only | Reserved for a configured versions registry endpoint; skip local enumeration |
-V, --verbose | Extra diagnostic output on stderr (loses to --quiet) |
-y, --yes | Assume yes for all prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
1 | local enumeration failed (e.g. unreadable install root) |
2 | invalid flags |
Related commands
ak— AgentKit CLI