1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/cli-krew-install-plugin.adoc
2023-01-17 20:34:15 +00:00

44 lines
940 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/installing-cli-plugins-krew.adoc
:_content-type: PROCEDURE
[id="cli-krew-install-plugin_{context}"]
= Installing a CLI plugin with Krew
You can install a plugin for the OpenShift CLI (`oc`) with Krew.
.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.
.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
----