{"id":15648813,"url":"https://github.com/jooola/gh-release-install","last_synced_at":"2025-09-20T23:26:39.638Z","repository":{"id":37610242,"uuid":"393685966","full_name":"jooola/gh-release-install","owner":"jooola","description":"CLI helper to install Github releases on your system.","archived":false,"fork":false,"pushed_at":"2025-01-29T08:03:35.000Z","size":513,"stargazers_count":44,"open_issues_count":10,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T21:06:43.836Z","etag":null,"topics":["automation","cli","devops","github","installer","pip","release","scripting","system"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jooola.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T13:05:51.000Z","updated_at":"2025-03-13T06:38:49.000Z","dependencies_parsed_at":"2024-03-02T11:38:24.166Z","dependency_job_id":"b3be03d6-e9b1-466c-977c-76b233f13191","html_url":"https://github.com/jooola/gh-release-install","commit_stats":{"total_commits":300,"total_committers":5,"mean_commits":60.0,"dds":0.53,"last_synced_commit":"b6c575900d4b82d82d63197242b82eba3e557ac1"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fgh-release-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fgh-release-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fgh-release-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jooola%2Fgh-release-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jooola","download_url":"https://codeload.github.com/jooola/gh-release-install/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"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":["automation","cli","devops","github","installer","pip","release","scripting","system"],"created_at":"2024-10-03T12:26:33.934Z","updated_at":"2025-09-20T23:26:34.613Z","avatar_url":"https://github.com/jooola.png","language":"Python","readme":"# Github release installer\n\n[![CI](https://github.com/jooola/gh-release-install/actions/workflows/ci.yml/badge.svg)](https://github.com/jooola/gh-release-install/actions/workflows/ci.yml)\n[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/gh-release-install.svg)](https://pypi.org/project/gh-release-install/)\n[![PyPI Package Version](https://img.shields.io/pypi/v/gh-release-install.svg)](https://pypi.org/project/gh-release-install/)\n\n`gh-release-install` is a CLI helper to install Github releases on your system.\nIt can be used for pretty much anything, to install a formatter in your CI, deploy\nsome binary using an orcherstration tool, or on your desktop.\n\nThis project was mainly created to...\n\n```sh\n# ...turn this mess:\nwget --quiet --output-document=- \"https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz\" \\\n    | tar --extract --xz --directory=/usr/local/bin --strip-components=1 --wildcards 'shellcheck*/shellcheck' \\\n    \u0026\u0026 chmod +x /usr/local/bin/shellcheck\n\nwget --quiet --output-document=/usr/local/bin/shfmt \"https://github.com/mvdan/sh/releases/download/v3.2.1/shfmt_v3.2.1_linux_amd64\" \\\n    \u0026\u0026 chmod +x /usr/local/bin/shfmt\n\n# Into this:\npip3 install gh-release-install\n\ngh-release-install \\\n      \"koalaman/shellcheck\" \\\n      \"shellcheck-{tag}.linux.x86_64.tar.xz\" --extract \"shellcheck-{tag}/shellcheck\" \\\n      \"/usr/bin/shellcheck\"\n\ngh-release-install \\\n      \"mvdan/sh\" \\\n      \"shfmt_{tag}_linux_amd64\" \\\n      \"/usr/bin/shfmt\"\n```\n\nFeatures:\n\n- Download releases from Github.\n- Extract zip or tarball on the fly.\n- Pin to a desired version or get the `latest` version.\n- Keep track of the local tools version using a version file.\n\n## Installation\n\nInstall the package from pip:\n\n```sh\npip install gh-release-install\ngh-release-install --help\n```\n\nOr with with pipx:\n\n```sh\npipx install gh-release-install\ngh-release-install --help\n```\n\n## Usage\n\n```sh\nusage: gh-release-install [-h] [--extract \u003cfilename\u003e] [--version \u003cversion\u003e]\n                          [--version-file \u003cfilename\u003e]\n                          [--checksum \u003chash\u003e:\u003cdigest|asset\u003e] [-v] [-q]\n                          REPOSITORY ASSET DESTINATION\n\nInstall GitHub release file on your system.\n\npositional arguments:\n  REPOSITORY            Github REPOSITORY org/repo to get the release from.\n  ASSET                 Release ASSET filename. May contain variables such as\n                        '{version}' or '{tag}'.\n  DESTINATION           Path to save the downloaded file. If DESTINATION is a\n                        directory, the asset name will be used as filename in\n                        that directory. May contain variables such as\n                        '{version}' or '{tag}'.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --extract \u003cfilename\u003e  Extract the \u003cfilename\u003e from the release asset archive\n                        and install the extracted file instead. May contain\n                        variables such as '{version}' or '{tag}'. (default:\n                        None)\n  --version \u003cversion\u003e   Desired release version to install. When using 'latest'\n                        the installer will guess the latest version from the\n                        Github API. (default: latest)\n  --version-file \u003cfilename\u003e\n                        Track the version installed on the system using a file.\n                        May contain variables such as '{destination}'. (default:\n                        None)\n  --checksum \u003chash\u003e:\u003cdigest|asset\u003e\n                        Asset checksum used to verify the downloaded ASSET.\n                        \u003chash\u003e can be one of md5, sha1, sha224, sha256, sha384,\n                        sha512. \u003cdigest|asset\u003e can either be the expected\n                        checksum, or the filename of an checksum file in the\n                        release assets. (default: None)\n  -v, --verbose         Increase the verbosity. (default: 0)\n  -q, --quiet           Disable logging. (default: None)\n\ntemplate variables:\n    {tag}               Release tag name.\n    {version}           Release tag name without leading 'v'.\n    {destination}       DESTINATION path, including the asset filename if path\n                        is a directory.\n\nexamples:\n    gh-release-install 'mvdan/sh' \\\n        'shfmt_{tag}_linux_amd64' \\\n        '/usr/local/bin/shfmt' \\\n        --version 'v3.3.1'\n\n    gh-release-install 'prometheus/prometheus' \\\n        'prometheus-{version}.linux-amd64.tar.gz' \\\n        --extract 'prometheus-{version}.linux-amd64/prometheus' \\\n        '/usr/local/bin/prometheus' \\\n        --version-file '{destination}.version' \\\n        --checksum 'sha256:sha256sums.txt'\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjooola%2Fgh-release-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjooola%2Fgh-release-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjooola%2Fgh-release-install/lists"}