Linux

Where Does Krew Store Kubectl Plugins?

Krew .krew home folder with installed plugins, index and receipts on Linux.

Last updated

Krew installs kubectl plugins into a .krew folder in your home directory, with the index, receipts and binaries organized beneath it. The bin subdirectory must sit on PATH for kubectl to discover plugins.

Plugins update independently of kubectl itself. Copy the folder to migrate the set, then upgrade in place for the index.

Where Krew stores this, by platform

Linux
~/.krew

Holds store with the plugin index, receipts per install, and bin with the plugin executables. Add ~/.krew/bin to PATH for kubectl plugin discovery. Copy the folder to move plugins; reinstall ones with platform binaries on architecture changes.

Frequently asked questions

kubectl cannot find my krew plugin. Why?

The bin folder above is missing from PATH. Export it in your shell rc and rehash.

How do I update all krew plugins?

Run kubectl krew upgrade to refresh the index and every install under the folder above.

Notice an outdated path? Let us know.