# Install grafanactl with Homebrew, Nix

CLI to interact with Grafana. Version 0.1.10 via Homebrew; verified 2026-04-27.

## Install

```sh
sudo av install brew:grafanactl
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install grafanactl
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#grafanactl
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gr/grafanactl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:grafanactl
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/grafanactl>
- **Version:** 0.1.10
- **Source summary:** CLI to interact with Grafana
- **Homepage:** <https://grafana.github.io/grafanactl/>
- **Repository:** <https://github.com/grafana/grafanactl>
- **Upstream docs:** <https://grafana.github.io/grafanactl>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/grafana/grafanactl/archive/refs/tags/v0.1.10.tar.gz>
- **Last updated:** 2026-04-27T09:42:16Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- grafanactl (cli)
- grafanactl (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.1.10
- Package-manager updated: 2026-04-27
- Local data: ok
- Upstream repository: https://github.com/grafana/grafanactl
- Upstream latest detected: v0.1.10 (current)
## Project history and usage

grafanactl is a Grafana Labs command-line tool for managing Grafana resources and environments through Grafana APIs. It belongs to the observability-as-code layer around Grafana rather than to the Grafana server itself.

### Project history

The Grafana documentation presents grafanactl as a CLI for authentication, multiple environments, and administrative/resource workflows through the Grafana REST API. The repository README describes it as public-preview software used by Grafana Labs while still under active development.

By 2026 the repository README pointed users toward gcx as the successor CLI and said the grafanactl repository would be archived on June 1, 2026. That makes grafanactl a transitional package in the Grafana CLI lineage.

### Adoption history

grafanactl adoption is tied to teams treating Grafana configuration as code: backing up resources, restoring resources, serving local resource definitions, and switching contexts between Grafana instances. Its Homebrew package gives macOS users a simple binary install for that workflow.

### How it is used

Users configure contexts, authenticate to Grafana, and run resource commands such as pulling resources to YAML or serving resources locally for preview and migration workflows.

### Why package nerds care

grafanactl is significant as a small, purpose-built companion CLI: it packages Grafana API automation separately from the large Grafana server package, which keeps scripted resource management available in shells and CI jobs.

### Timeline

- 2026-04-27: GitHub release page listed v0.1.10.
- 2026-06-01: Repository README named this date for archival in favor of gcx.

### Related projects

- Grafana is the server and API target.
- gcx is the successor CLI named by the Grafana repository.
- Grafana App SDK resources are part of the ecosystem around resource management.

### Sources

- <https://github.com/grafana/grafanactl>
- <https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/grafanacli-workflows/>
- <https://grafana.com/docs/grafana/latest/as-code/observability-as-code/grafana-cli/grafanactl/>
- <https://grafana.github.io/grafanactl/reference/cli/grafanactl/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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: $XDG_CONFIG_HOME/grafanactl/config.yaml, ~/.config/grafanactl/config.yaml

## Credential files

- Unix: $XDG_CONFIG_HOME/grafanactl/config.yaml, ~/.config/grafanactl/config.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** grafanactl
- **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:** head, stable

## Other Package-Manager Records

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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [sentry-cli](https://www.automicvault.com/pkg/brew/sentry-cli/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [grafana-alloy](https://www.automicvault.com/pkg/brew/grafana-alloy/) - Shares av.db curated category or tags: cli, developer-tools, grafana, observability.
- [alp](https://www.automicvault.com/pkg/brew/alp/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [grafana](https://www.automicvault.com/pkg/brew/grafana/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [humanlog](https://www.automicvault.com/pkg/brew/humanlog/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [lttng-ust](https://www.automicvault.com/pkg/brew/lttng-ust/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [mongocli](https://www.automicvault.com/pkg/brew/mongocli/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [newrelic-cli](https://www.automicvault.com/pkg/brew/newrelic-cli/) - Shares av.db curated category or tags: cli, developer-tools, observability.
- [seam](https://www.automicvault.com/pkg/brew/seam/) - Local metadata places this package in an adjacent workflow. Shared terms: api, api-client, cli, client, developer.

## Combined YAML source

View the package source record on GitHub. [combined/grafanactl.yml](https://github.com/automic-vault/db/blob/main/combined/grafanactl.yml)


## Sources

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