Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, zypper 安装 kubectl-cnpg

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install kubectl-cnpg

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add kubectl-cnpg

Alpine Linux edge package indexes · kubectl-cnpg · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#kubectl-cnpg

nixpkgs package indexes · pkgs/by-name/ku/kubectl-cnpg/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install kubectl-cnpg

openSUSE Tumbleweed package metadata · kubectl-cnpg · 来源: download.opensuse.org

概览

软件包摘要

CloudNativePG plugin for kubectl

命令和别名

  • kubectl-cnpg
  • kubectl_complete-cnpg

历史

项目历史与用法

kubectl-cnpg is the kubectl plugin shipped by the CloudNativePG project for managing PostgreSQL clusters on Kubernetes. The plugin is part of the main CloudNativePG repository rather than a separate utility repository.

项目历史

The CloudNativePG GitHub repository was created on 2022-03-10. The project describes CloudNativePG as a platform for managing PostgreSQL databases in Kubernetes across the operational lifecycle, and its repository topics include `kubectl-plugin`, `operator`, `postgresql`, and high-availability concepts.

The kubectl plugin became one of the operator's user-facing control surfaces: the official plugin documentation covers installation scripts, Debian and RPM packages, AUR, Krew, Homebrew, supported architectures, completion, and command usage.

采用历史

The plugin's adoption follows CloudNativePG adoption rather than an independent CLI culture. The package appears in Homebrew, APK, Nix, and zypper, and the official docs name Homebrew and Krew as supported install paths for workstation users.

The repository metadata observed on 2026-07-01 showed more than 8000 GitHub stars for CloudNativePG, which makes kubectl-cnpg a plugin attached to a prominent Kubernetes database operator rather than a tiny standalone addon.

使用方式

After installation, users run commands as `kubectl cnpg COMMAND [ARGS...]`. The official documentation emphasizes management tasks such as generating installation manifests and interacting with CloudNativePG-managed database clusters.

The plugin uses the normal kubectl configuration path through `~/.kube/config`, so it fits existing Kubernetes authentication and context workflows rather than defining a separate credentials store.

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

kubectl-cnpg is interesting as a packaged operator companion: the binary is distributed across OS package systems even though its value is tied to a cluster-side controller. It shows how serious Kubernetes operators often grow their own kubectl plugin for operational ergonomics.

时间线

  • 2022-03-10: CloudNativePG repository created.
  • 2025-05-08: CloudNativePG release v1.29.1 published.
  • 2026-06-29: CloudNativePG release v1.30.0 published, with plugin package examples in the documentation using v1.30.0 assets.

Related projects

  • Related projects include Kubernetes, kubectl, Krew, PostgreSQL, and the CloudNativePG operator. The package is not a general PostgreSQL client; it is an operational frontend for CloudNativePG resources.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.kube/config

可执行文件

已安装的可执行文件

命令类型暴露范围备注
kubectl-cnpgcli全局可执行文件
kubectl_complete-cnpgcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.30.0
管理器更新时间2026-06-29
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/cloudnative-pg/cloudnative-pg

安装元数据

软件包元数据

软件包键brew:kubectl-cnpg
版本1.30.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/kubectl-cnpg
主页https://cloudnative-pg.io/
仓库https://github.com/cloudnative-pg/cloudnative-pg
上游文档https://cloudnative-pg.io/docs/devel/kubectl-plugin
许可证Apache-2.0
源码归档https://github.com/cloudnative-pg/cloudnative-pg.git
最后更新2026-06-29T18:38:45Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namekubectl-cnpg
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

kubectl-cnpg

nix profile install nixpkgs#kubectl-cnpg
  • normalized package name match
  • 匹配方式:Kubectl Cnpg
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ku/kubectl-cnpg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

kubectl-cnpg 1.29.0-r2

kubectl plugin for cloudnative-pg

https://github.com/cloudnative-pg/cloudnative-pg

sudo apk add kubectl-cnpg
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: kubectl-cnpg
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kubectl Cnpg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kubectl-cnpg from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
zypper95%

kubectl-cnpg 1.29.1-1.1

Manage PostgreSQL clusters built using CloudNativePG

https://github.com/cloudnative-pg/cloudnative-pg

sudo zypper install kubectl-cnpg
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: kubectl-cnpg
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kubectl Cnpg
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: kubectl-cnpg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

kubectl-cnpg-bash-completion 1.29.1-1.1

Bash Completion for kubectl-cnpg

https://github.com/cloudnative-pg/cloudnative-pg

sudo zypper install kubectl-cnpg-bash-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: kubectl-cnpg
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kubectl Cnpg
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: kubectl-cnpg-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

kubectl-cnpg-fish-completion 1.29.1-1.1

Fish Completion for kubectl-cnpg

https://github.com/cloudnative-pg/cloudnative-pg

sudo zypper install kubectl-cnpg-fish-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: kubectl-cnpg
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kubectl Cnpg
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: kubectl-cnpg-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

kubectl-cnpg-zsh-completion 1.29.1-1.1

Zsh Completion for kubectl-cnpg

https://github.com/cloudnative-pg/cloudnative-pg

sudo zypper install kubectl-cnpg-zsh-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: kubectl-cnpg
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Kubectl Cnpg
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: kubectl-cnpg-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment