Skip to content

Commit

Permalink
Update the installation instruction to also run krew update.
Browse files Browse the repository at this point in the history
For a fresh install, run krew update to initialize the local plugin index as part of the installation process to avoid the `plugin index is not initialized` error for first time user.
  • Loading branch information
tony-yang committed Dec 10, 2019
1 parent ce716e9 commit 3b2a4d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ Check out the list of [kubectl plugins available on krew][list] or just run
set -x; cd "$(mktemp -d)" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/download/v0.3.3/krew.{tar.gz,yaml}" &&
tar zxvf krew.tar.gz &&
./krew-"$(uname | tr '[:upper:]' '[:lower:]')_amd64" install \
--manifest=krew.yaml --archive=krew.tar.gz
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_amd64" &&
"$KREW" install --manifest=krew.yaml --archive=krew.tar.gz &&
"$KREW" update
)
```
3. Add `$HOME/.krew/bin` directory to your PATH environment variable. To do
Expand Down

0 comments on commit 3b2a4d5

Please sign in to comment.