Installing the OpenShift CLI on macOS
To manage your cluster and deploy applications from the command line on macOS, install the OpenShift CLI (oc) binary. You can download the OpenShift CLI (oc) from the Red Customer Portal.
|
|
If you installed an earlier version of Download and install the new version of |
-
Navigate to the Download {product-title} page on the Red Hat Customer Portal.
-
Select the architecture from the Product Variant list.
-
Select the appropriate version from the Version list.
-
Click Download Now next to the OpenShift v4.20 macOS Clients entry and save the file.
For macOS arm64, choose the OpenShift v4.20 macOS arm64 Client entry.
-
Unpack and unzip the archive.
-
Move the
ocbinary to a directory on yourPATHvariable.To check your
PATHvariable, open a terminal and execute the following command:$ echo $PATH
-
Verify your installation by using an
occommand:$ oc <command>