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
tkn
to 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
tkn
to 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
tkn
to your PATH:sudo tar xvzf tkn_0.4.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
For Windows
-
Get the
.zip
file: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
tkn
to your path:
Expand-Archive -Path <sourcepath>/tkn_0.4.0_Windows_x86_64.zip -DestinationPath <destinationpath>