# 使用 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
- **版本:** 0.35.1
- **来源摘要:** KubeConfig Manager
- **主页:** <https://kubecm.cloud>
- **仓库:** <https://github.com/sunny0826/kubecm>
- **最后更新:** 2026-07-27T21:58:43+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kubecm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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
## 其他软件包管理器记录

- 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


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