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 projects list
List all registered AK projects
Display every project registered in ~/.agentkit/projects.json as a tab-aligned table with name, directory, and registration date.
Who it's for: Both: power devs (--json) and non-technical users (table).
When to use it: Checking which projects AK knows about.
What changes on disk: Read-only: ~/.agentkit/projects.json.
Usage
ak projects list [flags]Examples
ak projects list # human-readable table
ak projects list --json # JSON array for scripting
ak projects list --quiet # suppress header (plain list)Flags
| Flag | Description |
|---|---|
-h, --help | help for list |
--json | Emit machine-readable JSON (implies --no-interactive) |
--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) |
0 | success (empty registry is still exit 0) |
1 | registry file unreadable (permissions, corrupt) |
Related commands
ak projects— Manage the global AK project registry