// Module included in the following assemblies:
//
// * cli_reference/cli_manager/cli-manager-using.adoc

:_mod-docs-content-type: PROCEDURE
[id="cli-manager-updating-plugin_{context}"]
= Updating CLI plugins with the {cli-manager}

[role="_abstract"]
You can update a plugin that was installed for the OpenShift CLI (`oc`) with the {cli-manager} and Krew to keep your plugins current with the latest features.

.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 custom index has been added to Krew by the cluster administrator.
* The plugin updates have been added to the {cli-manager} by the cluster administrator.
* The plugin you are updating is already installed.

.Procedure

* To update a single plugin, run the following command:
+
[source,terminal]
----
$ oc krew upgrade <plugin_name>
----

* To update all plugins that were installed by Krew, run the following command:
+
[source,terminal]
----
$ oc krew upgrade
----
