ccloud completion


The Confluent Cloud CLI is deprecated and will stop working on May 9, 2022. All ccloud features have been moved to the Confluent CLI. To update to the new CLI, run ccloud update –major. See the Migrate to Confluent CLI v2 for more details.


Use this command to print the output Shell completion code for the specified shell (Bash/Zsh only). The shell code must be evaluated to provide interactive completion of ccloud commands.

Install Bash completions on macOS:
  1. Install Homebrew (

  2. Install Bash completions using the homebrew command:

    brew install bash-completion
  3. Update your Bash profile:

    echo '[[ -r "$(brew --prefix)/etc/profile.d/" ]] && . "$(brew --prefix)/etc/profile.d/"' >> ~/.bash_profile
  4. Run the following command to install auto completion:

    ccloud completion bash > $(brew --prefix)/etc/bash_completion.d/ccloud
Install Bash completions on Linux:
  1. Install Bash completion:

    sudo apt-get install bash-completion
  2. Set the ccloud completion code for Bash to a file that’s sourced on login:

    ccloud completion bash > /etc/bash_completion.d/ccloud
  3. Load the ccloud completion code for Bash into the current shell:

    source /etc/bash_completion.d/ccloud
  4. Add the source command above to your ~/.bashrc or ~/.bash_profile to enable completions for new terminals.

Install Zsh completions:

Zsh looks for completion functions in the directories listed in the fpath shell variable.

  1. Put the ccloud completion code for Zsh into a file in one the fpath directories, preferably one of the functions directories. For example:

    ccloud completion zsh > ${fpath[1]}/_ccloud
  2. Enable Zsh completions:

    autoload -U compinit && compinit
  3. Add the autoload command in your ~/.zshrc to enable completions for new terminals. If you encounter error messages about insecure files, you can resolve by running the chown command to change the _ccloud file to the same user:group as the other files in ${fpath[1]}/.

  4. To update your completion scripts after updating the CLI, run ccloud completion <bash|zsh> again and overwrite the file initially created above.

ccloud completion <shell> [flags]

Global Flags

-h, --help            Show help for this command.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).

See Also