Automic VaultAutomic Vault

brew

Install gcx with Homebrew, Nix

CLI for managing Grafana Cloud resources. Version 0.6.0 via Homebrew; verified 2026-07-24. Also installable with nix: nix profile install nixpkgs#gcx.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gcx

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#gcx

nixpkgs package indexes · pkgs/by-name/gc/gcx/package.nix · source: api.github.com

overview

Package summary

CLI for managing Grafana Cloud resources

Commands and aliases

  • gcx

history

Project history and usage

gcx is Grafana Labs' command-line interface for structured access to Grafana dashboards, alerts, data sources, telemetry, and Grafana Cloud products. It is designed for both interactive terminal work and automation by coding agents.

Project history

Grafana opened the gcx repository in March 2026 and published its earliest currently listed GitHub release, v0.2.0, in April 2026. The project entered public preview as a successor path for users of the older grafanactl tool.

Adoption history

Grafana's official documentation identifies gcx as the recommended Grafana CLI and documents migration from the deprecated grafanactl command. Grafana distributes it through release archives, Go's module toolchain, an install script, and the official grafana/grafana Homebrew tap.

How it is used

Users create named contexts with gcx login, then query metrics, logs, traces, dashboards, alert rules, SLOs, and other Grafana resources. JSON and YAML output, predictable exit codes, resource pull and push commands, and bundled agent skills make the tool suitable for CI, GitOps, and agentic workflows.

Why package nerds care

gcx is notable as a young vendor CLI that deliberately unifies previously fragmented Grafana and Grafana Cloud workflows. Its Go binary, Homebrew distribution, structured output, environment-variable authentication, multi-context configuration, and explicit AI-agent support reflect contemporary CLI packaging and automation practice.

Timeline

  • 2026-03: Official GitHub repository created.
  • 2026-04: v0.2.0 published as the earliest currently listed GitHub release.
  • 2026: Grafana documents gcx as the recommended replacement path for grafanactl and marks it public preview.

Related projects

  • Grafana is the observability platform gcx manages.
  • grafanactl is the older Grafana CLI that official documentation now describes as deprecated.
  • Grafana Assistant supplies agent-oriented investigation capabilities exposed through gcx.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for gcx. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.config/gcx/config.yaml./.gcx.yaml

executables

Installed executables

CommandKindExposureNote
gcxcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-25
manager version0.6.0
manager updated2026-07-24
local dataok
upstreamcurrent
latest detectedv0.6.0

https://github.com/grafana/gcx

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:gcx
Version0.6.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gcx
Homepagehttps://github.com/grafana/gcx
Repositoryhttps://github.com/grafana/gcx
Upstream docshttps://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/gcx
LicenseApache-2.0
Source archivehttps://github.com/grafana/gcx/archive/refs/tags/v0.6.0.tar.gz
Last updated2026-07-24T16:01:44Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegcx
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

gcx

nix profile install nixpkgs#gcx
  • normalized package name match
  • Matched by: Gcx
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gc/gcx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment