# kubectl

> The Kubernetes command-line tool

Source: https://talira.ai/catalog/kubectl-s0j8r2b4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [infrastructure / kubernetes / clients](https://talira.ai/categories/infrastructure/kubernetes/clients), [devops / deployment / kubernetes](https://talira.ai/categories/devops/deployment/kubernetes)
- Platforms: linux, macos, windows, cli[^3]
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^3]
- Plugins: yes[^5]
- Backed by: [Kubernetes SIG CLI](https://talira.ai/orgs/kubernetes-sig-cli.md), [Cloud Native Computing Foundation](https://talira.ai/orgs/cncf.md)
- Funding: non-profit[^6][^7]

kubectl is the command-line tool for talking to a [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) cluster's control plane through the Kubernetes API. It creates, applies, diffs, inspects and deletes resources from files or stdin, reads logs, runs commands in containers, copies files, port-forwards and attaches to running containers, and builds manifests with [Kustomize](https://talira.ai/catalog/kustomize-j8fs0rc6.md) (`kubectl apply -k`). It reads clusters and credentials from kubeconfig files (`~/.kube/config`, `KUBECONFIG` or `--kubeconfig`) and is extended with plugins: any executable named `kubectl-<name>` on the PATH becomes `kubectl <name>`, and the [Krew](https://talira.ai/catalog/krew-4db4cxjt.md) plugin manager installs them. It's developed by Kubernetes SIG CLI in the main Kubernetes repository, under Apache-2.0, for Linux, [macOS](https://talira.ai/catalog/macos-8swyggxb.md) and Windows.

## Links

- Website: https://kubernetes.io/docs/reference/kubectl/
- GitHub: https://github.com/kubernetes/kubectl
- Docs: https://kubernetes.io/docs/reference/kubectl/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/kubernetes-cli>[^1]

## Problems it solves

- deploy my YAML manifests to a Kubernetes cluster from the terminal
- see why a pod keeps crashing and read its logs
- open a shell inside a running container to debug it
- reach a service inside the cluster from my laptop without exposing it
- show what would change on the cluster before applying a manifest
- switch between several clusters and credentials from one machine
- script deployments and rollbacks in CI against the Kubernetes API
- copy a file out of a running container
- get resource details as JSON or YAML for scripts to parse
- add my own subcommands to the Kubernetes command line

## Features

- apply, create, get, describe, edit and delete resources
- kubectl diff before applying
- logs, exec, attach, cp and port-forward
- rollout status, history and undo
- built-in Kustomize (apply -k and kubectl kustomize)
- kubeconfig contexts for several clusters
- JSON, YAML, JSONPath and custom-column output
- plugins as kubectl-* executables, installable with Krew

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.48 out of 1.
Signals: backing 0.55, extensibility 0.40.

- backed by Kubernetes SIG CLI and Cloud Native Computing Foundation
- funding: non-profit
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [K9s](https://talira.ai/catalog/k9s-n03h698e.md): Kubernetes CLI to manage your clusters in style
- [Headlamp](https://talira.ai/catalog/headlamp-rr8ttjwp.md): An easy-to-use and extensible Kubernetes web UI
- [Lens](https://talira.ai/catalog/lens-qvy1q1f2.md): The IDE for everything but code
- [MCP Server Kubernetes](https://talira.ai/catalog/mcp-server-kubernetes-18vrr0nc.md): MCP server that lets AI assistants manage a Kubernetes cluster through kubectl and Helm

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/kubernetes/kubectl/blob/master/LICENSE (checked 19 Nov 2026)
[^3]: https://kubernetes.io/docs/tasks/tools/ (checked 19 Nov 2026)
[^4]: https://kubernetes.io/docs/reference/kubectl/ (checked 19 Nov 2026)
[^5]: https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/ (checked 19 Nov 2026)
[^6]: https://www.cncf.io/about/charter/ (checked 20 Nov 2026)
[^7]: https://www.cncf.io/ (checked 20 Nov 2026)
