Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Installing cloudctl, kubectl, and oc

Follow these steps to install the command line tools that are needed to manage aspects of the Open Horizon (Open Horizon) management hub and edge clusters:


  1. Browse your Open Horizon web UI at: https://<CLUSTER_URL>/common-nav/cli

  2. Expand the IBM Cloud Pak CLI section and select your OS.

  3. Copy the displayed curl command and run it to download the cloudctl binary.

  4. Make the file executable and move it to /usr/local/bin:

    chmod 755 cloudctl-*
    sudo mv cloudctl-* /usr/local/bin/cloudctl
  5. Ensure /usr/local/bin is in your PATH and then verify that cloudctl is working:

    cloudctl --help


  1. Download the OpenShift Container Platform CLI tar file from OpenShift client CLI (oc) . Select the file openshift-client-*-*.tar.gz for your operating system.

  2. Find the downloaded tar file and unpack it:

    tar -zxvf openshift-client-*-*.tar.gz
  3. Move the oc command to /usr/local/bin:

    sudo mv oc /usr/local/bin/
  4. Ensure /usr/local/bin is in your PATH and verify that oc is working:

    oc --help

Alternatively, use homebrew to install oc on macOS:

   brew install openshift-cli


Follow the instructions in Install and Set Up kubectl .