grafana-cli
Grafana plugin and administration manager
TLDR
Install plugin
$ grafana-cli plugins install [plugin-id]
List installed plugins$ grafana-cli plugins ls
Update all installed plugins$ grafana-cli plugins update-all
Update plugin$ grafana-cli plugins update [plugin-id]
Remove plugin$ grafana-cli plugins remove [plugin-id]
List available plugins in the remote repository$ grafana-cli plugins list-remote
Reset the admin password$ grafana-cli admin reset-admin-password [newpassword]
SYNOPSIS
grafana-cli [global-options] command subcommand [args]
DESCRIPTION
grafana-cli manages Grafana plugins and administration tasks. It installs, updates, and removes visualization plugins and data sources from the Grafana plugin repository.The tool handles plugin lifecycle management independently of the Grafana server. It also provides admin commands for password reset and database migration.
PARAMETERS
--config FILE
Use an alternate grafana.ini configuration file.--homepath DIR
Grafana home directory used to locate config and plugin paths.--pluginsDir DIR
Override the plugin install directory.--pluginUrl URL
Install a plugin from a custom URL (zip) instead of the plugin repository.--repo URL
Use a different plugin repository.--insecure
Skip TLS verification when downloading plugins.-d, --debug
Enable debug output.-v, --version
Show the CLI version.--help
Display help information.
COMMANDS
plugins install ID [VERSION]
Install a plugin, optionally pinning to a specific version.plugins ls
List installed plugins.plugins update ID
Update a single plugin to the latest compatible version.plugins update-all
Update every installed plugin.plugins remove ID
Remove an installed plugin.plugins list-remote
List all plugins available in the configured repository.plugins list-versions ID
List available versions for a given plugin.admin reset-admin-password PASSWORD
Reset the built-in admin account password.admin data-migration encrypt-datasource-passwords
Migrate plaintext data-source passwords to the secureJsonData field.
CAVEATS
Requires appropriate permissions. May need Grafana restart. Plugin compatibility varies.
HISTORY
grafana-cli was developed alongside Grafana to provide command-line management of the visualization platform.
