10.3. Installing the CLI on macOS
You can install the OpenShift CLI (
oc) binary on macOS by using the following procedure.
- Navigate to the Infrastructure Provider page on the Red Hat OpenShift Cluster Manager site.
- Select your infrastructure provider, and, if applicable, your installation type.
- In the Command line interface section, select MacOS from the drop-down menu and click Download command-line tools.
- Unpack and unzip the archive.
ocbinary to a directory on your PATH.
To check your
PATH, open a terminal and execute the following command:
$ echo $PATH
After you install the CLI, it is available using the
$ oc <command>
To learn more, see Getting started with the CLI.