macOS
brew install openshift-clilocal Homebrew formula metadata
sudo port install ocMacPorts ports tree · sysutils/oc/Portfile · source: api.github.com
brew
OpenShift command-line interface tools. Version 4.22.3 via Homebrew; verified 2026-07-07.
install
brew install openshift-clilocal Homebrew formula metadata
sudo port install ocMacPorts ports tree · sysutils/oc/Portfile · source: api.github.com
sudo zypper install ocopenSUSE Tumbleweed package metadata · oc · source: download.opensuse.org
choco install openshift-cliChocolatey community package catalog · openshift-cli · source: community.chocolatey.org
overview
OpenShift command-line interface tools
history
OpenShift CLI, installed as `oc`, is the command-line client for Red Hat OpenShift and OKD. It layers OpenShift-specific workflows on top of Kubernetes client behavior, so administrators and developers can manage clusters, projects, apps, builds, routes, and resources from a terminal.
OpenShift began as Red Hat's platform-as-a-service effort before the Kubernetes era. Red Hat's 10-year retrospective says OpenShift existed as a beta public cloud service before the OpenShift 1.0 launch at AWS re:Invent 2012, and later evolved toward hybrid cloud and Kubernetes-based infrastructure.
`oc` became the everyday terminal interface for that platform. The `openshift/oc` repository describes it as the OpenShift command line, part of OKD, built on top of `kubectl` while adding commands that simplify interaction with an OpenShift cluster.
Because OpenShift is sold, hosted, and supported across self-managed and managed environments, `oc` is distributed through Red Hat downloads, cluster web consoles, RPMs, Homebrew, and other package managers. Red Hat documentation explicitly treats it as the CLI for working directly with project source code, scripting operations, and managing projects when the web console is unavailable.
The OKD community documentation mirrors the same installation and usage flow, reflecting `oc`'s role across both the commercial OpenShift Container Platform and the community distribution.
Operators use `oc login`, `oc get`, `oc apply`, `oc adm`, and release/admin subcommands to inspect and change clusters. Developers use it to create projects, deploy applications, view logs, expose services, manage builds, and script OpenShift workflows.
The CLI reads the same kubeconfig-style credentials location used by Kubernetes clients, which lets it fit into the broader Kubernetes tooling ecosystem while still exposing OpenShift-specific commands such as project and app helpers.
`oc` is a good example of a package whose name, executable, and upstream identity differ: Homebrew packages `openshift-cli`, the executable is `oc`, and the GitHub repository is `openshift/oc`. It also shows how Kubernetes platform vendors package a superset CLI rather than asking users to compose many separate tools.
security posture
No matching local secret-handling manifest was found for openshift-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Credential-bearing paths to review before unattended agent runs.
${HOME}/.kube/config%USERPROFILE%\.kube\configexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
oc | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:openshift-cli |
|---|---|
| Version | 4.22.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/openshift-cli |
| Homepage | https://www.openshift.com/ |
| Repository | https://github.com/openshift/oc |
| Upstream docs | https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/cli_tools/openshift-cli-oc |
| License | Apache-2.0 |
| Source archive | https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.22.3/openshift-client-src.tar.gz |
| Last updated | 2026-07-07T21:33:04Z |
| Pulse | updated |
| Build dependencies | go |
| Uses from macOS | krb5 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | openshift-cli |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
openshift-cli
choco install openshift-clioc
sudo port install ococ 4.21.0-1.4
Openshift / OKD Client CLI
https://github.com/openshift/oc
sudo zypper install ococ-bash-completion 4.21.0-1.4
Bash Completion for oc
https://github.com/openshift/oc
sudo zypper install oc-bash-completionoc-fish-completion 4.21.0-1.4
Fish Completion for oc
https://github.com/openshift/oc
sudo zypper install oc-fish-completionoc-zsh-completion 4.21.0-1.4
Zsh Completion for oc
https://github.com/openshift/oc
sudo zypper install oc-zsh-completionsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.