Managing CLI plugins with Krew

    You can install a plugin for the OpenShift CLI (oc) with Krew.

    Prerequisites

    • You have installed Krew by following the in the Krew documentation.

    Procedure

    1. To list all available plugins, run the following command:

    2. To list all plugins that were installed by Krew, run the following command:

      1. $ oc krew list

    You can update a plugin that was installed for the OpenShift CLI () with Krew.

    Prerequisites

    • You have installed Krew by following the in the Krew documentation.

    • You have installed a plugin for the OpenShift CLI with Krew.

    Procedure

      1. $ oc krew upgrade

    You can uninstall a plugin that was installed for the OpenShift CLI () with Krew.

    Prerequisites

    • You have installed Krew by following the in the Krew documentation.

    • You have installed a plugin for the OpenShift CLI with Krew.

    Procedure

    • To uninstall a plugin, run the following command: