Overview of the gcx CLI
maingcx is a unified CLI designed for both human users and AI coding agents to interact with Grafana and Grafana Cloud products. It provides structured access to Grafana resources (dashboards, folders, alert rules, data sources) and Grafana Cloud-specific services like Synthetic Monitoring, k6, Fleet Management, Incidents, and Adaptive Telemetry.
Key capabilities include:
- GitOps: Full round-trip fidelity for pulling resources to files and pushing them back.
- Observability as Code: Scaffolding Go projects, importing dashboards, linting with Rego, and live-reloading.
- Multi-environment management: Using named contexts to switch between environments (e.g., dev, staging, prod).
- AI Agent Integration: Native support for agentic workflows with auto-detection for tools like Claude Code, Copilot, and Cursor.