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
Export a redacted diagnostics bundle
Runs ak doctor --json, redacts known secrets, email addresses, and local path prefixes, then emits a support bundle suitable for closed-beta issue attachments.
Who it's for: Closed beta pilots and maintainers sharing health evidence without raw local paths or credentials.
When to use it: Use before filing feedback that needs install, update, adapter, or registry diagnostics.
What changes on disk: Read-only. Writes the redacted bundle to stdout.
Usage
ak diagnostics export [flags]Examples
ak diagnostics export --json > agentkit-diagnostics.json
ak diagnostics export --offline --jsonFlags
| Flag | Description |
|---|---|
-h, --help | help for export |
--json | Emit machine-readable JSON (implies --no-interactive) |
--no-interactive | Disable interactive prompts (CI-safe) |
--offline | Skip network-dependent doctor checks before export |
-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) |
1 | doctor failed or the redacted payload could not be encoded |
2 | invalid flags |
Related commands
ak diagnostics— Export redacted support diagnostics