confluent completion
Description
Use this command to print the shell completion
code for the specified shell (Bash/Zsh only). The shell code must be evaluated to provide
interactive completion of confluent commands.
- Install Bash completions on macOS:
- Install Homebrew (https://brew.sh/). 
- Install Bash completions using the - brewcommand:- brew install bash-completion 
- Update your Bash profile: - echo '[[ -r "$(brew --prefix)/etc/profile.d/bash_completion.sh" ]] && . "$(brew --prefix)/etc/profile.d/bash_completion.sh"' >> ~/.bash_profile 
- Run the following command to install auto completion: - confluent completion bash > $(brew --prefix)/etc/bash_completion.d/confluent 
 
- Install Bash completions on Linux:
- Install Bash completion: - sudo apt-get install bash-completion 
- Set the - confluent completioncode for Bash to a file that’s sourced on login:- confluent completion bash > /etc/bash_completion.d/confluent 
- Load the - confluent completioncode for Bash into the current shell:- source /etc/bash_completion.d/confluent 
- Add the source command above to your - ~/.bashrcor- ~/.bash_profileto enable completions for new terminals.
 
- Install Zsh completions:
- Zsh looks for completion functions in the directories listed in the - fpathshell variable.- Put the - confluent completioncode for Zsh into a file in one the- fpathdirectories, preferably one of the functions directories. For example:- confluent completion zsh > ${fpath[1]}/_confluent
- Enable Zsh completions: - autoload -U compinit && compinit 
- Add the autoload command in your - ~/.zshrcto enable completions for new terminals. If you encounter error messages about insecure files, you can resolve by running the- chowncommand to change the- _confluentfile to the same- user:groupas the other files in- ${fpath[1]}/.
 
confluent completion <bash|zsh> [flags]
Global Flags
-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
See Also
- Confluent CLI Command Reference - Confluent CLI.