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 skill upgrade
Re-resolve the per-skill env after editing skill.yaml
After editing the runtime: block in skill.yaml, this command re-hashes the live block and reinstalls into a fresh cache dir if the hash drifted. No-op when the hash already matches the on-disk manifest.
Who it's for: Kit authors, power devs maintaining their kits.
When to use it: After editing the runtime: block (use ak skill repair instead when verify reports corrupt).
What changes on disk: May write to a new ~/.agentkit/cache/<new-hash>/ and refresh ~/.agentkit/skills/<kit>/<skill>/.manifest.json. Old cache dir is preserved.
Usage
ak skill upgrade <kit>/<skill> [flags]Examples
ak skill upgrade marketing/youtube
ak skill upgrade engineer/web-testingFlags
| Flag | Description |
|---|---|
-h, --help | help for upgrade |
--json | Emit machine-readable JSON (implies --no-interactive) |
--kits-dir string | Kits directory (default: ./kits or $AGENTKIT_KITS_DIR) |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
-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) |
4 | missing tool (uv / pnpm) or skill has no runtime block |
5 | kit or skill not found |
Related commands
ak skill— Manage per-skill runtime envs