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 diagnostics
Export redacted support diagnostics
Collect support-safe diagnostic data for AgentKit troubleshooting. Subcommands redact known secrets, email addresses, and local path prefixes before output.
Who it's for: Closed beta pilots and maintainers preparing issue attachments.
When to use it: Use when filing install, update, adapter, or runtime feedback that needs local health evidence.
What changes on disk: Parent command is read-only. Export writes only to stdout unless the shell redirects output.
Examples
ak diagnostics export --json > agentkit-diagnostics.json
ak diagnostics export --offline --jsonFlags
| Flag | Description |
|---|---|
-h, --help | help for diagnostics |
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) |
Related commands
ak— AgentKit CLIak diagnostics export— Export a redacted diagnostics bundle