macOS
brew install openshift-clilocal Homebrew formula metadata
sudo port install ocMacPorts ports tree · sysutils/oc/Portfile · 来源: api.github.com
安装
brew install openshift-clilocal Homebrew formula metadata
sudo port install ocMacPorts ports tree · sysutils/oc/Portfile · 来源: api.github.com
sudo zypper install ocopenSUSE Tumbleweed package metadata · oc · 来源: download.opensuse.org
choco install openshift-cliChocolatey community package catalog · openshift-cli · 来源: community.chocolatey.org
概览
OpenShift command-line interface tools
历史
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.
安全态势
没有找到 openshift-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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\config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
oc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:openshift-cli |
|---|---|
| 版本 | 4.22.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/openshift-cli |
| 主页 | https://www.openshift.com/ |
| 仓库 | https://github.com/openshift/oc |
| 上游文档 | https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/cli_tools/openshift-cli-oc |
| 许可证 | Apache-2.0 |
| 源码归档 | https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.22.5/openshift-client-src.tar.gz |
| 最后更新 | 2026-07-22T00:28:22Z |
| Pulse | updated |
| 构建依赖 | go |
| macOS 提供的库 | krb5 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-completion来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.