# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.1.0/tektoncd-cli_0.1.0_Darwin_x86_64.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tektoncd-cli_0.1.0_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.1.0/tektoncd-cli_0.1.0_Linux_x86_64.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tektoncd-cli_0.1.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
# Get the tar.xz
curl -LO https://github.com/tektoncd/cli/releases/download/v0.1.0/tektoncd-cli_0.1.0_Linux_arm64.tar.gz
# Extract tkn to your PATH (e.g. /usr/local/bin)
sudo tar xvzf tektoncd-cli_0.1.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
If you have go installed GO111MODULE="on" go get github.com/tektoncd/cli@v0.1.0 is all you need!
Useful Commands
The following commands help you understand and effectively use Tekton CLI:
tkn help: Displays a list of the commands with helpful information.
tkn completion: Outputs a BASH completion script for tkn to allow command completion with Tab.