2019-03-11 20:59:48 -04:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2019-10-02 11:30:49 -04:00
|
|
|
// * cli_reference/openshift_cli/getting-started.adoc
|
2019-10-03 13:05:34 -04:00
|
|
|
// * installing/installing_aws_user_infra/installing-aws-user-infra.adoc
|
|
|
|
|
// * installing/installing_aws/installing-aws-customizations.adoc
|
|
|
|
|
// * installing/installing_aws/installing-aws-default.adoc
|
|
|
|
|
// * installing/installing_aws/installing-aws-network-customizations.adoc
|
|
|
|
|
// * installing/installing_azure/installing-azure-customizations.adoc
|
|
|
|
|
// * installing/installing_azure/installing-azure-default.adoc
|
|
|
|
|
// * installing/installing_bare_metal/installing-bare-metal.adoc
|
|
|
|
|
// * installing/installing_gcp/installing-gcp-customizations.adoc
|
|
|
|
|
// * installing/installing_gcp/installing-gcp-default.adoc
|
|
|
|
|
// * installing/installing_restricted_networks/installing-restricted-networks-preparations.adoc
|
|
|
|
|
// * installing/installing_vsphere/installing-vsphere.adoc
|
2019-07-15 19:47:25 -04:00
|
|
|
//
|
|
|
|
|
// AMQ docs link to this; do not change anchor
|
2019-03-11 20:59:48 -04:00
|
|
|
|
2019-05-13 08:55:00 +10:00
|
|
|
[id="cli-installing-cli_{context}"]
|
2019-03-11 20:59:48 -04:00
|
|
|
= Installing the CLI
|
|
|
|
|
|
|
|
|
|
You can install the CLI in order to interact with {product-title} using a
|
|
|
|
|
command-line interface.
|
|
|
|
|
|
2019-10-03 13:05:34 -04:00
|
|
|
[IMPORTANT]
|
|
|
|
|
====
|
|
|
|
|
If you installed an earlier version of `oc`, you cannot use it to complete all
|
2019-10-01 14:34:47 -04:00
|
|
|
of the commands in {product-title} {product-version}. Download and
|
2019-10-03 13:05:34 -04:00
|
|
|
install the new version of `oc`.
|
|
|
|
|
====
|
|
|
|
|
|
2019-03-11 20:59:48 -04:00
|
|
|
.Procedure
|
|
|
|
|
|
2019-06-04 11:03:08 -04:00
|
|
|
. From the link:https://cloud.redhat.com/openshift/install[OpenShift Infrastructure Providers] page,
|
|
|
|
|
click *Download Command-line Tools*.
|
2019-03-11 20:59:48 -04:00
|
|
|
. Click the folder for your operating system and architecture and click the
|
|
|
|
|
compressed file.
|
2019-10-03 13:05:34 -04:00
|
|
|
+
|
|
|
|
|
[NOTE]
|
|
|
|
|
====
|
|
|
|
|
You can install `oc` on Linux, Windows, or macOS.
|
|
|
|
|
====
|
2019-03-11 20:59:48 -04:00
|
|
|
. Save the file to your file system.
|
|
|
|
|
. Extract the compressed file.
|
|
|
|
|
. Place it in a directory that is on your `PATH`.
|
|
|
|
|
|
|
|
|
|
After you install the CLI, it is available using the `oc` command:
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
$ oc <command>
|
|
|
|
|
----
|