1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/cli-installing-cli-web-console-macos.adoc

44 lines
1.0 KiB
Plaintext

ifeval::["{context}" == "updating-restricted-network-cluster"]
:restricted:
endif::[]
:_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
. 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*.
. Save the file.
. Unpack and unzip the archive.
. 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::[]