Installing tkn¶
Use the CLI tool to manage Red Hat OpenShift Pipelines from a terminal. The following section describes how to install the CLI tool on different platforms.
You can also find the URL to the latest binaries from the OpenShift Container Platform web console by clicking the ? icon in the upper-right corner and selecting Command Line Tools.
Note
Both the archives and the RPMs contain the following executables:
tkntkn-pacopc
Warning
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 the Red Hat OpenShift Pipelines CLI on Linux¶
For Linux distributions, you can download the CLI as a tar.gz archive.
Procedure
-
Download the relevant CLI tool.
-
Unpack the archive:
-
Add the location of your
tkn,tkn-pac, andopcfiles to yourPATHenvironment variable. -
To check your
PATH, run the following command:
Installing the Red Hat OpenShift Pipelines CLI on Linux using an RPM¶
For Red Hat Enterprise Linux (RHEL) version 8, you can install the Red Hat OpenShift Pipelines CLI 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
-
Register with Red Hat Subscription Manager:
-
Pull the latest subscription data:
-
List the available subscriptions:
-
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:
-
Enable the repositories required by Red Hat OpenShift Pipelines:
-
Linux (x86_64, amd64)
-
Linux on IBM Z(R) and IBM(R) LinuxONE (s390x)
-
Linux on IBM Power(R) (ppc64le)
-
Linux on ARM (aarch64, arm64)
-
-
Install the
openshift-pipelines-clientpackage:
After you install the CLI, it is available using the tkn command:
Installing the Red Hat OpenShift Pipelines CLI on Windows¶
For Windows, you can download the CLI as a zip archive.
Procedure
-
Download the CLI tool.
-
Extract the archive with a ZIP program.
-
Add the location of your
tkn,tkn-pac, andopcfiles to yourPATHenvironment variable. -
To check your
PATH, run the following command:
Installing the Red Hat OpenShift Pipelines CLI on macOS¶
For macOS, you can download the CLI as a tar.gz archive.
Procedure
-
Download the relevant CLI tool.
-
Unpack and extract the archive.
-
Add the location of your
tkn,tkn-pac, andopcfiles to yourPATHenvironment variable. -
To check your
PATH, run the following command: