Open PowerShell or Command Prompt and type oc version . 2. macOS Installation Chapter 2. Getting started with the OpenShift CLI
If you already have access to an OpenShift cluster, you can download the tool directly from the dashboard by clicking the "?" (Help) icon and selecting Command Line Tools . download openshift cli
For specific enterprise versions, you can log in to the Red Hat Customer Portal to find binaries tailored to your exact cluster version. Installation Guide by Platform 1. Windows Installation Open PowerShell or Command Prompt and type oc version
Move the oc.exe binary to a directory already in your system's PATH , such as C:\Windows , or add a custom folder to your Environment Variables. Getting started with the OpenShift CLI If you
The OpenShift Command Line Interface (CLI), commonly known as the oc tool, is the primary way developers and administrators interact with OpenShift clusters from their local terminal. While the web console is useful for visualization, the CLI is essential for scripting operations, working directly with source code, and managing projects when bandwidth is limited.
Navigate to the OpenShift Mirror and download the oc.zip file for Windows. Unzip the archive using a ZIP utility.