CLI commands
ak diagnostics export
Export a redacted diagnostics bundle
ak diagnostics export
Export a redacted diagnostics bundle
Synopsis
What it does:
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.
Examples: ak diagnostics export --json > agentkit-diagnostics.json ak diagnostics export --offline --json
What changes on disk: Read-only. Writes the redacted bundle to stdout.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 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
ak diagnostics export [flags]Options
-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 promptsSEE ALSO
- ak diagnostics - Export redacted support diagnostics