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

  1. 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
  2. Extract the compressed file:

    $ sudo tar xvzf tkn_0.8.0_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
  3. Place it in a directory that is on your PATH

For Linux AMD64

  1. 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
  2. Extract the compressed file:

    $ sudo tar xvzf tkn_0.8.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
  3. Place it in a directory that is on your PATH

For Linux ARM64

  1. Download the compressed file:

    $ curl -LO https://github.com/tektoncd/cli/releases/download/v0.8.0/tkn_0.8.0_Linux_arm64.tar.gz
  2. Extract the compressed file:

    $ sudo tar xvzf tkn_0.8.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
  3. Place it in a directory that is on your PATH

For Windows

  1. 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
  2. Extract the compressed file tkn.exe to your PATH:

    Expand-Archive -Path <sourcepath>/tkn_0.8.0_Windows_x86_64.zip -DestinationPath <destinationpath>