2021-11-25 15:09:46 +05:30
ifeval::["{context}" == "updating-restricted-network-cluster"]
:restricted:
endif::[]
2023-10-30 10:13:25 -04:00
:_mod-docs-content-type: PROCEDURE
2021-11-25 15:09:46 +05:30
[id="cli-installing-cli-web-console-macos-linux_{context}"]
= Installing the OpenShift CLI on Linux using the web console
You can install the OpenShift CLI (`oc`) binary on Linux by using the following procedure.
.Procedure
2023-06-21 11:11:14 -05:00
ifndef::openshift-rosa,openshift-dedicated[]
2021-11-25 15:09:46 +05:30
. From the web console, click *?*.
+
image::click-question-mark.png[]
. Click *Command Line Tools*.
+
image::CLI-list.png[]
. Select appropriate `oc` binary for your Linux platform, and then click *Download oc for Linux*.
2023-06-21 11:11:14 -05:00
2021-11-25 15:09:46 +05:30
. Save the file.
. Unpack the archive.
2023-06-21 11:11:14 -05:00
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[]
2021-11-25 15:09:46 +05:30
+
[source,terminal]
----
2023-03-01 07:43:42 +05:30
$ tar xvf <file>
2021-11-25 15:09:46 +05:30
----
. Move the `oc` binary to a directory that is on your `PATH`.
+
To check your `PATH`, 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::[]