Installing the CLI
In order to interact with Tekton from a terminal, you need to install the Tekton CLI (tkn
).
Tarball Installation
For macOS X
-
Download the compressed file:
$ curl -LO https://github.com/tektoncd/cli/releases/download/v0.8.0/tkn_0.8.0_Darwin_x86_64.tar.gz
-
Extract the compressed file:
$ sudo tar xvzf tkn_0.8.0_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
-
Place it in a directory that is on your
PATH
For Linux AMD64
-
Download the compressed file:
$ curl -LO https://github.com/tektoncd/cli/releases/download/v0.8.0/tkn_0.8.0_Linux_x86_64.tar.gz
-
Extract the compressed file:
$ sudo tar xvzf tkn_0.8.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
-
Place it in a directory that is on your
PATH
For Linux ARM64
-
Download the compressed file:
$ curl -LO https://github.com/tektoncd/cli/releases/download/v0.8.0/tkn_0.8.0_Linux_arm64.tar.gz
-
Extract the compressed file:
$ sudo tar xvzf tkn_0.8.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
-
Place it in a directory that is on your
PATH
For Windows
-
Download the zip file:
C:\Users\Admin\Downloads> curl -Uri https://github.com/tektoncd/cli/releases/download/v0.8.0/tkn_0.8.0_Windows_x86_64.zip -OutFile tkn_0.8.0_Windows_x86_64.zip
-
Extract the compressed file
tkn.exe
to yourPATH
:Expand-Archive -Path <sourcepath>/tkn_0.8.0_Windows_x86_64.zip -DestinationPath <destinationpath>