Installing the OpenShift command-line interface

The IBM® Cloud Pak for Data command-line interface (cpd-cli) interacts with the OpenShift command-line interface (oc CLI) to issue commands to your Red Hat® OpenShift Container Platform cluster.

Installation phase
You are here icon. Setting up a client workstation
You are not here. Collecting required information
You are not here. Preparing your cluster
You are not here. Installing the Cloud Pak for Data platform and services
Who needs to complete this task?
Any users who are completing Cloud Pak for Data installation tasks.
When do you need to complete this task?
You must complete this task on any workstation from which you plan to run installation commands.

You must install a version of the oc CLI that is compatible with your Red Hat OpenShift Container Platform cluster.

Note: The links to the installation instructions are provided for your convenience. If the provider changes the location of the documentation, the links might not work.

Self-managed clusters

Install the version of the oc CLI that corresponds to the version of Red Hat OpenShift Container Platform that you are running.

OpenShift Container Platform Version Installation instructions
Version 4.6 See Getting started with the OpenShift CLI in the Red Hat OpenShift Container Platform documentation.
Version 4.8 See Getting started with the OpenShift CLI in the Red Hat OpenShift Container Platform documentation.
Version 4.10 See Getting started with the OpenShift CLI in the Red Hat OpenShift Container Platform documentation.


Managed OpenShift clusters

Follow the appropriate guidance for your managed OpenShift environment.

OpenShift environment Installation instructions
Red Hat OpenShift on IBM Cloud® See Installing the OpenShift CLI in the IBM Cloud documentation.
Azure Red Hat OpenShift (ARO) See Install the OpenShift CLI in the Azure Red Hat OpenShift documentation
Red Hat OpenShift Service on AWS (ROSA) See Getting started with the ROSA CLI in the Red Hat OpenShift Service on AWS documentation.