# Krew

> Package manager for kubectl plugins: discover, install, and manage plugins from a central index, similar to apt, dnf, or brew.

Stars: 7.0k · Language: Go · License: Apache-2.0 · Categories: Dev Tools

- Repository: https://github.com/kubernetes-sigs/krew
- Website: https://krew.sigs.k8s.io
- Page: https://www.trmn.sh/tools/krew

## Overview

Krew is a package manager for kubectl plugins. It lets users discover, install, and manage kubectl plugins on their machine, in a way similar to apt, dnf, or Homebrew. The README states that over 200 kubectl plugins are currently available through Krew, with a browsable list on the project website.

For kubectl users, Krew provides a consistent way to find, install, and manage plugins instead of fetching them by hand. For plugin developers, it helps package and distribute plugins across multiple platforms and makes them discoverable. Plugin installation and upgrade issues are tracked in the separate krew-index repository, while issues with Krew itself are filed in the main repository.

Krew is aimed at Kubernetes users, operators, and plugin authors who extend kubectl. Installation instructions, a Quickstart, a User Guide, and a Developer Guide are hosted at krew.sigs.k8s.io. The repository also includes contributor docs on the plugin lifecycle (how Krew installs and upgrades plugins and itself) and on releasing Krew. The project is maintained under Kubernetes SIG CLI.

## Alternatives

- [Popeye](https://www.trmn.sh/tools/popeye.md): Read-only scanner that lints live Kubernetes clusters for misconfigurations, unused resources, and over/under allocation, with console, JSON, and HTML reports. (Go, 6.5k stars)
- [Docker CLI](https://www.trmn.sh/tools/docker-cli.md): Source repository for the Docker command-line client, written in Go and built with docker buildx bake, with cross-platform and glibc/musl build targets. (Go, 6.1k stars)
- [scc](https://www.trmn.sh/tools/scc.md): Code counter written in Go that reports lines of code, comments, complexity, ULOC and COCOMO estimates across many languages, with multiple output formats. (Go, 8.9k stars)
- [freeze](https://www.trmn.sh/tools/freeze.md): Generate PNG, SVG, and WebP images of code and terminal output with syntax highlighting and customizable styling. (Go, 4.9k stars)
- [reviewdog](https://www.trmn.sh/tools/reviewdog.md): Parses linter output and posts findings in changed lines as review comments on GitHub, GitLab, and Bitbucket, or filters lint results by diff locally. (Go, 9.7k stars)

---

Canonical: https://www.trmn.sh/tools/krew
