Skip to main contentIBM Cloud Patterns

Developer tools Setup

To prepare to use the CNCF DevOps tools you need to prepare a development client. This can be either your desktop, the IBM Cloud Shell or when using OpenShift you can use Cloud Ready Workspaces.

  • If you are going to use your desktop/laptop follow the instructions in Desktop/Laptop tab. You will require a modern MacOS or Windows 10 operating systems for he Desktop/Laptop option
  • If you cannot install tools on your desktop/laptop, follow the Cloud Shell instructions
  • If you want to try the full web IDE experience, then follow the Code Ready Workspaces setup instructions

Once you have completed these setup requirements you will be ready to deploy you first application with a CI/CD pipeline that supports Code scanning.

Config Cloud Shell

IBM Cloud Shell is instantly accessible from your IBM Cloud account — no other installation is needed.

IBM Cloud Shell is a free service from IBM which gives you complete control of your cloud resources, applications and infrastructure, from any web browser.

Features of IBM Cloud Shell include:

  • Preconfigured environment IBM Cloud Shell provides a curated, cloud-based workspace with dozens of preinstalled tools and programming languages. It automatically authenticates to your IBM Cloud account so you can get right to work.

  • File upload/download Utilize file upload/download functionality to import files to IBM Cloud Shell, or pull down data to your local machine.

  • Multiple sessions Use up to five shell sessions at a time to maximize your productivity. Mirror workflows on your local machine, or view logs on one session while editing a file in another

Set up Cloud Shell

  • Login to IBM Cloud console (, if not already done

  • Invoke Cloud shell by clicking on the button at the top right hand corner of the browser window Invoke Cloud Shell

  • Install IBM Garage Cloud Toolkit CLI by running the following commands on the just newly opened terminal:

    git clone
    export PATH=~/cloud-shell-commands:$PATH
    source ./cloud-shell-commands/install-igc
  • This CLI adds a number of alias commands to kubectl and oc including sync,pipeline and endpoints

  • Successful execution will look like this.

    $ git clone
    Cloning into 'cloud-shell-commands'...
    remote: Enumerating objects: 50, done.
    remote: Counting objects: 100% (50/50), done.
    remote: Compressing objects: 100% (44/44), done.
    remote: Total 50 (delta 23), reused 14 (delta 4), pack-reused 0
    Unpacking objects: 100% (50/50), done.
    Checking connectivity... done.
    $ export PATH=~/cloud-shell-commands:$PATH
  • Check the version of the CLI commands

    $ kubectl sync --version

Log into IBM Cloud

  • Use ibmcloud CLI command line to log into the cloud account. Replace the user_id, password and team name in the sandbox name

    ibmcloud login -u <user_id> -p <password> -g <resource group>.. -r <region>
  • The fastest way to login the IBM Cloud is to select the Log in to CLI and API menu

    Login CLI

  • Use the command for IBM Cloud

    Login CLI

Access the Cluster

The follow steps enable you to operate the IBM managed cluster using IBM Cloud Shell

Log into Kubernetes Cluster

  • Log into the Kubernetes cluster from the cloud console


  • Access the Kubernetes dashboard by clicking on the button

    Kubernetes Dashboard

  • Follow the steps to log in Kubernetes cluster

    Access Kubernetes

Configure git

You need to configure your get identity so you are able to clone code into your cloud shell.

  • Execute the following commands

    git config --global "<email>"
    git config --global "<short_name>"