-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Installing the OpenShift CLI by using the web console #39259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| ifeval::["{context}" == "updating-restricted-network-cluster"] | ||
| :restricted: | ||
| endif::[] | ||
|
|
||
| [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 xvzf <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::[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| ifeval::["{context}" == "updating-restricted-network-cluster"] | ||
| :restricted: | ||
| endif::[] | ||
|
|
||
| [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::[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| ifeval::["{context}" == "updating-restricted-network-cluster"] | ||
| :restricted: | ||
| endif::[] | ||
|
|
||
| [id="cli-installing-cli-web-console-macos-windows_{context}"] | ||
| = Installing the OpenShift CLI on Windows using the web console | ||
|
|
||
| You can install the OpenShift CLI (`oc`) binary on Winndows 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 Windows platform, and then click *Download oc for Windows for x86_64*. | ||
| . Save the file. | ||
| . Unzip the archive with a ZIP program. | ||
| . Move the `oc` binary to a directory that is on your `PATH`. | ||
| + | ||
| To check your `PATH`, open the command prompt and execute the following command: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| C:\> path | ||
| ---- | ||
|
|
||
| After you install the OpenShift CLI, it is available using the `oc` command: | ||
|
|
||
| [source,terminal] | ||
| ---- | ||
| C:\> oc <command> | ||
| ---- | ||
|
|
||
| ifeval::["{context}" == "updating-restricted-network-cluster"] | ||
| :!restricted: | ||
| endif::[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ifeval::["{context}" == "updating-restricted-network-cluster"] | ||
| :restricted: | ||
| endif::[] | ||
|
|
||
| [id="cli-installing-cli-web-console_{context}"] | ||
| = Installing the OpenShift CLI by using the web console | ||
|
|
||
| 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. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| If you installed an earlier version of `oc`, you cannot use it to complete all | ||
| of the commands in {product-title} {product-version}. Download and | ||
| install the new version of `oc`. | ||
| ifdef::restricted[] | ||
| If you are upgrading a cluster in a restricted network, install the `oc` version that you plan to upgrade to. | ||
| endif::restricted[] | ||
| ==== | ||
|
|
||
| ifeval::["{context}" == "updating-restricted-network-cluster"] | ||
| :!restricted: | ||
| endif::[] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.