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 self-update

Check or apply signed AgentKit binary updates

Check the signed AgentKit binary update manifest from the configured release registry. Manual CLI apply requires --yes. Desktop auto-update is opt-in only and is controlled by updates.enabled in ~/.agentkit/config.yaml.

Who it's for: Users who want AgentKit itself updated from the Cloudflare-backed release channel.

When to use it: Use this instead of ak update when updating the ak binary or staging a desktop update.

What changes on disk: Check mode is read-only. Package-manager-owned binaries report the manager-native upgrade command. --enable-auto-update/--disable-auto-update writes ~/.agentkit/config.yaml. Apply mode downloads verified artifacts into ~/.agentkit/cache/binaries and replaces the CLI binary only after all required bytes verify. Desktop updates are staged atomically and require restart/handoff.

Usage

ak self-update [flags]

Examples

ak self-update --check
ak self-update --changelog
ak self-update --yes
ak self-update --include-desktop --yes
ak self-update --enable-auto-update
ak self-update --disable-auto-update
ak self-update --channel stable --json

Flags

FlagDescription
--changelogPrint the verified release changelog without checking or applying updates
--channel stringBinary update channel (dev, beta, stable; default from config or beta)
--checkCheck for a binary update without applying it
--disable-auto-updateOpt out of desktop auto-update
--dry-runVerify and plan the update without mutating disk
--enable-auto-updateOpt in to desktop auto-update checks and staged apply
-h, --helphelp for self-update
--include-desktopRequire matching CLI and desktop artifacts for this platform
--jsonEmit machine-readable JSON (implies --no-interactive)
--kit stringWhen using --changelog, filter one public kit: engineer or marketing
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
--registry-url stringBinary update registry root (default $AGENTKIT_BINARY_UPDATE_URL or release domain)
--target stringsWhen using --changelog, filter target: all, cli, app, kits, engineer, or marketing
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
--version stringResolve a specific binary version instead of the channel pointer
-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)
1network, verification, staging, or replacement error
2invalid flags
  • ak — AgentKit CLI

On this page