# README
grafctl
Manage grafana via the CLI
Installation
Binary
For installation instructions from binaries please visit the Releases Page.
Go
$ go get diogogmt/grafctl/cmd
Homebrew
TODO
Usage
$ grafctl -h
USAGE
grafctl [flags] <subcommand>
SUBCOMMANDS
dash Manage grafana dashboards
backup Backup grafana dashboards and datasources
import Import grafana dashboards and datasources
FLAGS
-key ... grafana server API key
-url ... grafana server API URL
-verbose false log verbose output
USAGE
grafctl dash
SUBCOMMANDS
ls List grafana dashboards
inspect Inspect grafana dashboard
sync sync grafana dashboards
Examples
# backup grafana
$ grafctl -url {{grafana.url}} -key {{api-key}} backup
# restore grafana
$ grafctl -url {{grafana.url}} -key {{api-key}} import ./backup.json.gz
# list dashboards
$ grafctl -url {{grafana.url}} -key {{api-key}} dash ls
Contributing
Makefile
Usage:
build builds grafctl
install installs grafctl
imports runs goimports
lint runs golint
test runs go test
vet runs go vet
staticcheck runs staticcheck
vendor updates vendored dependencies
help prints this help message