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. Setting up a cluster
  • You are not here. Collecting required information
  • You are not here. Preparing to run installs in a restricted network
  • You are not here. Preparing to run installs from a private container registry
  • You are not here. Preparing the cluster for Cloud Pak for Data
  • You are not here. Preparing to install an instance of Cloud Pak for Data
  • You are not here. Installing an instance of Cloud Pak for Data
  • You are not here. Setting up the Cloud Pak for Data control plane
  • You are not here. Installing solutions and services
Who needs to complete this task?
All administrators Any users who are completing Cloud Pak for Data installation tasks must install the OpenShift CLI.
When do you need to complete this task?
Repeat as needed You must complete this task on any workstation from which you plan to run installation commands.

About this task

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

Procedure

To install the OpenShift CLI, follow the appropriate guidance for your cluster:
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. For details, 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
IBM Cloud Satellite See Installing the CLI in the IBM Cloud Satellite documentation.
Red Hat OpenShift on IBM Cloud See Installing the 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 Installing the OpenShift CLI in the Red Hat OpenShift Service on AWS documentation.
Red Hat OpenShift Dedicated on Google Cloud See Learning how to use the command-line tools for Red Hat OpenShift Dedicated in the Red Hat OpenShift Dedicated documentation.