macOS
brew install krewlocal Homebrew formula metadata
sudo port install krewMacPorts ports tree · sysutils/krew/Portfile · 来源: api.github.com
安装
brew install krewlocal Homebrew formula metadata
sudo port install krewMacPorts ports tree · sysutils/krew/Portfile · 来源: api.github.com
nix profile install nixpkgs#krewnixpkgs package indexes · pkgs/by-name/kr/krew/package.nix · 来源: api.github.com
sudo pacman -S krewArch Linux sync databases · krew · 来源: geo.mirror.pkgbuild.com
sudo apk add kubectl-krewAlpine Linux edge package indexes · kubectl-krew · 来源: dl-cdn.alpinelinux.org
scoop install main/krewScoop official bucket manifest trees · bucket/krew.json · 来源: api.github.com
winget install --id Kubernetes.krew -eWindows Package Manager source index · Kubernetes.krew · 来源: cdn.winget.microsoft.com
概览
Package manager for kubectl plugins
历史
Krew is the Kubernetes SIG CLI package manager for kubectl plugins. It is package-nerd significant because it brings a Homebrew-like install, search, update, and index model inside the kubectl plugin ecosystem.
The krew repository was created on 2018-07-12, and the first v0.1.0-alpha.1 release was published on 2018-07-30. The project README describes Krew as a package manager for kubectl plugins that helps users discover, install, and manage plugins, and helps plugin developers package and distribute plugins across platforms.
Krew exists because kubectl plugins are ordinary executables named with the kubectl- prefix and found on PATH. Kubernetes documentation describes that plugin mechanism and identifies Krew as a SIG CLI-maintained way to discover and install community plugins.
Krew became the de facto index-driven distribution channel for kubectl plugins because it solved discovery and update management for a plugin system that otherwise only specifies executable naming. The Kubernetes blog recommended Krew in 2020 for plugin installation experience and discoverability.
The Krew README says that more than 200 kubectl plugins were available through Krew in the documentation state used for this 2026-07-01 batch, showing a mature plugin catalog rather than a single-tool installer.
Users install Krew as the kubectl-krew plugin, add its bin directory to PATH, and then run commands such as kubectl krew search, kubectl krew install, kubectl krew list, kubectl krew update, and kubectl krew upgrade.
Plugin authors package manifests in the krew-index repository so their kubectl plugins can be discovered and installed consistently on Linux, macOS, and Windows.
Krew is a package manager distributed as a plugin for the tool whose plugins it manages, which makes it a neat recursive packaging artifact. It also codifies an index and lifecycle around kubectl plugins without changing kubectl's intentionally simple PATH-based plugin contract.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kubectl-krew | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/kubernetes-sigs/krew
安装元数据
| 软件包键 | brew:krew |
|---|---|
| 版本 | 0.5.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/krew |
| 主页 | https://sigs.k8s.io/krew/ |
| 仓库 | https://github.com/kubernetes-sigs/krew |
| 上游文档 | https://krew.sigs.k8s.io/docs |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/kubernetes-sigs/krew.git |
| 最后更新 | 2026-06-22T14:03:53-07:00 |
| Pulse | updated |
| 依赖 | kubernetes-cli |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | krew |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
krew
nix profile install nixpkgs#krewkrew 0.5.0-1
Find and install kubectl plugins
https://github.com/kubernetes-sigs/krew
sudo pacman -S krewkrew
sudo port install krewmain/krew
scoop install main/krewKubernetes.krew
winget install --id Kubernetes.krew -ekubectl-krew 0.5.0-r2
Find and install kubectl plugins
sudo apk add kubectl-krew来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.