Installing tkn

The following section describes how to install 'tkn' on different platforms.

Installing {op-title} on Linux

Binary installation

  1. Download the binary:

    # curl -L https://mirror.openshift.com/pub/openshift-v4/clients/tkn/latest/tkn-linux-amd64 -o /usr/local/bin/tkn
  2. Make the binary file executable:

    # chmod +x /usr/local/bin/odo

Tarball installation

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.

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.

Installing {op-title} on Windows

Binary installation

  1. Download the latest tkn.exe file.

  2. Add the location of your tkn.exe file to the PATH environment variable.

Installing {op-title} on macOS

Binary installation

  1. Download the binary :

    # curl -L https://mirror.openshift.com/pub/openshift-v4/clients/tkn/latest/tkn-linux-amd64 -o /usr/local/bin/tkn
    # curl -L https://mirror.openshift.com/pub/openshift-v4/clients/tkn/latest/tkn-darwin-amd64 -o /usr/local/bin/tkn
  2. Make the binary file executable:

# chmod +x /usr/local/bin/tkn

Tarball installation

  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.