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 commands

Per-slash-command management commands

List, install, remove, show, and search individual slash commands (e.g. ckm:write/good) from any kit. Slash commands are markdown prompt templates Claude Code surfaces as /<namespace>:<name>.

Who it's for: Both: power devs scripting installs (--json) and users browsing what's available.

When to use it: Use as the entry point for any per-slash-command operation; subcommands handle the action.

What changes on disk: Read-only at this group level; subcommands document their own effects.

Examples

ak commands list                              # show what's installed + available
ak commands search email                      # find slash commands matching a keyword
ak commands install marketing/ckm-email       # install one command
ak commands show marketing/ckm-email          # inspect metadata
ak commands remove marketing/ckm-email        # uninstall

Flags

FlagDescription
-h, --helphelp for commands
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
-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)

On this page