Forrest logo
back to the grafana-cli tool

grafana-cli:tldr:368ea

grafana-cli: Install, update, or remove specific plugins.
$ grafana-cli plugins ${select} ${plugin_id1 plugin_id2 ---}
try on your machine

This command is used in the Grafana command-line interface (CLI) to manage plugins. Let's break down the different parts of the command:

  • grafana-cli: This is the command used to interact with the Grafana CLI.
  • plugins: This is a subcommand within the Grafana CLI used to manage plugins.
  • ${select}: This is a placeholder indicating that you need to select an action to perform on the plugins.
  • ${plugin_id1 plugin_id2 ---}: This is a placeholder indicating that you need to specify one or more plugin IDs to perform the action on. Replace plugin_id1, plugin_id2, and so on with the actual IDs of the plugins you want to target.

Depending on the value you provide for ${select}, you can perform different actions on the specified plugins. Some possible actions include installing, upgrading, removing, or listing plugins.

For example, to install a plugin with the ID my-plugin, you would use the command:

grafana-cli plugins install my-plugin

Or, to upgrade multiple plugins with IDs plugin1, plugin2, and plugin3, you would use the command:

grafana-cli plugins upgrade plugin1 plugin2 plugin3

The exact set of available actions and their usage may vary depending on the installed version of Grafana and the plugins you have. It's recommended to refer to the official documentation or help documentation for the specific version of Grafana you are using for further details on available actions and command structure.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the grafana-cli tool