This is a cache of https://docs.openshift.com/pipelines/1.10/tkn_cli/installing-tkn.html. It is a snapshot of the page at 2024-11-24T01:34:44.676+0000.
Installing tkn | Pipelines <strong>cli</strong> (tkn) reference | Red Hat OpenShift Pipelines 1.10
×

Use the cli tool to manage Red Hat OpenShift Pipelines from a terminal. You can install the cli tool on different platforms.

Both the archives and the RPMs contain the following executables:

  • tkn

  • tkn-pac

  • opc

Running Red Hat OpenShift Pipelines with the opc cli tool is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

Installing Red Hat OpenShift Pipelines cli (tkn) on Linux

For Linux distributions, you can download the cli as a tar.gz archive.

Procedure
  1. Download the relevant cli tool.

  2. Unpack the archive:

    $ tar xvzf <file>
  3. Place the tkn binary in a directory that is on your PATH.

  4. To check your PATH, run the following command:

    $ echo $PATH

Installing Red Hat OpenShift Pipelines cli (tkn) on Linux using an RPM

For Red Hat Enterprise Linux (RHEL) version 8, you can install the Red Hat OpenShift Pipelines cli (tkn) as an RPM.

Prerequisites
  • You have an active OpenShift Container Platform subscription on your Red Hat account.

  • You have root or sudo privileges on your local system.

Procedure
  1. Register with Red Hat Subscription Manager:

    # subscription-manager register
  2. Pull the latest subscription data:

    # subscription-manager refresh
  3. List the available subscriptions:

    # subscription-manager list --available --matches '*pipelines*'
  4. In the output for the previous command, find the pool ID for your OpenShift Container Platform subscription and attach the subscription to the registered system:

    # subscription-manager attach --pool=<pool_id>
  5. Enable the repositories required by Red Hat OpenShift Pipelines:

    • Linux (x86_64, amd64)

      # subscription-manager repos --enable="pipelines-1.10-for-rhel-8-x86_64-rpms"
    • Linux on IBM zSystems and IBM® LinuxONE (s390x)

      # subscription-manager repos --enable="pipelines-1.10-for-rhel-8-s390x-rpms"
    • Linux on IBM Power (ppc64le)

      # subscription-manager repos --enable="pipelines-1.10-for-rhel-8-ppc64le-rpms"
  6. Install the openshift-pipelines-client package:

    # yum install openshift-pipelines-client

After you install the cli, it is available using the tkn command:

$ tkn version

Installing the Red Hat OpenShift Pipelines cli (tkn) on Windows

For Windows, you can download the cli as a zip archive.

Procedure
  1. Download the cli.

  2. Extract the archive with a ZIP program.

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

  4. To check your PATH, open the command prompt and run the command:

    C:\> path

Installing the Red Hat OpenShift Pipelines cli (tkn) on macOS

For macOS, you can download the cli as a tar.gz archive.

Procedure
  1. Download the cli.

  2. Unpack and unzip the archive.

  3. Move the tkn binary to a directory on your PATH.

  4. To check your PATH, open a terminal window and run the following command:

    $ echo $PATH