krew(1)
krew is a package manager for kubectl plugins that helps discover, install, and manage kubectl extensions.
Synopsis
krew [command] [flags]Description
krew is the kubectl plugin package manager, similar to apt or brew but specifically for kubectl plugins. It maintains a central index of available plugins and handles installation, upgrades, and removal.
Plugins extend kubectl functionality with custom commands. Once installed via krew, they become available as kubectl plugin-name. krew manages plugin versions and dependencies automatically.
Common options
| Flag | What it does |
|---|---|
-h, --help | show help for krew or a specific command |
--verbose | print verbose output for debugging |
--version | show krew version information |
Examples
list all available plugin repositories/indexes
krew index listsearch the plugin index for plugins matching 'debug'
krew search debuginstall the ctx plugin (context switcher) from the default index
krew install ctxupgrade all installed plugins to their latest versions
krew upgradeshow all currently installed plugins
krew listuninstall the ctx plugin
krew remove ctxdisplay detailed information about the ctx plugin
krew info ctxupdate the plugin index to discover new plugins
krew update