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 {oc-first} to interact with {product-title} clusters 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
ifndef::openshift-rosa,openshift-rosa-hcp[]
{product-title} {product-version}.
endif::openshift-rosa,openshift-rosa-hcp[]
ifdef::openshift-rosa,openshift-rosa-hcp[]
{product-title}.
endif::openshift-rosa,openshift-rosa-hcp[]
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::[]
