2023-10-30 10:13:25 -04:00
|
|
|
:_mod-docs-content-type: ASSEMBLY
|
2019-03-18 10:23:14 -04:00
|
|
|
[id="cli-getting-started"]
|
2021-02-04 08:45:01 -07:00
|
|
|
= Getting started with the OpenShift CLI
|
2022-02-16 11:35:56 -05:00
|
|
|
include::_attributes/common-attributes.adoc[]
|
2025-09-03 10:31:45 +01:00
|
|
|
include::_attributes/attributes-openshift-dedicated.adoc[]
|
2019-03-11 20:59:48 -04:00
|
|
|
:context: cli-developer-commands
|
|
|
|
|
|
|
|
|
|
toc::[]
|
|
|
|
|
|
|
|
|
|
// About the CLI
|
|
|
|
|
include::modules/cli-about-cli.adoc[leveloffset=+1]
|
|
|
|
|
|
2021-02-04 08:45:01 -07:00
|
|
|
[id="installing-openshift-cli"]
|
|
|
|
|
== Installing the OpenShift CLI
|
2020-02-27 11:49:29 -05:00
|
|
|
|
|
|
|
|
You can install the OpenShift CLI (`oc`) either by downloading the binary or by using an RPM.
|
|
|
|
|
|
|
|
|
|
// Installing the CLI by downloading the binary
|
|
|
|
|
include::modules/cli-installing-cli.adoc[leveloffset=+2]
|
|
|
|
|
|
2021-11-25 15:09:46 +05:30
|
|
|
// Installing the CLI by using the web console
|
|
|
|
|
include::modules/cli-installing-cli-web-console.adoc[leveloffset=+2]
|
|
|
|
|
|
|
|
|
|
// Installing the CLI on Linux by using the web console
|
|
|
|
|
include::modules/cli-installing-cli-web-console-linux.adoc[leveloffset=+3]
|
|
|
|
|
|
|
|
|
|
// Installing the CLI on Windows by using the web console
|
|
|
|
|
include::modules/cli-installing-cli-web-console-windows.adoc[leveloffset=+3]
|
|
|
|
|
|
|
|
|
|
// Installing the CLI on macOS by using the web console
|
|
|
|
|
include::modules/cli-installing-cli-web-console-macos.adoc[leveloffset=+3]
|
|
|
|
|
|
2020-03-28 12:02:37 +01:00
|
|
|
ifndef::openshift-origin[]
|
2020-02-27 11:49:29 -05:00
|
|
|
// Installing the CLI by using an RPM
|
|
|
|
|
include::modules/cli-installing-cli-rpm.adoc[leveloffset=+2]
|
2020-03-28 12:02:37 +01:00
|
|
|
endif::[]
|
2019-03-11 20:59:48 -04:00
|
|
|
|
2021-09-20 10:20:46 +02:00
|
|
|
// Installing the CLI by using Homebrew
|
|
|
|
|
include::modules/cli-installing-cli-brew.adoc[leveloffset=+2]
|
|
|
|
|
|
2019-03-11 20:59:48 -04:00
|
|
|
// Logging in to the CLI
|
|
|
|
|
include::modules/cli-logging-in.adoc[leveloffset=+1]
|
|
|
|
|
|
2023-07-03 10:35:34 -04:00
|
|
|
// Logging in to the CLI by using the web
|
|
|
|
|
include::modules/cli-logging-in-web.adoc[leveloffset=+1]
|
|
|
|
|
|
2019-03-11 20:59:48 -04:00
|
|
|
// Using the CLI
|
|
|
|
|
include::modules/cli-using-cli.adoc[leveloffset=+1]
|
|
|
|
|
|
|
|
|
|
// Getting help
|
|
|
|
|
include::modules/cli-getting-help.adoc[leveloffset=+1]
|
|
|
|
|
|
|
|
|
|
// Logging out of the CLI
|
|
|
|
|
include::modules/cli-logging-out.adoc[leveloffset=+1]
|