Added --pluginUrl option to grafana-cli for local network plugin installation

This commit is contained in:
THIERRY SALLE
2017-09-15 20:34:08 +02:00
parent 442f625a4e
commit e978bfc368
5 changed files with 42 additions and 20 deletions

View File

@ -38,6 +38,12 @@ func main() {
Value: "https://grafana.com/api/plugins",
EnvVar: "GF_PLUGIN_REPO",
},
cli.StringFlag{
Name: "pluginUrl",
Usage: "Full url to the plugin zip file instead of downloading the plugin from grafana.com/api",
Value: "",
EnvVar: "GF_PLUGIN_URL",
},
cli.BoolFlag{
Name: "debug, d",
Usage: "enable debug logging",