mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
32 lines
2.1 KiB
Plaintext
32 lines
2.1 KiB
Plaintext
[id="installing-kn"]
|
|
= Installing the Knative CLI
|
|
include::_attributes/common-attributes.adoc[]
|
|
:context: installing-kn
|
|
|
|
toc::[]
|
|
|
|
The Knative (`kn`) CLI does not have its own login mechanism. To log in to the cluster, you must install the OpenShift CLI (`oc`) and use the `oc login` command. Installation options for the CLIs may vary depending on your operating system.
|
|
|
|
ifdef::openshift-enterprise[]
|
|
For more information on installing the OpenShift CLI (`oc`) for your operating system and logging in with `oc`, see the xref:../../cli_reference/openshift_cli/getting-started-cli.adoc#cli-getting-started[OpenShift CLI getting started] documentation.
|
|
endif::[]
|
|
// need to wait til CLI docs are added to OSD and ROSA for this link to work
|
|
// TODO: remove this conditional once this is available
|
|
|
|
{ServerlessProductName} cannot be installed using the Knative (`kn`) CLI. A cluster administrator must install the {ServerlessOperatorName} and set up the Knative components, as described in the xref:../../serverless/install/install-serverless-operator.adoc#install-serverless-operator[Installing the {ServerlessOperatorName}] documentation.
|
|
|
|
[IMPORTANT]
|
|
====
|
|
If you try to use an older version of the Knative (`kn`) CLI with a newer {ServerlessProductName} release, the API is not found and an error occurs.
|
|
|
|
For example, if you use the 1.23.0 release of the Knative (`kn`) CLI, which uses version 1.2, with the 1.24.0 {ServerlessProductName} release, which uses the 1.3 versions of the Knative Serving and Knative Eventing APIs, the CLI does not work because it continues to look for the outdated 1.2 API versions.
|
|
|
|
Ensure that you are using the latest Knative (`kn`) CLI version for your {ServerlessProductName} release to avoid issues.
|
|
====
|
|
|
|
include::modules/serverless-installing-cli-web-console.adoc[leveloffset=+1]
|
|
include::modules/serverless-installing-cli-linux-rpm-package-manager.adoc[leveloffset=+1]
|
|
include::modules/serverless-installing-cli-linux.adoc[leveloffset=+1]
|
|
include::modules/serverless-installing-cli-macos.adoc[leveloffset=+1]
|
|
include::modules/serverless-installing-cli-windows.adoc[leveloffset=+1]
|