{"schemaVersion":"opencli.cli.v1","slug":"kubectl","name":"kubectl","shortName":"kubectl","binaryName":"kubectl","maker":{"slug":"kubernetes","name":"Kubernetes","type":"org","url":"https://kubernetes.io","officialPlatformMaker":true,"featuredBuilder":false},"category":"Containers / Infra","description":"The official CLI from Kubernetes. Kubernetes, cluster debugging, and deployments from the terminal. Supports structured output — good for scripts and agents.","tagline":"Kubernetes, cluster debugging, and deployments from the terminal.","install":{"packageManager":"brew","command":"brew install kubectl","packageName":null,"npmPackage":null,"brewFormula":"kubernetes-cli","brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"kubectl config current-context","signal":"Prints the active cluster context."},"quickStart":"kubectl config get-contexts && kubectl get pods -A","exampleWorkflow":["kubectl config get-contexts && kubectl get pods -A"],"agent":{"readiness":{"label":"Great for agents","score":75,"reasons":["Structured output is available for parsing.","Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Verify identity/account before running task commands.","Network access is required; avoid leaking secrets in logs.","Require confirmation before apply, delete, deploy, transfer, merge, or write actions."]},"packUrl":"https://opencli.co/cli/kubectl/agent.md","packMarkdown":"# OpenCLI Agent Pack: kubectl\n\nUse this when an AI agent needs to work with `kubectl`.\n\n## What this CLI is for\nThe official CLI from Kubernetes. Kubernetes, cluster debugging, and deployments from the terminal. Supports structured output — good for scripts and agents.\n\nBest for: kubernetes, cluster debugging, and deployments from the terminal.\n\n## Agent readiness\nGreat for agents (75/100)\n- Structured output is available for parsing.\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nbrew install kubectl\n```\n\n## Verify before real work\n```sh\nkubectl config current-context\n```\nExpected signal: Prints the active cluster context.\n\n## Safe starting commands\n```sh\nkubectl config current-context\n```\n\n```sh\nkubectl config get-contexts && kubectl get pods -A\n```\n\n## Guardrails for agents\n- Verify identity/account before running task commands.\n- Network access is required; avoid leaking secrets in logs.\n- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.\n\n## Suggested agent instruction\nYou may use kubectl (`kubectl`) for kubernetes, cluster debugging, and deployments from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"kubernetes, cluster debugging, and deployments from the terminal.","useThisIf":"You're on Kubernetes and want the official terminal experience.","skipIf":"You're not comfortable with a tool that can write to production.","whatHappensNext":"Run `kubectl config get-contexts && kubectl get pods -A` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":true,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":true,"requiresNetwork":true,"ciFriendly":true,"localFirst":false,"destructivePotential":"high"},"taxonomy":{"useCases":["Kubernetes","Cluster debugging","Deployments"],"aliases":["kubernetes cli"],"keywords":["pods deployments contexts"],"tags":["official","agent-friendly","json-output","ci-friendly"]},"links":{"website":"https://kubernetes.io/docs/reference/kubectl/","github":"https://github.com/kubernetes/kubectl","docs":"https://kubernetes.io/docs/reference/kubectl/","opencli":"https://opencli.co/cli/kubectl","markdown":"https://opencli.co/cli/kubectl/agent.md","json":"https://opencli.co/cli/kubectl.json"},"metrics":{"githubStars":3295,"latestRelease":"2026-06-02T21:17:24Z","license":"Apache-2.0","metricLabel":"Homebrew installs (30d)","metricValue":45621,"metricSource":"homebrew","metricAsOf":"2026-06-08T11:00:31.968Z"}}