Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana/v12.4/as-code/observability-as-code/grafana-cli/install-grafana-cli.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana/v12.4/as-code/observability-as-code/grafana-cli/install-grafana-cli/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Install Grafana CLI
You can install the project using one of the following supported methods:
1. Download a pre-built binary
Download the latest binary for your platform from the Releases page.
Prebuilt binaries are available for a variety of operating systems and architectures. Visit the latest release page, and scroll down to the Assets section.
To install the binary, follow the instructions below:
- Download the archive for the desired operating system and architecture
- Extract the archive
- Move the executable to the desired directory
- Ensure this directory is included in the PATH environment variable
- Verify that you have execute permission on the file
2. Build from source
To build grafanactl from source you must:
- Have
gitinstalled - Have
gov1.24 (or greater) installed
go install github.com/grafana/grafanactl/cmd/grafanactl@latestWas this page helpful?
Related resources from Grafana Labs


