1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/cli-installing-cli.adoc
Vadim Rutkovsky f079e903bb Update OKD documentation
Change summary:
* _topic_map: include odo in openshift-origin distro
* _topic_map: include Helm in openshift-origin
* _topic_map: include Monitoring in openshift-origin
* modules/whats-new-features: update links to OLM and OperatorHub
* _topic_map: show Installation and Update for OKD
* installing/install_config/installing-customizing: hide FIPS section for OKD
* odc-creating-applications-using-developer-perspective: hide Serverless operator for OKD
* _topic_map: enable Release notes for OKD
* migration/migrating_3_4/planning-migration-3-to-4: hide Service Mesh reference for OKD
* Show FCOS in OKD documentation
* Use op-system-base and op-system-base-full to set OS base name
* modules/cli-installing-cli: use mirror.openshift.com to download oc on OKD
* cli_reference/openshift_cli/getting-started-cli: don't show "Installing the CLI by using an RPM" for OKD
* Hide RHEL workers from OKD docs
* _topic_map: hide IBM Z install for OKD
2020-03-30 22:12:09 +02:00

66 lines
2.6 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/getting-started.adoc
// * installing/installing_aws/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_aws/installing-aws-private.adoc
// * installing/installing_aws/installing-aws-vpc.adoc
// * installing/installing_azure/installing-azure-customizations.adoc
// * installing/installing_azure/installing-azure-default.adoc
// * installing/installing_azure/installing-azure-private.adoc
// * installing/installing_azure/installing-azure-vnet.adoc
// * installing/installing_azure/installing-azure-user-infra.adoc
// * installing/installing_bare_metal/installing-bare-metal.adoc
// * installing/installing_gcp/installing-gcp-customizations.adoc
// * installing/installing_gcp/installing-gcp-private.adoc
// * installing/installing_gcp/installing-gcp-default.adoc
// * installing/installing_gcp/installing-gcp-vpc.adoc
// * installing/installing_gcp/installing-gcp-user-infra.adoc
// * installing/install_config/installing-restricted-networks-preparations.adoc
// * installing/installing_vsphere/installing-vsphere.adoc
// * installing/installing_ibm_z/installing-ibm-z.adoc
// * openshift_images/samples-operator-alt-registry.adoc
//
// AMQ docs link to this; do not change anchor
[id="cli-installing-cli_{context}"]
= Installing the CLI by downloading the binary
You can install the CLI in order to interact with {product-title} using a
command-line interface.
[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`.
====
.Procedure
ifdef::openshift-origin[]
. Navigate to https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/ and choose the folder for your operating system
. Download `oc.tar.gz`
endif::[]
ifndef::openshift-origin[]
. From the link:https://cloud.redhat.com/openshift/install[Infrastructure Provider] page on the {cloud-redhat-com} site, navigate to the page for your installation type and
click *Download Command-line Tools*.
endif::[]
. Click the folder for your operating system and architecture and click the
compressed file.
+
[NOTE]
====
You can install `oc` on Linux, Windows, or macOS.
====
. 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>
----