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

  1. Get the tar.xz:

    curl -LO https://github.com/tektoncd/cli/releases/download/v0.2.2/tkn_0.2.2_Darwin_x86_64.tar.gz
  2. Extract tkn to your PATH:

    sudo tar xvzf tkn_0.2.2_Darwin_x86_64.tar.gz -C /usr/local/bin tkn

For Linux AMD64

  1. Get the tar.xz:

    curl -LO https://github.com/tektoncd/cli/releases/download/v0.2.2/tkn_0.2.2_Linux_x86_64.tar.gz
  2. Extract tkn to your PATH:

    sudo tar xvzf tkn_0.2.2_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn

For Linux ARM64

  1. Get the tar.xz:

    curl -LO https://github.com/tektoncd/cli/releases/download/v0.2.2/tkn_0.2.2_Linux_arm64.tar.gz
  2. Extract tkn to your PATH:

    sudo tar xvzf tkn_0.2.2_Linux_arm64.tar.gz -C /usr/local/bin/ tkn

Installing with Go language

You should have Go language installed and the go environment set up correctly.

To install Tekton CLI with Go, run:

GO111MODULE="on" go get github.com/tektoncd/cli@v0.2.2