Installing the CLI
In order to interact with Tekton from a terminal, you need to install the Tekton CLI (tkn).
Installing from binary
For macOS X
-
Get the
tar.gz:curl -LO https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Darwin_x86_64.tar.gz
-
Extract
tknto your PATH:sudo tar xvzf tkn_0.4.0_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
For Linux AMD64
-
Get the
tar.gz:curl -LO https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Linux_x86_64.tar.gz
-
Extract
tknto your PATH:sudo tar xvzf tkn_0.4.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
For Linux ARM64
-
Get the
tar.gz:curl -LO https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Linux_arm64.tar.gz
-
Extract
tknto your PATH:sudo tar xvzf tkn_0.4.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
For Windows
-
Get the
.zipfile:PS C:\Users\Admin\Downloads> curl -Uri https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Windows_x86_64.zip -OutFile tkn_0.4.0_Windows_x86_64.zip
-
Extract
tknto your path:
Expand-Archive -Path <sourcepath>/tkn_0.4.0_Windows_x86_64.zip -DestinationPath <destinationpath>