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/v13.0/as-code/observability-as-code/grafana-cli/gcx.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana/v13.0/as-code/observability-as-code/grafana-cli/gcx/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
gcx CLI
Overview
gcx is the Grafana CLI that allows you and your AI coding agent to work with Grafana Cloud, Grafana Enterprise, and Grafana OSS.
gcx is designed to be used in common scenarios such as authentication against Grafana, query telemetry, inspect and manage resources, and automate observability workflows as code.
It’s also integrated with Grafana Assistant, combining the previously fragmented user experience into one single tool.
Get started
Was this page helpful?
Related resources from Grafana Labs


