{"id":45941685,"url":"https://github.com/mh-cbon/gh-api-cli","last_synced_at":"2026-02-28T10:44:53.723Z","repository":{"id":57606370,"uuid":"61139234","full_name":"mh-cbon/gh-api-cli","owner":"mh-cbon","description":"Command line client for github api","archived":false,"fork":false,"pushed_at":"2017-09-30T11:56:21.000Z","size":162228,"stargazers_count":4,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T17:29:27.704Z","etag":null,"topics":["cli","github-api","golang"],"latest_commit_sha":null,"homepage":"http://mh-cbon.github.io/gh-api-cli/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mh-cbon.png","metadata":{"files":{"readme":"README.e.md","changelog":"CHANGELOG.md","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":"2016-06-14T16:39:41.000Z","updated_at":"2024-06-20T17:29:27.705Z","dependencies_parsed_at":"2022-09-26T20:02:10.086Z","dependency_job_id":null,"html_url":"https://github.com/mh-cbon/gh-api-cli","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/mh-cbon/gh-api-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgh-api-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgh-api-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgh-api-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgh-api-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mh-cbon","download_url":"https://codeload.github.com/mh-cbon/gh-api-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgh-api-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29930468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cli","github-api","golang"],"created_at":"2026-02-28T10:44:53.217Z","updated_at":"2026-02-28T10:44:53.716Z","avatar_url":"https://github.com/mh-cbon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nLicense: MIT\nLicenseFile: LICENSE\nLicenseColor: yellow\n---\n# {{.Name}}\n\n{{template \"badge/travis\" .}} {{template \"badge/appveyor\" .}} {{template \"badge/goreport\" .}} {{template \"badge/godoc\" .}} {{template \"license/shields\" .}}\n\n{{pkgdoc}}\n\nThis tool is part of the [go-github-release workflow](https://github.com/mh-cbon/go-github-release)\n\n# {{toc 5}}\n\n# Install\n{{template \"gh/releases\" .}}\n\n#### Glide\n{{template \"glide/install\" .}}\n\n#### Bintray\n{{template \"choco_bintray/install\" .}}\n\n#### Chocolatey\n{{template \"choco/install\" .}}\n\n#### linux rpm/deb repository\n{{template \"linux/bintray_repo\" .}}\n\n#### linux rpm/deb standalone package\n{{template \"linux/gh_pkg\" .}}\n\n# Cli\n\n###### {{exec \"gh-api-cli\" \"-help\" | color \"sh\"}}\n\n###### {{exec \"gh-api-cli\" \"add-auth\" \"-help\" | color \"sh\"}}\n\n```sh\nEXAMPLE\n  gh-api-cli add-auth -n test -r user -r repo # will prompt for username/password\n  gh-api-cli add-auth -n test -r user -u your -p pwd # won t prompt unless you have 2F ident on\n  gh-api-cli add-auth -n test -r user,repo -u your -p pwd\n```\n\nWhere `rights` contains some of :\n\n| Name | - | - |\n| --- | --- | --- |\n| user | user:email | user:follow |\n| public_repo | repo | repo_deployment |\n| notifications | repo:status | delete_repo |\n| gist |read:repo_hook | write:repo_hook |\n| admin:org_hook | read:org | write:org |\n| admin | admin:org | admin:repo_hook |\n| admin:public_key | read:public_key | write:public_key |\n| read:gpg_key | write:gpg_key | admin:gpg_key |\n\n\n###### {{exec \"gh-api-cli\" \"list-auth\" \"-help\" | color \"sh\"}}\n\n```sh\nEXAMPLE\n  gh-api-cli list-auth -n test # will prompt for username/password\n  gh-api-cli list-auth -n test -u your -p pwd # won t prompt unless you have 2F ident on\n```\n\n###### {{exec \"gh-api-cli\" \"rm-auth\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli rm-auth -n test # will prompt for username/password\n  gh-api-cli rm-auth -n test -u your -p pwd # won t prompt unless you have 2F ident on\n```\n\n###### {{exec \"gh-api-cli\" \"get-auth\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli get-auth -n test\n```\n\n###### {{exec \"gh-api-cli\" \"create-release\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli create-release -n test -o mh-cbon -r gh-api-cli --ver 0.0.1\n  gh-api-cli create-release -n test --guess --ver 0.0.1\n```\n\n###### {{exec \"gh-api-cli\" \"rm-release\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli rm-release -n test -o mh-cbon -r gh-api-cli --ver 0.0.1\n  gh-api-cli rm-release -n test --guess --ver 0.0.1\n```\n\n###### {{exec \"gh-api-cli\" \"upload-release-asset\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli upload-release-asset -n test -g README.md -o mh-cbon -r gh-api-cli --ver 0.0.1\n  gh-api-cli upload-release-asset -n test -g README.md --guess --ver 0.0.1\n```\n\n###### {{exec \"gh-api-cli\" \"rm-assets\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli rm-assets -n test --glob file.package -o mh-cbon -r gh-api-cli --ver 0.0.1\n  gh-api-cli rm-assets -n test -g file.package --guess --ver 0.0.1\n```\n\n###### {{exec \"gh-api-cli\" \"dl-assets\" \"-help\" | color \"sh\"}}\n\n```\nEXAMPLE\n  gh-api-cli dl-assets -o mh-cbon -r gh-api-cli --ver 4.x --out \"dl/%r.%v-%a.%e\"\n  gh-api-cli dl-assets -o mh-cbon -r gh-api-cli --ver 0.0.1 --out dl/%f\n  gh-api-cli dl-assets -o mh-cbon -r gh-api-cli --ver 0.0.1 --out dl/%f -g '*amd64*deb'\n  gh-api-cli dl-assets -o mh-cbon -r gh-api-cli --ver latest --out dl/%s/%r.%v-%a.%e\n  gh-api-cli dl-assets -o mh-cbon -r gh-api-cli --out \"dl/%s/%r-%v-%a.%e\" --ver \"\u003e0.0.10\"\n```\n\n# Notes\n\nWhen you `add, remove, list` authorizations, personal access token authentication is not permitted, [see this](https://developer.github.com/v3/oauth_authorizations/#deprecation-notice)\n\nYou are required to use a password.\n\n# Todo\n\n- add a command to clean up old gh releases,\nsomething that would help to keep only N most recent releases for each major version.\n\n# Recipes\n\n#### Testing\n\n```sh\n (USER=xxx PWRD=yyy ./test.sh | grep \"OK, ALL FINE\") || (echo \"\" \u0026\u0026 echo \"\" \u0026\u0026 echo \"beep boop failed\")\n```\n\n#### Release the project\n\n```sh\ngump patch -d # check\ngump patch # bump\n```\n\n# History\n\n[CHANGELOG](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh-cbon%2Fgh-api-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmh-cbon%2Fgh-api-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh-cbon%2Fgh-api-cli/lists"}