{"id":13582090,"url":"https://github.com/platform9/grafanactl","last_synced_at":"2026-01-23T08:10:29.118Z","repository":{"id":57704043,"uuid":"230377480","full_name":"platform9/grafanactl","owner":"platform9","description":"Yet another Grafana CLI","archived":false,"fork":false,"pushed_at":"2020-02-11T20:47:40.000Z","size":112,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-06T11:45:43.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/platform9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-27T05:15:48.000Z","updated_at":"2024-08-14T18:36:47.000Z","dependencies_parsed_at":"2022-09-26T21:12:01.380Z","dependency_job_id":null,"html_url":"https://github.com/platform9/grafanactl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/platform9/grafanactl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform9%2Fgrafanactl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform9%2Fgrafanactl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform9%2Fgrafanactl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform9%2Fgrafanactl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/platform9","download_url":"https://codeload.github.com/platform9/grafanactl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platform9%2Fgrafanactl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28684015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:02:25.439Z","updated_at":"2026-01-23T08:10:29.103Z","avatar_url":"https://github.com/platform9.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Grafanactl\n\nGrafanactl is yet another CLI utility to interact with Grafana's APIs.\n\nThis specific tool was created for the purpose of syncing hand-crafted dashboards across multiple grafana instances, or organizations.\n\nThis tool is inspired by, and overlaps heavily in functionality with the following:\n\n- [overdrive3000/grafanactl](https://github.com/overdrive3000/grafanactl)\n- [retzkek/grafanactl](https://github.com/retzkek/grafanactl)\n- [grafana-tools/sdk](https://github.com/grafana-tools/sdk)\n\nWhile it was desirable to set this apart from the others with a unique name, `grafanactl` succinctly describes the abilities of this tool, as paralleled by the use of `\u003ctool\u003ectl` in many other projects.\n\n## Usage\n\nCurrent Command List\n\n```bash\n# Listing Dashboards\ngrafanactl dashboard search\n\n# Downloading dashboards\ngrafanactl dashboard download --all\ngrafanactl dashboard download --all -t dashboards\n\n# Uploading dashboards\ngrafanactl dashboard upload -f dashboards\n\n# List folders\ngrafanactl folder search\n```\n\n## Configuration\n\nGrafanactl supports a configuration file with the same input parameters as flags.\n\nMultiple definitions of the same configuration item will overwrite each other.\nThe following is the order of precedence for config locations.\n\n1. Flags set at runtime\n2. Environment Variables\n3. .grafanactl.yaml (current working dir)\n4. $HOME/.grafanactl.yaml\n\nIt's important to note that any configuration option can be set via any method.\n\n### Config File\n\nThe config file supports JSON, TOML, YAML, HCL, INI, envfile or Java properties formats. [1](https://github.com/spf13/viper#why-viper)\n\nHere is a sample yaml file:\n\n```yaml\napikey: DEFINITELYNOTYOURAPIKEY\nurl: https://grafana.your.domain\n```\n\n### Environment Variables\n\nEnvironment variables should be set with a `GS_` prefix. This is to avoid collission with other programs.\n\nExample:\n\n```bash\n# grafanactl.rc\nexport GRAFANA_APIKEY=DEFINITELYNOTYOURAPIKEY\nexport GRAFANA_URL=https://grafana.your.domain\n```\n\n### Flags\n\nAll flags can be discovered using --help on any of the subcommands.\n\nExample:\n\n```bash\n# grafanactl dashboard download --help\nDownload dashboards from a grafana instance\n\nUsage:\n  grafanactl dashboard download [flags]\n\nFlags:\n  -a, --all             Download all dashboards\n  -h, --help            help for download\n  -t, --target string   Target directory to save dashboard files. (default \".\")\n\nGlobal Flags:\n      --apikey string   A Grafana API Key\n      --config string   config file - default in order of precedence:\n                        - .grafanactl.yaml\n                        - $HOME/.grafanactl.yaml\n      --url string      The URL of a Grafana instance\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatform9%2Fgrafanactl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplatform9%2Fgrafanactl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatform9%2Fgrafanactl/lists"}