Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Introduction to the Grafana CLI
Grafana command-line tools are designed to simplify interaction with Grafana instances. You can authenticate, manage multiple environments, and perform administrative tasks through the Grafana REST API, all from the terminal. Whether you’re automating workflows in CI/CD pipelines or switching between staging and production environments, the Grafana CLI tool provides a flexible and efficient way to manage your Grafana setup as code.
gcx works across all environments for Grafana OSS, Enterprise, and Cloud. Use gcx to work with AI agents.
Explore
Was this page helpful?
Related resources from Grafana Labs


