This is a cache of https://docs.openshift.com/container-platform/4.17/cli_reference/cli_manager/cli-manager-using.html. It is a snapshot of the page at 2024-11-24T06:25:16.677+0000.
Using the OpenShift <strong>cli</strong> Manager - OpenShift <strong>cli</strong> Manager | <strong>cli</strong> tools | OpenShift Container Platform 4.17
×

After the cluster administrator sets up and configures the cli Manager Operator, users can use it to install, update, and uninstall cli plugins.

Using the cli Manager Operator to install and manage plugins for the OpenShift cli is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

Installing cli plugins with the cli Manager Operator

You can install cli plugins using the cli Manager Operator.

Prerequisites
  • You have installed Krew by following the installation procedure in the Krew documentation.

  • The cli Manager is installed.

  • The cli Manager custom index has been added to Krew.

  • You are using OpenShift Container Platform 4.17 or later.

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

    $ oc krew search
  2. To get information about a plugin, run the following command:

    $ oc krew info <plugin_name>
  3. To install a plugin, run the following command:

    $ oc krew install <plugin_name>
  4. To list all plugins that were installed by Krew, run the following command:

    $ oc krew list

Updating cli plugins with the cli Manager Operator

You can update a plugin that was installed for the OpenShift cli (oc) with the cli Manager Operator.

Prerequisites
  • You have installed Krew by following the installation procedure in the Krew documentation.

  • The cli Manager Operator is installed.

  • The custom index has been added to Krew by the cluster administrator.

  • The plugin updates have been added to the cli Manager Operator by the cluster administrator.

  • The plugin you are updating is already installed.

Procedure
  • To update a single plugin, run the following command:

    $ oc krew upgrade <plugin_name>
  • To update all plugins that were installed by Krew, run the following command:

    $ oc krew upgrade

Uninstalling a cli plugin with the cli Manager Operator

You can uninstall a plugin that was installed for the OpenShift cli (oc) with the cli Manager Operator.

Prerequisites
  • You have installed Krew by following the installation procedure in the Krew documentation.

  • You have installed a plugin for the OpenShift cli with the cli Manager Operator.

Procedure
  • To uninstall a plugin, run the following command:

    $ oc krew uninstall <plugin_name>