kubectl-cnpg
« Back to VersTracker
Description:
CloudNativePG plugin for kubectl
Type: Formula  |  Latest Version: 1.28.0@0  |  Tracked Since: Dec 25, 2025
Links: Homepage  |  @CloudNativePg  |  formulae.brew.sh
Category: Databases
Tags: kubernetes postgresql database operator devops
Install: brew install kubectl-cnpg
About:
kubectl-cnpg is a kubectl plugin that provides command-line management for CloudNativePG, an open-source operator for PostgreSQL databases on Kubernetes. It streamlines operational tasks like cluster initialization, fencing, and maintenance directly from the terminal. This tool is essential for DevOps teams managing stateful PostgreSQL workloads at scale.
Key Features:
  • Simplified management of CloudNativePG clusters
  • Built-in commands for switchover, fencing, and restarts
  • Seamless integration with kubectl and kubeconfig
  • Provides detailed cluster status and metrics
Use Cases:
  • Automating PostgreSQL cluster provisioning and updates
  • Performing disaster recovery operations on Kubernetes
  • Monitoring and debugging CloudNativePG instances
Alternatives:
  • psql – psql connects directly to the database, while kubectl-cnpg manages the Kubernetes operator and infrastructure layer.
  • prometheus-cli – Prometheus focuses on metrics collection, whereas kubectl-cnpg focuses on cluster lifecycle management.
Version History
Detected Version Rev Change Commit
Dec 25, 2025 8:22pm 1.28.0 0 VERSION_BUMP 2dcf2625
Sep 12, 2025 7:55am 0 VERSION_BUMP ec1ce37b
Dec 23, 2024 1:58pm 0 VERSION_BUMP e50ffdad
Sep 14, 2024 12:30pm 0 VERSION_BUMP 9d1eaaa9