← Back to tools
kubectl
The operational CLI every infra-aware agent eventually needs.
Open SourceVerified: 2026-04-06
kubectl remains the canonical CLI for Kubernetes operations. In AI-assisted engineering, it is the tool that turns a coding agent into something useful for deployment verification, incident response, and live cluster inspection.
Best for
Infra and platform teams extending coding agents into live operations.
Review summary
The moment your agent touches production Kubernetes, `kubectl` becomes part of the real stack.
Pros
- Industry standard
- Powerful operational coverage
- Script-friendly
Cons
- High blast radius if used carelessly
- Steep learning curve
Categories
DevOps & Deployment
Install
Official Kubernetes docs currently recommend Homebrew on macOS and direct binary install on Linux.
macOS with Homebrew:
brew install kubectl
Linux official binary install:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Quickstart
The official quick reference starts with:
kubectl version --client
kubectl get pods --field-selector=status.phase=Running
kubectl get node --selector='!node-role.kubernetes.io/control-plane'