# 使用 Homebrew 安装 osdctl

查看 osdctl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:osdctl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install osdctl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:osdctl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/osdctl>
- **版本:** 0.62.0
- **来源摘要:** CLI tool for managed OpenShift clusters
- **主页:** <https://github.com/openshift/osdctl>
- **仓库:** <https://github.com/openshift/osdctl>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/openshift/osdctl/archive/refs/tags/v0.62.0.tar.gz>
- **最后更新:** 2026-07-27T23:46:53+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- osdctl (cli)
- osdctl (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.62.0
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/openshift/osdctl
- 检测到的最新版本: v0.62.0 (当前)
## 项目历史与用法

osdctl is a Go CLI toolbox for OpenShift Dedicated and related managed OpenShift operations. The README frames it as a tool to reduce SRE toil, originally centered on AWS and aws-account-operator workflows and later expanded into cluster, account, service-log, RHOBS, environment, evidence, and troubleshooting commands.

### 项目历史

GitHub records openshift/osdctl as created on 2020-06-03. The README describes a build-and-release workflow using Go, make, GoReleaser, GitHub releases, a Homebrew tap, and generated command documentation after releases.

The command examples show the package expanding from AWS account custom-resource operations into a broader managed-cluster operations toolbox: account reset/status/list, IAM credential rotation, Hive ClusterDeployment inspection, cluster break-glass access, Dynatrace log gathering, service-log posting, OCM environment management, RHOBS commands, and evidence collection.

### 采用历史

Public adoption evidence is mainly internal-platform shaped: osdctl lives under the openshift GitHub organization, is installed from an OpenShift Online SRE tools Homebrew tap in the README, and its command set is full of Red Hat/OpenShift service-operation concepts. Homebrew core also packages it as a CLI tool for managed OpenShift clusters.

The release stream shows active operational packaging, with v0.59.0, v0.60.0, and v0.61.0 publishing Darwin and Linux tarballs plus checksum files. That pattern fits an SRE tool expected to be installed on operator workstations and automation hosts.

### 使用方式

SREs use osdctl to inspect and mutate account resources, generate AWS console URLs, rotate secrets, display operator metrics, manage multiple cluster login environments, perform break-glass access and cleanup, post service logs, query organizations, run etcd health checks, and collect evidence for feature testing.

The tool creates or reads configuration under ~/.config/osdctl and ~/.osdctl.yaml. Its env subcommands help operators maintain separate KUBECONFIG and OCM_CONFIG contexts for different clusters, which is a practical workflow detail for managed-cluster support.

### 为什么软件包爱好者会关心

osdctl is significant as an example of a large operational CLI whose package boundary is shaped by SRE workflows rather than by one public API. It collects many small runbook actions into one installable binary, which explains both its breadth and its frequent release cadence.

For package metadata, it is also a good reminder that some Homebrew formulas are not consumer developer tools; they are distribution channels for specialized operations software used by a specific platform team.

### 时间线

- 2020-06-03: GitHub repository created.
- 2026-05-18: v0.59.0 release published with multi-platform osdctl artifacts.
- 2026-06-01: v0.60.0 release published.
- 2026-06-26: v0.61.0 release published with Darwin and Linux tarballs plus sha256sum.txt.

### Related projects

- aws-account-operator is explicitly called out in the README as an early supported focus. osdctl also interacts with OpenShift Dedicated, OCM, Hive, Backplane, RHOBS, Dynatrace, and OpenShift/Kubernetes cluster APIs through its command set.

### 来源

- <https://api.github.com/repos/openshift/osdctl>
- <https://api.github.com/repos/openshift/osdctl/releases>
- <https://docs.redhat.com/en/documentation/openshift_dedicated/4/html-single/cli_tools/index>
- <https://formulae.brew.sh/formula/osdctl>
- <https://github.com/openshift/aws-account-operator>
- <https://github.com/openshift/osdctl>
- <https://raw.githubusercontent.com/openshift/osdctl/master/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

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.


## Configuration files

- Unix: ~/.config/osdctl, ~/.osdctl.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** osdctl
- **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:** head, stable


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [ocm](https://pkg.so/zh-hans/brew/ocm/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes, openshift.
- [kubernetes-cli](https://pkg.so/zh-hans/brew/kubernetes-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [k9s](https://pkg.so/zh-hans/brew/k9s/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [openshift-cli](https://pkg.so/zh-hans/brew/openshift-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes, openshift.
- [talosctl](https://pkg.so/zh-hans/brew/talosctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [cmctl](https://pkg.so/zh-hans/brew/cmctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [clusterctl](https://pkg.so/zh-hans/brew/clusterctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [rancher-cli](https://pkg.so/zh-hans/brew/rancher-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [k0sctl](https://pkg.so/zh-hans/brew/k0sctl/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, cluster, cluster-management.
- [flintrock](https://pkg.so/zh-hans/brew/flintrock/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, cluster, cluster-management.

## Combined YAML source

View the package source record on GitHub. [combined/osdctl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/osdctl.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
