Bảng điều khiển AK CLI

AgentKit CLI Quick Reference

Danh sách lệnh aksetup , kit , account , inspect , config . Copy mẫu lệnh; xem flag chính.

Nguồn: ak --help (AgentKit CLI). Universal flags: --json , --yes , --no-interactive , --quiet .

40
Lệnh
5
Nhóm
ak
CLI
quick copy
01

Lifecycle & setup

6 lệnh
ak init

Khởi tạo project AgentKit (onboard project hiện tại)

--yes--kit <name>--global
$ ak init
ak new

Bootstrap project AgentKit mới

--kit <name>--yes--dir <dir>
$ ak new --kit engineer --yes
ak setup

Wizard cấu hình lần đầu

--global
$ ak setup
ak self-update

Kiểm tra / apply cập nhật binary ak đã ký

--check--yes--beta--include-desktop--enable-auto-update--disable-auto-update--channel <stable|beta>
$ ak self-update --check
ak update

Preview/apply refresh kit & project (wizard TTY: CLI → global → project)

--yes--global-g--kits <names>--force--show-diff--target <runtime>--beta
$ ak update --yes
ak uninstall

Gỡ project do AK quản lý (mặc định preview) — không dùng để gỡ kit global

--yes--dry-run--force
$ ak uninstall --dry-run
02

Kits, skills & agents

10 lệnh
ak kit

Quản lý kit

initrefreshuninstalllist-kits initrefreshuninstalllist-kits
$ ak kit init engineer --remote
ak kit init

Cài kit cho runtime (project hoặc global)

--remote--local--global--target <runtime>--switch-to-plugin--yes--force
$ ak kit init engineer --yes
ak kit refresh

Force re-emit một kit đã cài; gỡ file generated cũ

--global--target <runtime>--switch-to-plugin--yes--no-backup
$ ak kit refresh engineer --yes
ak kit uninstall

Gỡ nội dung kit do AgentKit sở hữu (global/project, native/plugin); preview trước

--global--plugin-mode--project-dir <path>--yes--dry-run
$ ak kit uninstall engineer --global --dry-run
ak skills

Duyệt và cài skills từ kit

--list--install--search--global
$ ak skills --list
ak skill

Quản lý runtime env theo skill

$ ak skill --help
ak agents

Quản lý agents

--list--install--global
$ ak agents --list
ak run

Chạy skill qua runtime adapter

--skill <id>--target <runtime>
$ ak run --help
ak content

Content engine / publish channels

startstopstatusqueue startstopstatus
$ ak content status
ak commands

Quản lý slash commands

--list
$ ak commands --list
03

Account

4 lệnh
ak login

Đăng nhập AgentKit (email OTP, API key, hoặc license key)

--email <addr>--api-key <key>--license-key <key>--no-interactive
$ ak login --email you@example.com
ak logout

Xóa credential CLI local

--json
$ ak logout
ak whoami

Xem account và kit được license

--json
$ ak whoami
ak licenses

Liệt kê kit được license

--json
$ ak licenses
04

Inspect & diagnose

10 lệnh
ak doctor

Health check cài đặt AgentKit

--json--offline--fix
$ ak doctor --json
ak audit

Kiểm tra drift kit đã cài

--json
$ ak audit
ak backups

Quản lý snapshot rollback

listrestoreverifypruneshow listrestoreverifyprune
$ ak backups list
ak recover

Khôi phục state từ snapshot

$ ak recover --help
ak activity

Xem activity feed local

--json
$ ak activity
ak sessions

Xem/gìn giữ session coding agent

$ ak sessions --help
ak diagnostics

Export diagnostics (đã redacted)

$ ak diagnostics
ak versions

Liệt kê version local (ak, kits, skills)

--json
$ ak versions
ak changelog

Changelog CLI/app/kits đã verify

--target <cli|app|kits>
$ ak changelog
ak feedback

Gửi hoặc export feedback

$ ak feedback
05

Config & runtime

10 lệnh
ak config

Mở dashboard AgentKit (hoặc HTTP)

startstopstatusprefs startstopstatusprefs--no-window--port <n>
$ ak config
ak config prefs

Resolve/validate/set preference trong config.yaml

resolvevalidatesetunset resolvevalidatesetunset--scope user|project
$ ak config prefs validate
ak mcp

Inspect cấu hình MCP local

$ ak mcp --help
ak migrate

Chuyển install ClaudeKit sang AgentKit

rollback --from=ck--dry-run--yes--switch-to-pluginrollback
$ ak migrate --from=ck
ak projects

Registry project global

listaddremove listaddremove
$ ak projects list
ak plan

Quản lý thư mục plan

statusvalidatekanban statusvalidatekanban
$ ak plan status
ak gui

Mở Desktop GUI (hoặc gợi ý tải)

$ ak gui
ak api

Local API + proxy server

startstatus startstatus
$ ak api status
ak watch

Watch GitHub issues và auto-respond

--interval--dry-run
$ ak watch --dry-run
ak codex-agent-runtime

Runtime dispatch MCP cho Codex agent

$ ak codex-agent-runtime --help