# 使用 Homebrew 安装 osdctl

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install osdctl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:osdctl
- **软件包管理器:** Homebrew
- **版本:** 0.62.0
- **来源摘要:** CLI tool for managed OpenShift clusters
- **主页:** <https://github.com/openshift/osdctl>
- **仓库:** <https://github.com/openshift/osdctl>
- **最后更新:** 2026-07-27T23:46:53+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- osdctl (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
