IBM Cloud CLI installation process
IBM cloud CLI installation process is mentioned in this blog entry for reference. IBM Cloud Command Line Interface provides commands for managing resources in IBM Cloud.
Below points will be discussed for reference.
- Installing using Shell
- Enabling shell autocompletion for IBM Cloud CLI
- Extending IBM Cloud CLI with plug-ins
1. Installing using Shell
In any of the linux terminal copy and paste the following command and run it.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
Upon completing the installation, issue below command to know the version
ibmcloud -v

If we want to update the ibmcloud cli, then issue below command,
ibmcloud update
2. Enabling shell autocompletion for IBM Cloud CLI
We can use below commands to use autocompletion mode when using ibmcloud cli.
If you’re using Bash, add below lines to bash_profile (in my case ~/.bash_profile)
[[ -f /usr/local/ibmcloud/autocomplete/bash_autocomplete ]] && source /usr/local/ibmcloud/autocomplete/bash_autocomplete
below screenshot for reference

3. Extending IBM Cloud CLI with plug-ins
After installing IBM Cloud CLI, the next step would be to install plug-ins so that we can use them to run the commands on the resources.
Issue below command to see the installed plugin list as below,
ibmcloud plugin list

Issue below command in the terminal to know more about the plugins available.
ibmcloud plugin repo-plugins -r "IBM Cloud"

Based on the deployed resources in IBM Cloud, we need to install the plugin. Ex: If I am using VPC, then I will use below command for installing the plugin,
To manage Virtual Private Cloud infrastructure service, I will use below command, ibmcloud plugin install vpc-infrastructure

Issue the plugin list command to see the installed plugin,

To manage IBM Cloud Kubernetes Service clusters, I will use below command, ibmcloud plugin install container-service
To manage IBM Cloud Container Registry content and configuration, I will use below commandibmcloud plugin install container-registry

Below are the list of plugins I have installed to use with ibmcloud cli,

URL’s for reference:
https://cloud.ibm.com/docs/cli?topic=cli-install-ibmcloud-cli
https://cloud.ibm.com/docs/cli?topic=cli-shell-autocomplete
https://cloud.ibm.com/docs/cli?topic=cli-plug-ins
