macOS
brew install openshift-clilocal Homebrew formula metadata
sudo port install ocMacPorts ports tree · sysutils/oc/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de openshift-cli pour les workflows d'agents IA.
installation
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
aperçu
OpenShift command-line interface tools
historique
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.
posture de sécurité
Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour openshift-cli. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des 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\configexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
oc | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
métadonnées d'installation
| Clé du paquet | brew:openshift-cli |
|---|---|
| Version | 4.22.5 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/openshift-cli |
| Page d'accueil | https://www.openshift.com/ |
| Dépôt | https://github.com/openshift/oc |
| Docs amont | https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/cli_tools/openshift-cli-oc |
| Licence | Apache-2.0 |
| Archive source | https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.22.5/openshift-client-src.tar.gz |
| Dernière mise à jour | 2026-07-22T00:28:22Z |
| Pulse | updated |
| Dépendances de compilation | go |
| Bibliothèques fournies par macOS | krb5 |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-completionpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.