ak diagnostics
ak diagnostics
Find the redacted support-export command without collecting data from the parent command itself.
ak diagnostics is the command group for support-safe diagnostic exports. Run
the parent with no subcommand to view its help; collection starts only when you
run ak diagnostics export.
Usage
ak diagnosticsThe documented parent command accepts no positional arguments or command-specific flags and performs no health checks, network requests, file writes, or redaction by itself. The current parent tolerates extra positional tokens and still displays help; do not rely on that implementation detail.
Export a bundle
ak diagnostics export --json > agentkit-diagnostics.json
ak diagnostics export --offline --json > agentkit-diagnostics.jsonThe export runs ak doctor --json, applies known secret, email, and local-path
redactors, and writes one JSON support artifact to stdout. Use --offline when
you do not want the embedded doctor run to perform network-dependent checks.
Redaction covers known patterns, not every possible sensitive value. Inspect the generated artifact before sharing it.
Exit behavior
| Exit | Meaning |
|---|---|
0 | The command-group help was displayed, including when the current parent tolerated extra positional tokens. |
2 | A flag could not be parsed. |
Export has its own runtime exits and output contract. The parent has no preview, apply, force, confirmation, authentication, entitlement, backup, or recovery behavior.