{"id":16495581,"url":"https://github.com/joelpurra/github-data-cli","last_synced_at":"2026-04-20T13:06:08.227Z","repository":{"id":41148669,"uuid":"95082522","full_name":"joelpurra/github-data-cli","owner":"joelpurra","description":"A small set of functionality to retrieve repository data from github, in JSON format.","archived":false,"fork":false,"pushed_at":"2020-02-04T08:06:21.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T11:20:45.807Z","etag":null,"topics":["api","cli","github","json","shell"],"latest_commit_sha":null,"homepage":"https://joelpurra.com/projects/github-data-cli/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joelpurra.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":"2017-06-22T06:32:01.000Z","updated_at":"2024-01-04T15:48:52.000Z","dependencies_parsed_at":"2022-09-09T06:50:09.983Z","dependency_job_id":null,"html_url":"https://github.com/joelpurra/github-data-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joelpurra/github-data-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelpurra%2Fgithub-data-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelpurra%2Fgithub-data-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelpurra%2Fgithub-data-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelpurra%2Fgithub-data-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelpurra","download_url":"https://codeload.github.com/joelpurra/github-data-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelpurra%2Fgithub-data-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269286788,"owners_count":24391519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","cli","github","json","shell"],"created_at":"2024-10-11T14:31:03.567Z","updated_at":"2026-04-20T13:06:03.191Z","avatar_url":"https://github.com/joelpurra.png","language":"Shell","readme":"# [github-data-cli](https://joelpurra.com/projects/github-data-cli/): `ghd`\n\nA small set of functionality to retrieve repository data from github, in JSON format.\n\n\n\n## Installation\n\nNo installation required, as you can execute `ghd` using the full file path from anywhere. For convenience symlink `ghd` to your `PATH`.\n\n```bash\nln -s \"$PWD/ghd\" \"$HOME/bin/ghd\"\n```\n\n\n\n## Usage\n\nMake sure you have loaded relevant github credentials by setting the following environment variables. Get your own credentials by [registering a new github oauth application](https://github.com/settings/applications/new). The values for application name, homepage url, application description, and authorization callback url do not matter for `ghd`; pick your own values.\n\n\n- `GITHUB_CLIENT_ID`\n- `GITHUB_CLIENT_SECRET`\n\nAuthenticate yourself. If enabled, you will be asked for a 2-factor authentication code.\n\n```bash\nghd authenticate \u003cusername\u003e\n```\n\nNow execute the main command.\n\n```bash\nghd\n```\n\n```text\nUsage: ghd \u003caction\u003e\nSource folder: .../github-data-cli\nActions available in the source folder:\n  authenticate\n  contributors\n  diff-contributors\n  diff-help\n  diff-stargazers\n  diff\n  help\n  repositories-help\n  repositories-json\n  repositories-list\n  repositories\n  star\n  stargazers\n  unstar\n```\n\n\n\n## Notes\n\n- These scripts grew \"organically\", starting from nothing. The first need was a function for shared credentials, then pagination, then caching, then then then. Don't judge the code style too harshly, unless you have concrete suggestions in the form of a pull request ;)\n\n\n\n---\n\n\n\nCopyright \u0026copy; 2016, 2017, 2018 [Joel Purra](https://joelpurra.com/). Released under [GNU General Public License version 3.0 (GPL-3.0)](https://www.gnu.org/licenses/gpl.html).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelpurra%2Fgithub-data-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelpurra%2Fgithub-data-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelpurra%2Fgithub-data-cli/lists"}