mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/cli_manager/cli-manager-using.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="cli-manager-adding-plugins_{context}"]
|
|
= Installing CLI plugins with the {cli-manager}
|
|
|
|
[role="_abstract"]
|
|
You can install CLI plugins with the {cli-manager} to extend OpenShift CLI functionality in both connected and disconnected environments.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed Krew by following the link:https://krew.sigs.k8s.io/docs/user-guide/setup/install/[installation procedure] in the Krew documentation.
|
|
* The {cli-manager} is installed.
|
|
* The {cli-manager} custom index has been added to Krew.
|
|
* You are using {product-title} 4.17 or later.
|
|
|
|
.Procedure
|
|
|
|
. To list all available plugins, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc krew search
|
|
----
|
|
|
|
. To get information about a plugin, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc krew info <plugin_name>
|
|
----
|
|
|
|
. To install a plugin, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc krew install <plugin_name>
|
|
----
|
|
|
|
. To list all plugins that were installed by Krew, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc krew list
|
|
----
|