macOS
brew install gcxlocal Homebrew formula metadata
安装
brew install gcxlocal Homebrew formula metadata
nix profile install nixpkgs#gcxnixpkgs package indexes · pkgs/by-name/gc/gcx/package.nix · 来源: api.github.com
概览
CLI for managing Grafana Cloud resources
历史
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.
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.
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.
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.
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.
安全态势
没有找到 gcx 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.config/gcx/config.yaml./.gcx.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gcx | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/grafana/gcx
安装元数据
| 软件包键 | brew:gcx |
|---|---|
| 版本 | 0.6.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gcx |
| 主页 | https://github.com/grafana/gcx |
| 仓库 | https://github.com/grafana/gcx |
| 上游文档 | https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/gcx |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/grafana/gcx/archive/refs/tags/v0.6.0.tar.gz |
| 最后更新 | 2026-07-24T16:01:44Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gcx |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gcx
nix profile install nixpkgs#gcx来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.