// 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
----
