mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
:_mod-docs-content-type: PROCEDURE
|
|
[id="cli-installing-cli-web-console-macos_{context}"]
|
|
= Installing the OpenShift CLI on macOS using the web console
|
|
|
|
ifeval::["{context}" == "updating-restricted-network-cluster"]
|
|
:restricted:
|
|
endif::[]
|
|
|
|
You can install the OpenShift CLI (`oc`) binary on macOS by using the following procedure.
|
|
|
|
.Procedure
|
|
ifndef::openshift-rosa,openshift-dedicated[]
|
|
. From the web console, click *?*.
|
|
+
|
|
image::click-question-mark.png[]
|
|
. Click *Command Line Tools*.
|
|
+
|
|
image::CLI-list.png[]
|
|
. Select the `oc` binary for macOS platform, and then click *Download oc for Mac for x86_64*.
|
|
+
|
|
[NOTE]
|
|
====
|
|
For macOS arm64, click *Download oc for Mac for ARM 64*.
|
|
====
|
|
|
|
. Save the file.
|
|
. Unpack and unzip the archive.
|
|
endif::openshift-rosa,openshift-dedicated[]
|
|
ifdef::openshift-rosa,openshift-dedicated[]
|
|
. Download the latest version of the `oc` CLI for your operating system from the link:https://console.redhat.com/openshift/downloads[*Downloads*] page on {cluster-manager}.
|
|
|
|
. Extract the `oc` binary file from the downloaded archive.
|
|
endif::openshift-rosa,openshift-dedicated[]
|
|
. Move the `oc` binary to a directory on your PATH.
|
|
+
|
|
To check your `PATH`, open a terminal and execute the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ echo $PATH
|
|
----
|
|
|
|
After you install the OpenShift CLI, it is available using the `oc` command:
|
|
|
|
[source,terminal]
|
|
----
|
|
$ oc <command>
|
|
----
|
|
|
|
ifeval::["{context}" == "updating-restricted-network-cluster"]
|
|
:!restricted:
|
|
endif::[]
|