Skip to content

kubectl

OfficialAgent-readyInfraContainers / Infra

Kubernetes, cluster debugging, and deployments from the terminal.

The official CLI from Kubernetes. Kubernetes, cluster debugging, and deployments from the terminal. Supports structured output — good for scripts and agents.

Task fit

kubernetes, cluster debugging, and deployments from the terminal.

Lane

Work with Kubernetes, Terraform, containers, and ops tooling with more confidence.

Operator brief

Use kubectl for kubernetes, cluster debugging, and deployments from the terminal.

Run `kubectl config get-contexts && kubectl get pods -A` and see what comes back.

Repository family

Kubernetes

First trust check

kubectl prints the active cluster context.

Safe first loop

Install, verify, then run one real command.

Infra inspection loop

Install command

$ brew install kubectl

Operator pack

Copy or export the working notes for this CLI before handing it to an agent.

Verify

$ kubectl config current-context

kubectl prints the active cluster context.

First real command

$ kubectl config get-contexts && kubectl get pods -A

First steps

  1. 01Install kubectl.
  2. 02Run `kubectl config current-context` first.
  3. 03Start with `kubectl config get-contexts && kubectl get pods -A`.
  4. 04Authenticate kubectl before asking the agent to do real work.

When to use / hold off when

Best for

kubernetes, cluster debugging, and deployments from the terminal.

Use this when

You're on Kubernetes and want the official terminal experience.

Hold off when

You're not comfortable with a tool that can write to production.

Trust and constraints

trusted99/100
OfficialInstall readyTrustedCaution
JSON outputYes
Non-interactiveYes
CI-friendlyYes

Why operators pick it

  • kubectl fits infra well, especially for kubernetes, cluster debugging, and deployments from the terminal.
  • It is the official CLI from Kubernetes.
  • Good for scripts and agents.

Constraints

  • Sign in before real work.
  • Needs network access.
  • Start with read-only or dry-run commands.

Repository context

Other CLIs in this family

This is the only CLI surfaced from this family right now.

Facts and links

Install withbrew
Homebrew installs (30d)64.2K
GitHub stars3.2K
LicenseApache-2.0
UpdatedMar 20, 2026