You are looking at the documentation of a prior release. To read the documentation of the latest release, please visit here.

Install Stash kubectl Plugin

Stash provides a kubectl plugin to interact with Stash resources. You can download the pre-build binaries from stashed/cli releases and put it into one of your installation directory denoted by $PATH variable.

Here is a simple Linux command to install the latest 64-bit Linux binary directly into your /usr/local/bin directory:

# Linux amd 64-bit
wget -O kubectl-stash https://github.com/stashed/cli/releases/download/v0.10.0/kubectl-stash-linux-amd64 \
  && chmod +x kubectl-stash \
  && sudo mv kubectl-stash /usr/local/bin/

# Mac OSX 64-bit
wget -O kubectl-stash https://github.com/stashed/cli/releases/download/v0.10.0/kubectl-stash-darwin-amd64 \
  && chmod +x kubectl-stash \
  && sudo mv kubectl-stash /usr/local/bin/

If you prefer to install kubectl Stash cli from source code, make sure that your go development environment has been setup properly. Then, just run:

go get github.com/stashed/cli/...

Please note that this will install kubectl stash cli from master branch which might include breaking and/or undocumented changes.