Skip to content

Commit 56bd2fd

Browse files
authored
Merge pull request #39259 from xenolinux/oc
Installing the OpenShift CLI by using the web console
2 parents 318cfea + 940cf60 commit 56bd2fd

7 files changed

+159
-0
lines changed

cli_reference/openshift_cli/getting-started-cli.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ You can install the OpenShift CLI (`oc`) either by downloading the binary or by
1616
// Installing the CLI by downloading the binary
1717
include::modules/cli-installing-cli.adoc[leveloffset=+2]
1818

19+
// Installing the CLI by using the web console
20+
include::modules/cli-installing-cli-web-console.adoc[leveloffset=+2]
21+
22+
// Installing the CLI on Linux by using the web console
23+
include::modules/cli-installing-cli-web-console-linux.adoc[leveloffset=+3]
24+
25+
// Installing the CLI on Windows by using the web console
26+
include::modules/cli-installing-cli-web-console-windows.adoc[leveloffset=+3]
27+
28+
// Installing the CLI on macOS by using the web console
29+
include::modules/cli-installing-cli-web-console-macos.adoc[leveloffset=+3]
30+
1931
ifndef::openshift-origin[]
2032
// Installing the CLI by using an RPM
2133
include::modules/cli-installing-cli-rpm.adoc[leveloffset=+2]

images/CLI-list.png

305 KB
Loading

images/click-question-mark.png

207 KB
Loading
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
ifeval::["{context}" == "updating-restricted-network-cluster"]
2+
:restricted:
3+
endif::[]
4+
5+
[id="cli-installing-cli-web-console-macos-linux_{context}"]
6+
= Installing the OpenShift CLI on Linux using the web console
7+
8+
You can install the OpenShift CLI (`oc`) binary on Linux by using the following procedure.
9+
10+
.Procedure
11+
12+
. From the web console, click *?*.
13+
+
14+
image::click-question-mark.png[]
15+
. Click *Command Line Tools*.
16+
+
17+
image::CLI-list.png[]
18+
. Select appropriate `oc` binary for your Linux platform, and then click *Download oc for Linux*.
19+
. Save the file.
20+
. Unpack the archive.
21+
+
22+
[source,terminal]
23+
----
24+
$ tar xvzf <file>
25+
----
26+
. Move the `oc` binary to a directory that is on your `PATH`.
27+
+
28+
To check your `PATH`, execute the following command:
29+
+
30+
[source,terminal]
31+
----
32+
$ echo $PATH
33+
----
34+
35+
After you install the OpenShift CLI, it is available using the `oc` command:
36+
37+
[source,terminal]
38+
----
39+
$ oc <command>
40+
----
41+
42+
ifeval::["{context}" == "updating-restricted-network-cluster"]
43+
:!restricted:
44+
endif::[]
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
ifeval::["{context}" == "updating-restricted-network-cluster"]
2+
:restricted:
3+
endif::[]
4+
5+
[id="cli-installing-cli-web-console-macos_{context}"]
6+
= Installing the OpenShift CLI on macOS using the web console
7+
ifeval::["{context}" == "updating-restricted-network-cluster"]
8+
:restricted:
9+
endif::[]
10+
11+
You can install the OpenShift CLI (`oc`) binary on macOS by using the following procedure.
12+
13+
.Procedure
14+
15+
. From the web console, click *?*.
16+
+
17+
image::click-question-mark.png[]
18+
. Click *Command Line Tools*.
19+
+
20+
image::CLI-list.png[]
21+
. Select the `oc` binary for macOS platform, and then click *Download oc for Mac for x86_64*.
22+
. Save the file.
23+
. Unpack and unzip the archive.
24+
. Move the `oc` binary to a directory on your PATH.
25+
+
26+
To check your `PATH`, open a terminal and execute the following command:
27+
+
28+
[source,terminal]
29+
----
30+
$ echo $PATH
31+
----
32+
33+
After you install the OpenShift CLI, it is available using the `oc` command:
34+
35+
[source,terminal]
36+
----
37+
$ oc <command>
38+
----
39+
40+
ifeval::["{context}" == "updating-restricted-network-cluster"]
41+
:!restricted:
42+
endif::[]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ifeval::["{context}" == "updating-restricted-network-cluster"]
2+
:restricted:
3+
endif::[]
4+
5+
[id="cli-installing-cli-web-console-macos-windows_{context}"]
6+
= Installing the OpenShift CLI on Windows using the web console
7+
8+
You can install the OpenShift CLI (`oc`) binary on Winndows by using the following procedure.
9+
10+
.Procedure
11+
12+
. From the web console, click *?*.
13+
+
14+
image::click-question-mark.png[]
15+
. Click *Command Line Tools*.
16+
+
17+
image::CLI-list.png[]
18+
. Select the `oc` binary for Windows platform, and then click *Download oc for Windows for x86_64*.
19+
. Save the file.
20+
. Unzip the archive with a ZIP program.
21+
. Move the `oc` binary to a directory that is on your `PATH`.
22+
+
23+
To check your `PATH`, open the command prompt and execute the following command:
24+
+
25+
[source,terminal]
26+
----
27+
C:\> path
28+
----
29+
30+
After you install the OpenShift CLI, it is available using the `oc` command:
31+
32+
[source,terminal]
33+
----
34+
C:\> oc <command>
35+
----
36+
37+
ifeval::["{context}" == "updating-restricted-network-cluster"]
38+
:!restricted:
39+
endif::[]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ifeval::["{context}" == "updating-restricted-network-cluster"]
2+
:restricted:
3+
endif::[]
4+
5+
[id="cli-installing-cli-web-console_{context}"]
6+
= Installing the OpenShift CLI by using the web console
7+
8+
You can install the OpenShift CLI (`oc`) to interact with {product-title} from a web console. You can install `oc` on Linux, Windows, or macOS.
9+
10+
[IMPORTANT]
11+
====
12+
If you installed an earlier version of `oc`, you cannot use it to complete all
13+
of the commands in {product-title} {product-version}. Download and
14+
install the new version of `oc`.
15+
ifdef::restricted[]
16+
If you are upgrading a cluster in a restricted network, install the `oc` version that you plan to upgrade to.
17+
endif::restricted[]
18+
====
19+
20+
ifeval::["{context}" == "updating-restricted-network-cluster"]
21+
:!restricted:
22+
endif::[]

0 commit comments

Comments
 (0)