AgentKit
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 reads

Flags

FlagDescription
--cache-ttl durationRegistry cache TTL (e.g. 30m, 2h) (default 1h0m0s)
-h, --helphelp for versions
--jsonEmit machine-readable JSON (implies --no-interactive)
--local-onlySkip registry fetch; show only installed versions
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
--remote-onlyReserved for a configured versions registry endpoint; skip local enumeration
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
1local enumeration failed (e.g. unreadable install root)
2invalid flags
  • ak — AgentKit CLI

On this page