2022-12-01 10:31:59 -05:00
// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/installing-cli-plugins-krew.adoc
2023-10-30 10:13:25 -04:00
:_mod-docs-content-type: PROCEDURE
2022-12-01 10:31:59 -05:00
[id="cli-krew-update-plugin_{context}"]
2023-01-16 16:03:42 -05:00
= Updating a CLI plugin with Krew
2022-12-01 10:31:59 -05:00
2023-01-16 16:03:42 -05:00
You can update a plugin that was installed for the OpenShift CLI (`oc`) with Krew.
2022-12-01 10:31:59 -05:00
.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.
2023-01-16 16:03:42 -05:00
* You have installed a plugin for the OpenShift CLI with Krew.
2022-12-01 10:31:59 -05:00
.Procedure
2023-01-16 16:03:42 -05:00
* To update a single plugin, run the following command:
2022-12-01 10:31:59 -05:00
+
[source,terminal]
----
$ oc krew upgrade <plugin_name>
----
2023-01-16 16:03:42 -05:00
* To update all plugins that were installed by Krew, run the following command:
2022-12-01 10:31:59 -05:00
+
[source,terminal]
----
$ oc krew upgrade
----