completion
kafka completion <shell>
Print a shell completion script for bash, zsh, or fish
Arguments
| Argument | Description |
|---|---|
shell |
the shell to generate a script for (bash|zsh|fish) |
Shared options and defaults: connection profiles, JSON output, logging and help.
Defaults
Writes completion for the selected shell; it does not load cluster configuration.
Examples
kafka completion bash
kafka completion zsh
kafka completion fish
Output
Illustrative, abbreviated output. Empty arrays show the result envelope; actual entries, identifiers, optional fields and broker errors depend on the request and cluster.
# shell completion script (shell-specific)
Declared exit codes: 0, 2. See the exit-code reference for meanings.