Work with the backend
Develop backend components for a Grafana plugin in Go. The following commands are frequently used during backend plugin development:
Update the Go SDK
To keep the Grafana plugin SDK for Go up to date:
go get -u github.com/grafana/grafana-plugin-sdk-go
go mod tidy
Build plugin binaries
Build backend plugin binaries for Linux, Windows and Darwin:
Option | Description | Example |
---|---|---|
build:[arch] | Builds a binary for a specific architecture. | mage -v build:Linux |
List available Mage targets
List all available Mage targets for additional commands:
mage -l