1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/cli-krew-install-plugin.adoc
2022-12-08 17:50:09 +00:00

44 lines
946 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 plug-in with Krew
You can install a plug-in 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 plug-ins, run the following command:
+
[source,terminal]
----
$ oc krew search
----
. To get information about a plug-in, run the following command:
+
[source,terminal]
----
$ oc krew info <plugin_name>
----
. To install a plug-in, run the following command:
+
[source,terminal]
----
$ oc krew install <plugin_name>
----
. To list all plug-ins that were installed by Krew, run the following command:
+
[source,terminal]
----
$ oc krew list
----