Bash autocomplete for IBM Cloud CLI?

7/30/2018

I am using the CLI for IBM Cloud in my bash environment. Is there support for autocomplete, i.e., automatic completion of commands and their options?

I am especially interested in the commands for the Kubernetes service and the container registry.

-- data_henrik
bash
command-line-interface
ibm-cloud
kubernetes
zsh

1 Answer

7/30/2018

Autocompletion is supported, but not that well-advertised. The instructions can be found in the IBM Cloud developer tools documentation. The following source needs to be added to the bash / zsh resource file or profile:

bash: source /usr/local/ibmcloud/autocomplete/bash_autocomplete
zsh: source /usr/local/ibmcloud/autocomplete/zsh_autocomplete

-- data_henrik
Source: StackOverflow