Grafanactl CLI

grafana/grafanactl last check crawl paused · since 2026-09-28 16 releases
Notes

⚠️ Warning : grafanactl is being deprecated. We're bringing all our learnings and experience into the new, improved CLI tool gcx. This repository will be archived on June 1st, 2026.

Grafana CLI (grafanactl) is a command-line tool designed to simplify interaction with Grafana instances.

Release notes
0.0.1 · 1y+
view on github

Changelog

  • bb784d347089ecf3cf11d0e04ec18f47d0780e5e Fix path to cmd in goreleaser config
  • 857d3b5d10210d948c6418274e56c594a5722479 Fix goreleaser config to use correct IDs and binary names
  • b9287fed71e07642105fba31585754a27e5729c2 Remove ordered map usage in resources collection type
  • 260c9a888feeda9b888d183fe1fc94044e9a9af6 Go mod tidy
  • 0813664fb760b35e8938e7955a3d83bccd859e93 Fix dashboard get model handler pattern
  • cc867df8f95e38f3eccdf73375d8e44872fbaebd Tweak a few things
  • b4bef4b7d7706727d34b38c41c29074d39bdb332 Make linter happy
  • 81aba932e681b3794c4daa5fdcc931e0c4fd7c01 Remove server-specific resource parser
  • 0326c5e11cef5bb56b4f0c5f3f501de2903d3ec4 Move resource models to internal/resources
  • 705ec3853064fc9d2ce41d61787baafc2a60486b Initial import of grafanactl resources serve
  • e91744d3595d4ac9321091d8c7e7584afe11411b Add ability to push resources to the API (#32)
  • 683edeb0d840f52f9a7e16c1498ac92c604324cd Refactor get / pull commands and logger usage (#31)
  • 4864252747dde314ae15c3f1968e6ead43b77c82 Bump the go group with 2 updates
  • e6f48d20abf97b8e2d82cf18461507632370469b Resources/get (#30)
  • a2fb6a1cd85f6a532e551d3a4666a0b4c0af96b3 Support writing pulled resources to disk
  • bac5e8fa14b4b856e27a2aba9a7cc02e0a1ed3d3 Use logger implementation/interface from grafana-app-sdk
  • 631d16c68ab3003ae6de091a6a114b02f48d4976 Rebuild CLI reference
  • 4212d51e3e9e51da457ee8d273b3ab62750aa4ba Setup a logger
  • f14d4c9999d66a434764eceb3b3295d6afc587e6 Rebuild CLI reference
  • 5b8274c5d314d87b699044c7b4411aa10cf4ed72 Format results as a list, except if a single resource is being pulled
  • f8c7155a7320199d96db624affad13e95d68ecf9 Support formatting resources as normal and wide text
  • 47a21876910bf68959b391078760e4728cbc32d3 First pass at resource formatting in resources pull command
  • 950a7f14860e5ee07797a9f63d753078f477f3fa Rebuild config reference
  • fa54c207817cb05bdf48c3b9cc51ef093f4fc41e Fix how org/stack ID are validated in the config
  • a3b16f228d04523f0ea03a98cc235b7dd1ba4875 Remove *File TLS settings
  • adfa2f577468f0a10a175d83e34ae4a86c32c23e Add support for TLS-related configuration options
  • 4ba13bdffe2cc4f2dd7c8fc31f584d8eb0ba6ec8 Fix stack and or ID case to match existing config options
  • 7d1396f8427ae8f9187933eb775526276997220c Support more auth-related config settings and start iterating on config validation
  • bc9b993b9d0ad05a8f89e8c1f68796ac5b0d457f Print correct error when failing to pull resources
  • 2c138435d6a0bae322b82fe05afc9eba42c5a74a Make the generated cli reference deterministic
  • e05dcb0f5e55e42f77a1c8eb2b62439917559cf0 Have the CI check for drift in the generated configuration reference
  • 80334ac9a9a778b870a22e66426f315bf3bd92f4 Generate a reference for the configuration file
  • 88c6040475efe0ebbbce3976afe580d2b9cb9222 Add support for listing & pulling resources from the API (#16)
  • 782fa16e6e833757d6bc9ac1a466c59193b98989 Enable search in documentation
  • e76752cc0ac12d9b0ea1999f245eaba6e9c670f9 Add a github action step to prevent drift in the generated CLI reference
  • 1aee619e63e08b5f9a56b2288c02889ec81d2e53 Generate a reference for the CLI
  • 80d7b2827e1ae3da99edf09bb43dfac23e542232 Bump github.com/goccy/go-yaml from 1.16.0 to 1.17.0 in the go group
  • 24c445859bcc1dc0682a5e95c1700ea4e7d1d561 Add targets for building and installing and fix test env (#13)
  • 3ab7a76d5a83cbfbc3ac5e5c80a5b630605ddc78 Bootstrap an mkdocs-based documentation website (#12)
  • 554ab0148cb7f73991df7e47073674597722d20b Bump the go group with 2 updates (#10)
  • ad1c64fa64408e738c2bdd2d6c38d5a889517844 Bump actions/cache from 4.2.2 to 4.2.3 in the github-actions group (#11)
  • dbb1f30f667685bc3cb09bbd062f8efbb4321f26 Bootstrap some resource-related commands (#9)
  • 1e0cfe9d7f10af5910d5188cc0923d738def022b Add more tests for config-related commands
  • d9900038c6e1616814a3badf38cdf812ec5fc13c Config-related commands (#2)
  • fcb5e79e407de29b781e6de4c71365d7951ffc2e Add .github/CODEOWNERS file
  • 1ffdcc8e1c20c5f351bd9bd462be64772e717bd1 Cleanup golangci-lint configuration
  • 121b5689fef14c47f4b82ae9051670f724d1a5f3 Bump actions/cache from 4.2.0 to 4.2.2 in the github-actions group
  • 09457eead534be8e28f590568f80f4ddb45fc939 Bootstrap a Cobra-based CLI