Skip to the content.

IBM Cloud’s cli commands

Install:
$ curl -sL https://ibm.biz/idt-installer | bash
Configure Env:
$ ibmcloud api https://api.ng.bluemix.net
Command Description
ibmcloud login Logs in to the cloud portal with prompts for email and passd
ibmcloud login --sso Opens a browser with a One-time code for sso login
ibmcloud target --cf Sets the target environment
ibmcloud target -o <value> -s <value> Sets the organization and space
ibmcloud plugin list List of installed plugins for cli
ibmcloud cr IBM Container registry cli command
ibmcloud cs clusters List the clusters
ibmcloud cs workers <worker_name> Lists the workers in the cluster with its public and private IP addresses
ibmcloud plugin install container-registry -r Bluemix Installs the container registry in local
ibmcloud plugin show container-registry Displays the details of the registry installed via pevious command
ibmcloud cr info Container Registry details
ibmcloud cr login Logs into the IBM Cloud registry
ibmcloud cr namespace-add <namespace> Creates a namespace in container registry
ibmcloud cr image-rm <image> Removes the image from the container registry
ibmcloud cs cluster-config <cluster_name> Downloads the kube-config file
ibmcloud cf services Lists the services created in Cloud Foundry
ibmcloud cf create-service tone_analyzer standard <service_name> Creates the IBM Watson Tone Analyzer service Note: the name should match the regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*
ibmcloud cs cluster-service-bind <cluster_name> default <service_name> Binds a service to a cluster