# gcx を Homebrew, Nix でインストール

gcx のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gcx
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gcx
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gcx
```

  証拠: nixpkgs package indexes: pkgs/by-name/gc/gcx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:gcx
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.0.0
- **ソース概要:** CLI for managing Grafana Cloud resources
- **ホームページ:** <https://github.com/grafana/gcx>
- **リポジトリ:** <https://github.com/grafana/gcx>
- **最終更新:** 2026-07-29T16:04:59+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- gcx (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.0.0
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 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.

### ソース

- <https://github.com/grafana/gcx>
- <https://github.com/grafana/gcx/releases>
- <https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/gcx/>
- <https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/gcx/installation/>


## セキュリティノート

gcx に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## 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

- Unix: ~/.config/gcx/config.yaml, ./.gcx.yaml
## 他のパッケージマネージャ記録

- Nix - gcx: normalized package name match | nixpkgs package indexes: pkgs/by-name/gc/gcx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/gcx.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gcx.yml)


## ソース

- pkg.so package database
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
