Skip to content

Instantly share code, notes, and snippets.

@schnatterer
Last active March 13, 2026 11:40
Show Gist options
  • Select an option

  • Save schnatterer/411998f482d97a02bc706618bccd9176 to your computer and use it in GitHub Desktop.

Select an option

Save schnatterer/411998f482d97a02bc706618bccd9176 to your computer and use it in GitHub Desktop.
kubectl krew list plugins with version and URL
for f in ~/.krew/receipts/*.yaml; do
plugin=$(basename "$f" .yaml)
version=$(awk -F': ' '/^ version:/ {print $2}' "$f")
homepage=$(awk -F': ' '/^ homepage:/ {print $2}' "$f")
printf "%s\t%s\t%s\n" "$plugin" "$version" "$homepage"
done | column -t -s $'\t'
@schnatterer
Copy link
Author

Exemplary output of script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment