$linuxjunkies
>

krew(1)

krew is a package manager for kubectl plugins that helps discover, install, and manage kubectl extensions.

UbuntuDebianFedoraArch

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

FlagWhat it does
-h, --helpshow help for krew or a specific command
--verboseprint verbose output for debugging
--versionshow krew version information

Examples

list all available plugin repositories/indexes

krew index list

search the plugin index for plugins matching 'debug'

krew search debug

install the ctx plugin (context switcher) from the default index

krew install ctx

upgrade all installed plugins to their latest versions

krew upgrade

show all currently installed plugins

krew list

uninstall the ctx plugin

krew remove ctx

display detailed information about the ctx plugin

krew info ctx

update the plugin index to discover new plugins

krew update

Related commands