docs/sources/as-code/observability-as-code/grafana-cli/gcx/_index.md
gcx CLI{{< admonition type="caution" >}}
The Grafana CLI gcx is available in public preview for Grafana Cloud and Grafana OSS/Enterprise v12 or later. Older Grafana versions are not supported.
gcx is under development. Documentation and support is available based on the different tiers but might be limited to enablement, configuration, and some troubleshooting. No SLAs are provided.
Contact Grafana for support or to report any issues you encounter and help us improve this feature.
{{< /admonition >}}
gcx is a single CLI that allows you and your AI coding agent structured access to both Grafana (dashboards, folders, alert rules, data sources) and Grafana Cloud products such as Synthetic Monitoring, K6, Fleet Management, Incidents, or Adaptive Telemetry.
gcx ships with a suite of agent skills for common workflows like alert investigation, root-cause analysis, dashboard GitOps, SLO management, and observability setup. It natively supports agentic workflows and it's integrated with Grafana Assistant, combining the previously fragmented user experience into one single tool.
gcxAmong others, gcx provides the following benefits:
gcx can scaffold Go projects, import existing dashboards, lint with Rego rules, or live-reload development servers.gcx uses JSON/YAML output, structured errors, and predictable exit codes.gcx is compatible with any agentic coding tool.
gcx works across a wide range of Grafana product offerings. Feature availability depends on your Grafana deployment. For more information, refer to the Compatibility matrix.
grafanactlIf you want to migrate from grafanctl to gcx, search-and-replace grafanactl with gcx. For grafanactl resources serve, use gcx dev serve instead.
Refer to the gcx repository in GitHub for more information on: