gcx

Manage Grafana Cloud resources via a unified CLI for CRUD operations.

535|42|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/grafana/gcx --skill gcx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcx
Source: https://github.com/grafana/gcx/tree/main/claude-plugin/skills/gcx
Command: npx skills add https://github.com/grafana/gcx --skill gcx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

gcx provides a unified CLI to manage Grafana Cloud resources from your terminal, empowering developers to inspect, create, update, delete, and automate across Grafana dashboards, alerts, SLOs, data sources, and more with consistent commands.

Core Features & Use Cases

  • Discoverable command catalog with a stable verb model and built-in help to reduce guesswork.
  • CRUD-style resource management across dashboards, alerts, SLOs, metrics, logs, and other Grafana assets, plus context-aware workflows and scripted automation.
  • Use cases include incident investigation, GitOps-style dashboards, and bulk resource management across multiple environments.

Quick Start

Install gcx and run gcx help-tree --depth 1 to explore available commands before acting.

Frequently Asked Questions about gcx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Grafana Cloud resources from the CLI?

You can manage Grafana Cloud resources from the CLI by using a unified tool to inspect, create, update, delete, and query dashboards, alerts, and SLOs. It operates across Cloud, Enterprise, and OSS contexts with a consistent verb model.

Can I automate Grafana dashboards and alerts using a command line tool?

Yes, you can automate Grafana dashboards and alerts using a command line tool that supports scripted automation and GitOps-style workflows. It enables bulk resource management and CRUD operations across multiple environments.

What is the best way to inspect and update Grafana SLOs in bulk?

The best way to inspect and update Grafana SLOs in bulk is using a discover-first CLI workflow with a structured command catalog. It enforces safe mutation practices and context switching to streamline operations across environments.

Does this CLI tool work with Grafana Enterprise and OSS, or just Grafana Cloud?

This CLI tool works with Grafana Enterprise and OSS, as well as Grafana Cloud. It provides context-aware workflows to manage datasources, metrics, and logs consistently across all three deployment contexts.

How do I start exploring available commands for managing Grafana data sources?

To start exploring commands for managing Grafana data sources, run the help-tree command with a depth flag. This displays the discoverable command catalog, reducing guesswork before you perform any mutations.

Why should I use a unified CLI instead of individual APIs for Grafana resource management?

Using a unified CLI for Grafana resource management provides a stable verb model and built-in help, reducing guesswork. Unlike individual APIs, it enforces safe mutation practices and context switching across Cloud, Enterprise, and OSS environments.