$ tar -xf <file>
kn
)
Installation options for the For more information on installing the |
kn
cli using the OpenShift Container Platform web consoleOnce the OpenShift Serverless Operator is installed, you will see a link to download the kn
cli for Linux, macOS and Windows from the Command Line Tools page in the OpenShift Container Platform web console.
You can access the Command Line Tools page by clicking the icon in the top right corner of the web console and selecting Command Line Tools in the drop down menu.
Download the kn
cli from the Command Line Tools page.
Unpack the archive:
$ tar -xf <file>
Move the kn
binary to a directory on your PATH.
Check your path:
$ echo $PATH
If you do not use RHEL or Fedora, ensure that libc is installed in a directory on your library path. If libc is not available, you might see the following error when you run cli commands:
|
kn
cli for Linux using an RPMFor Red Hat Enterprise Linux (RHEL), you can install kn
as an RPM if you have an active OpenShift Container Platform subscription on your Red Hat account.
Enter the command:
# subscription-manager register
Enter the command:
# subscription-manager refresh
Enter the command:
# subscription-manager attach --pool=<pool_id> (1)
1 | Pool ID for an active OpenShift Container Platform subscription |
Enter the command:
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-x86_64-rpms"
Enter the command:
# yum install openshift-serverless-clients
kn
cli for LinuxFor Linux distributions, you can download the cli directly as a tar.gz
archive.
Download the cli.
Unpack the archive:
$ tar -xf <file>
Move the kn
binary to a directory on your PATH.
Check your path:
$ echo $PATH
If you do not use RHEL or Fedora, ensure that libc is installed in a directory on your library path. If libc is not available, you might see the following error when you run cli commands:
|
kn
cli for macOSkn
for macOS is provided as a tar.gz
archive.
Download the cli.
Unpack and unzip the archive.
Move the kn
binary to a directory on your PATH.
Check your path:
$ echo $PATH
kn
cli for WindowsThe cli for Windows is provided as a zip archive.
Download the cli.
Unzip the archive with a ZIP program.
Move the kn
binary to a directory on your PATH.
To check your PATH, open the Command Prompt and enter:
C:\> path