mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
46 lines
1018 B
Plaintext
46 lines
1018 B
Plaintext
ifeval::["{context}" == "updating-restricted-network-cluster"]
|
|
:restricted:
|
|
endif::[]
|
|
|
|
:_content-type: PROCEDURE
|
|
[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
|
|
|
|
. 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*.
|
|
. Save the file.
|
|
. Unpack the archive.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ tar xvf <file>
|
|
----
|
|
. 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::[]
|