{"id":30558309,"url":"https://github.com/loong64/cli","last_synced_at":"2026-04-17T05:09:03.643Z","repository":{"id":303902652,"uuid":"909201243","full_name":"loong64/cli","owner":"loong64","description":"GitHub’s official command line tool","archived":false,"fork":false,"pushed_at":"2026-03-27T03:43:26.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-03T02:23:11.881Z","etag":null,"topics":["cli","git","github-api-v4","golang","loong64","loongarch64"],"latest_commit_sha":null,"homepage":"https://github.com/cli/cli","language":null,"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/loong64.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-28T02:23:34.000Z","updated_at":"2025-04-12T14:30:03.000Z","dependencies_parsed_at":"2025-07-10T11:29:01.803Z","dependency_job_id":"f5fb5fda-f747-45e0-a2e2-b027e43df09a","html_url":"https://github.com/loong64/cli","commit_stats":null,"previous_names":["loong64/cli"],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/loong64/cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loong64","download_url":"https://codeload.github.com/loong64/cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loong64%2Fcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["cli","git","github-api-v4","golang","loong64","loongarch64"],"created_at":"2025-08-28T08:25:10.058Z","updated_at":"2026-04-17T05:09:03.616Z","avatar_url":"https://github.com/loong64.png","language":null,"readme":"# GitHub CLI\n\n`gh` is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with `git` and your code.\n\n![screenshot of gh pr status](https://user-images.githubusercontent.com/98482/84171218-327e7a80-aa40-11ea-8cd1-5177fc2d0e72.png)\n\nGitHub CLI is supported for users on GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+ with support for macOS, Windows, and Linux.\n\n## Documentation\n\nFor [installation options see below](#installation), for usage instructions [see the manual][manual].\n\n## Contributing\n\nIf anything feels off, or if you feel that some functionality is missing, please check out the [contributing page][contributing]. There you will find instructions for sharing your feedback, building the tool locally, and submitting pull requests to the project.\n\nIf you are a hubber and are interested in shipping new commands for the CLI, check out our [doc on internal contributions][intake-doc].\n\n\u003c!-- this anchor is linked to from elsewhere, so avoid renaming it --\u003e\n## Installation\n\n### macOS\n\n`gh` is available via [Homebrew][], [MacPorts][], [Conda][], [Spack][], [Webi][], and as a downloadable binary including Mac OS installer `.pkg` from the [releases page][].\n\n\u003e [!NOTE]\n\u003e As of May 29th, Mac OS installer `.pkg` are unsigned with efforts prioritized in [`cli/cli#9139`](https://github.com/cli/cli/issues/9139) to support signing them.\n\n#### Homebrew\n\n| Install:          | Upgrade:          |\n| ----------------- | ----------------- |\n| `brew install gh` | `brew upgrade gh` |\n\n#### MacPorts\n\n| Install:               | Upgrade:                                       |\n| ---------------------- | ---------------------------------------------- |\n| `sudo port install gh` | `sudo port selfupdate \u0026\u0026 sudo port upgrade gh` |\n\n#### Conda\n\n| Install:                                 | Upgrade:                                |\n|------------------------------------------|-----------------------------------------|\n| `conda install gh --channel conda-forge` | `conda update gh --channel conda-forge` |\n\nAdditional Conda installation options available on the [gh-feedstock page](https://github.com/conda-forge/gh-feedstock#installing-gh).\n\n#### Spack\n\n| Install:           | Upgrade:                                 |\n| ------------------ | ---------------------------------------- |\n| `spack install gh` | `spack uninstall gh \u0026\u0026 spack install gh` |\n\n#### Webi\n\n| Install:                            | Upgrade:         |\n| ----------------------------------- | ---------------- |\n| `curl -sS https://webi.sh/gh \\| sh` | `webi gh@stable` |\n\nFor more information about the Webi installer see [its homepage](https://webinstall.dev/).\n\n#### Flox\n\n| Install:          | Upgrade:                |\n| ----------------- | ----------------------- |\n| `flox install gh` | `flox upgrade toplevel` |\n\nFor more information about Flox, see [its homepage](https://flox.dev)\n\n### Linux \u0026 BSD\n\n`gh` is available via:\n- [our Debian and RPM repositories](./docs/install_linux.md);\n- community-maintained repositories in various Linux distros;\n- OS-agnostic package managers such as [Homebrew](#homebrew), [Conda](#conda), [Spack](#spack), [Webi](#webi); and\n- our [releases page][] as precompiled binaries.\n\nFor more information, see [Linux \u0026 BSD installation](./docs/install_linux.md).\n\n### Windows\n\n`gh` is available via [WinGet][], [scoop][], [Chocolatey][], [Conda](#conda), [Webi](#webi), and as downloadable MSI.\n\n#### WinGet\n\n| Install:            | Upgrade:            |\n| ------------------- | --------------------|\n| `winget install --id GitHub.cli` | `winget upgrade --id GitHub.cli` |\n\n\u003e [!NOTE]\n\u003e The Windows installer modifies your PATH. When using Windows Terminal, you will need to **open a new window** for the changes to take effect. (Simply opening a new tab will _not_ be sufficient.)\n\n#### scoop\n\n| Install:           | Upgrade:           |\n| ------------------ | ------------------ |\n| `scoop install gh` | `scoop update gh`  |\n\n#### Chocolatey\n\n| Install:           | Upgrade:           |\n| ------------------ | ------------------ |\n| `choco install gh` | `choco upgrade gh` |\n\n#### Signed MSI\n\nMSI installers are available for download on the [releases page][].\n\n### Codespaces\n\nTo add GitHub CLI to your codespace, add the following to your [devcontainer file](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-features-to-a-devcontainer-file):\n\n```json\n\"features\": {\n  \"ghcr.io/devcontainers/features/github-cli:1\": {}\n}\n```\n\n### GitHub Actions\n\nGitHub CLI comes pre-installed in all [GitHub-Hosted Runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners).\n\n### Other platforms\n\nDownload packaged binaries from the [releases page][].\n\n#### Verification of binaries\n\nSince version 2.50.0 `gh` has been producing [Build Provenance Attestation](https://github.blog/changelog/2024-06-25-artifact-attestations-is-generally-available/) enabling a cryptographically verifiable paper-trail back to the origin GitHub repository, git revision and build instructions used. The build provenance attestations are signed and relies on Public Good [Sigstore](https://www.sigstore.dev/) for PKI.\n\nThere are two common ways to verify a downloaded release, depending if `gh` is aready installed or not. If `gh` is installed, it's trivial to verify a new release:\n\n- **Option 1: Using `gh` if already installed:**\n\n  ```shell\n  $ % gh at verify -R cli/cli gh_2.62.0_macOS_arm64.zip\n  Loaded digest sha256:fdb77f31b8a6dd23c3fd858758d692a45f7fc76383e37d475bdcae038df92afc for file://gh_2.62.0_macOS_arm64.zip\n  Loaded 1 attestation from GitHub API\n  ✓ Verification succeeded!\n\n  sha256:fdb77f31b8a6dd23c3fd858758d692a45f7fc76383e37d475bdcae038df92afc was attested by:\n  REPO     PREDICATE_TYPE                  WORKFLOW\n  cli/cli  https://slsa.dev/provenance/v1  .github/workflows/deployment.yml@refs/heads/trunk\n  ```\n\n- **Option 2: Using Sigstore [`cosign`](https://github.com/sigstore/cosign):**\n\n  To perform this, download the [attestation](https://github.com/cli/cli/attestations) for the downloaded release and use cosign to verify the authenticity of the downloaded release:\n\n  ```shell\n  $ cosign verify-blob-attestation --bundle cli-cli-attestation-3120304.sigstore.json \\\n        --new-bundle-format \\\n        --certificate-oidc-issuer=\"https://token.actions.githubusercontent.com\" \\\n        --certificate-identity-regexp=\"^https://github.com/cli/cli/.github/workflows/deployment.yml@refs/heads/trunk$\" \\\n        gh_2.62.0_macOS_arm64.zip\n  Verified OK\n  ```\n\n### Build from source\n\nSee here on how to [build GitHub CLI from source][build from source].\n\n## Comparison with hub\n\nFor many years, [hub][] was the unofficial GitHub CLI tool. `gh` is a new project that helps us explore\nwhat an official GitHub CLI tool can look like with a fundamentally different design. While both\ntools bring GitHub to the terminal, `hub` behaves as a proxy to `git`, and `gh` is a standalone\ntool. Check out our [more detailed explanation][gh-vs-hub] to learn more.\n\n[manual]: https://cli.github.com/manual/\n[Homebrew]: https://brew.sh\n[MacPorts]: https://www.macports.org\n[winget]: https://github.com/microsoft/winget-cli\n[scoop]: https://scoop.sh\n[Chocolatey]: https://chocolatey.org\n[Conda]: https://docs.conda.io/en/latest/\n[Spack]: https://spack.io\n[Webi]: https://webinstall.dev\n[releases page]: https://github.com/cli/cli/releases/latest\n[hub]: https://github.com/github/hub\n[contributing]: ./.github/CONTRIBUTING.md\n[gh-vs-hub]: ./docs/gh-vs-hub.md\n[build from source]: ./docs/source.md\n[intake-doc]: ./docs/working-with-us.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floong64%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floong64%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floong64%2Fcli/lists"}