# 使用 Homebrew, Nix 安装 kubecm

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

## 安装

```sh
sudo av install brew:kubecm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kubecm
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kubecm
```

  证据: nixpkgs package indexes: pkgs/by-name/ku/kubecm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:kubecm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kubecm>
- **版本:** 0.35.1
- **来源摘要:** KubeConfig Manager
- **主页:** <https://kubecm.cloud>
- **仓库:** <https://github.com/sunny0826/kubecm>
- **上游文档:** <https://kubecm.cloud>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/sunny0826/kubecm/archive/refs/tags/v0.35.1.tar.gz>
- **最后更新:** 2026-07-27T21:58:43+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- kubecm (cli)
- kubecm (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

KubeCM is a kubeconfig manager for Kubernetes users who work with multiple clusters, namespaces, and context files. It wraps common kubeconfig chores such as listing, switching, merging, deleting, and distributing configurations behind an interactive CLI.

### 项目历史

The sunny0826/kubecm repository was created on 2019-07-23, and the first GitHub release, v0.0.1, was published on 2019-07-25. The README describes the project plainly as a way to manage kubeconfig more easily.

As the project evolved, its README highlighted context management, kubeconfig merging, interactive selection, a Git-backed registry for team distribution, multi-platform support, and shell completion.

### 采用历史

KubeCM sits in the same everyday-operator niche as kubectx and kubens: tools that reduce friction around switching clusters and namespaces. Its documented install paths include Homebrew, GitHub release binaries, and Krew as the kc plugin, which covers both standalone CLI users and kubectl-plugin users.

### 使用方式

The tool is centered on ~/.kube/config and related kubeconfig files. Users employ it to switch contexts, merge files, clean up entries, and share cluster access definitions through the registry feature.

Because kubeconfig files may contain sensitive access material, KubeCM is operationally adjacent to credentials even though it does not define a separate credentials store of its own.

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

KubeCM is package-nerd-significant as a quality-of-life CLI rather than as infrastructure plumbing. It packages a pile of tiny kubeconfig edits into one cross-platform binary that can be installed with Homebrew or Krew and carried across developer machines.

Its popularity reflects a Kubernetes reality: once users touch many clusters, the kubeconfig file becomes a database they need tools to query, merge, and prune.

### 时间线

- 2019-07-23: GitHub repository created.
- 2019-07-25: GitHub release v0.0.1 published.
- 2019-07-26: GitHub release v0.0.2 published.
- 2026-03-09: GitHub release v0.35.1 published.

### Related projects

- kubectl is the command-line client whose kubeconfig state KubeCM helps manage.
- Krew distributes KubeCM as the kc kubectl plugin.
- kubectx and kubens are adjacent context and namespace switching tools in the same operator-workflow space.

### 来源

- <https://api.github.com/repos/sunny0826/kubecm>
- <https://api.github.com/repos/sunny0826/kubecm/releases>
- <https://formulae.brew.sh/formula/kubecm>
- <https://github.com/sunny0826/kubecm>
- <https://krew.sigs.k8s.io/plugins/>
- <https://kubecm.cloud>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ~/.kube/config
## 源数据库详情

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

## 其他软件包管理器记录

- Nix - kubecm: normalized package name match | nixpkgs package indexes: pkgs/by-name/ku/kubecm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [kubectx](https://pkg.so/zh-hans/brew/kubectx/) - Shares pkgdb curated category or tags: cli, developer-tools, kubeconfig, kubectl, kubernetes.
- [kubelogin](https://pkg.so/zh-hans/brew/kubelogin/) - Shares pkgdb curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [krew](https://pkg.so/zh-hans/brew/krew/) - Shares pkgdb curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubecolor](https://pkg.so/zh-hans/brew/kubecolor/) - Shares pkgdb curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubergrunt](https://pkg.so/zh-hans/brew/kubergrunt/) - Shares pkgdb curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubectl-tree](https://pkg.so/zh-hans/brew/kubectl-tree/) - Shares pkgdb curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubeconform](https://pkg.so/zh-hans/brew/kubeconform/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [minikube](https://pkg.so/zh-hans/brew/minikube/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.

## Combined YAML source

View the package source record on GitHub. [combined/kubecm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kubecm.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
- external package-manager database matches
- cross-ecosystem install command graph
