{"id":13702457,"url":"https://github.com/chmouel/gh-get-asset","last_synced_at":"2025-08-09T19:53:29.095Z","repository":{"id":66897092,"uuid":"580321690","full_name":"chmouel/gh-get-asset","owner":"chmouel","description":"GH extensions to get an asset from a release","archived":false,"fork":false,"pushed_at":"2023-10-18T06:24:49.000Z","size":7,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-22T01:47:57.424Z","etag":null,"topics":["gh-extension","git","github","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/chmouel.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-12-20T09:20:23.000Z","updated_at":"2024-11-11T18:26:18.000Z","dependencies_parsed_at":"2024-01-14T19:27:40.192Z","dependency_job_id":null,"html_url":"https://github.com/chmouel/gh-get-asset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fgh-get-asset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fgh-get-asset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fgh-get-asset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fgh-get-asset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmouel","download_url":"https://codeload.github.com/chmouel/gh-get-asset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232149972,"owners_count":18479563,"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","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":["gh-extension","git","github","shell-script"],"created_at":"2024-08-02T21:00:36.083Z","updated_at":"2025-01-02T03:44:42.593Z","avatar_url":"https://github.com/chmouel.png","language":"Shell","funding_links":[],"categories":["Shell","Github"],"sub_categories":[],"readme":"# gh-get-asset\n\nFetch an asset (ie: binary) from a GitHub release\n\n## Installation\n\n```shell\ngh extension install chmouel/gh-get-asset\n```\n\n### Requirements\n\n- [GH](https://github.com/cli/cli)\n- [JQ](https://stedolan.github.io/jq/)\n\n## Usage\n\ngh get-asset extension let you download an asset (ie: binary or others) from a release page.\n\nby default the first argument is the `owner/repo` and second argument is a substring in the asset.\n\nexample:\n\n```console\ngh get-asset chmouel/gosmee Linux-ARM64.rpm\n```\n\nthis will grab the latest release from\n[gosmee](https://github.com/chmouel/gosmee) that has Linux-ARM64.rpm in the\nbinary name.\n\nIf you want to output it to another file or location you can use `-o` :\n\n```console\ngh get-asset -o/tmp/gosmee.rpm chmouel/gosmee Linux-ARM64.rpm \u0026\u0026 rpm -Uvh /tmp/gosmee.rpm\n```\n\nIf you have multiple binary matching it will get all of them (incompatible\nwith -o option)\n\nYou can add `-s` for silent te output of curl (useful for crons)\n\nBy default it will always grab the latest release unless you specify `-r\nRELEASE` to grab another release.\n\n## Copyright\n\n[Apache-2.0](./LICENSE)\n\n## TODO\n\n- Use gh token to grab releases/asset for private repos.\n\n## Authors\n\nChmouel Boudjnah\n\n- Fediverse - \u003c[@chmouel@fosstodon.org](https://fosstodon.org/@chmouel)\u003e\n- Twitter - \u003c[@chmouel](https://twitter.com/chmouel)\u003e\n- Blog  - \u003c[https://blog.chmouel.com](https://blog.chmouel.com)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmouel%2Fgh-get-asset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmouel%2Fgh-get-asset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmouel%2Fgh-get-asset/lists"}