An independent, unofficial open-source CLI for managing Grafana instances, dashboards, data sources, alerts, and access with scriptable, agent-safe workflows.
# Save a named connection profilegrafana login# Confirm the authenticated usergrafana user current -o json# Find production dashboardsgrafana dashboard list --query "production" -o json# Query Prometheus through Grafanagrafana datasource query <prometheus-uid> --expr 'up' \ --query-type instant -o jsonEverything, from one binary
Built for humans at the keyboard and coding agents alike.
Dashboards & folders
Search, inspect, import, export, version, restore, and organize dashboards, folders, permissions, and library elements.
Datasources & queries
Manage datasources and run LogQL or PromQL through Grafana's proxy with relative or absolute time ranges.
Unified alerting
Work with alert rules, contact points, notification policies, mute timings, templates, and silences.
Access & automation
Manage organizations, users, teams, service accounts, and service account tokens from one CLI.
Profiles & authentication
Connect with a service account token or basic auth, save named profiles, and override credentials per command or environment.
Agent-safe workflows
Use JSON or YAML output with --read-only, --no-input, and --quiet for predictable automation and safer exploration.
Ready in one command
Follow the installation guide, authenticate, and start querying. No runtime, no dependencies.