usage

GitHub CLI 2.87.0

Tools and page contents
On this page

New 9

01

Release builds now bundle license information

When you download a new gh release, its license information is now bundled during the release process. Licenses state how code may be used and distributed, so having them collected with the finished download makes it easier for a person or company to review what is included. This does not change any command you run; it simply makes each release package more complete. It is like getting the warranty and manual in the appliance box instead of requesting them from several manufacturers.

Original changelog

Bundle licenses at release time by @williammartin in https://github.com/cli/cli/pull/12625

02

Filter project item lists with a query

When organizing a GitHub project board, gh project item-list can now take a --query flag, an option that tells a command how to act. You can use a query to select the items you need instead of retrieving the entire list and searching through it yourself. That helps on boards with many tasks when you only want one kind of item. The accompanying implementation was also cleaned up. It is like adding a search box to a library catalog before you walk to the shelf.

Original changelog

Add --query flag to project item-list by @williammartin in https://github.com/cli/cli/pull/12696

Clean up project item-list query addition changes by @williammartin in https://github.com/cli/cli/pull/12714

03

Retrieve details for manually dispatched workflow runs

After you manually start a GitHub Actions workflow, gh can now retrieve details for that dispatched run. A workflow is a configured sequence of automated steps. Previously, a run started with the manual button could have less traceable information when you reviewed executions. Now the tool recognizes and retrieves it as a specific run, making it easier to check which deployment, test, or automation job you just started. It is like being able to see your own delivery order instead of only knowing the restaurant sent food at some point.

Original changelog

feat(workflow run): retrieve workflow dispatch run details by @babakks in https://github.com/cli/cli/pull/12695

04

Use a pinned REST API version

When gh communicates with GitHub, it now pins the REST API to version 2022-11-28. A REST API is an interface through which programs exchange data over web addresses. If the service's default API version changes, a command response can change even though you changed nothing. Naming one version tells gh which set of rules to use. You do not need to memorize the date; it simply reduces surprise differences in everyday commands, like always receiving the same version of a form.

Original changelog

Pin REST API version to 2022-11-28 by @williammartin in https://github.com/cli/cli/pull/12680

05

Workflow log views now preserve failure exit status

When checking a workflow run, gh run view now honors its --exit-status flag even when you ask for full logs or failed logs. The flag makes a command end with a success or failure result. Previously, combining it with --log or --log-failed could lose that signal, causing a script to misread whether the run failed. Now you can inspect the logs while automation still knows whether to stop or continue. It is like being able to read an alarm record while the warning light still stays on.

Original changelog

Respect --exit-status with --log and --log-failed in run view by @williammartin in https://github.com/cli/cli/pull/12679

06

PR creation forks only the default branch

When gh pr create needs to fork a repository while creating a pull request, it now forks only the default branch instead of every branch. A pull request is a request to merge your changes into a project, and a fork is your own copy of someone else's repository. Since your change usually begins from the default branch, this narrows what must be copied for the task. Other branches are not treated as required baggage. It is like photocopying the main document you need rather than carrying home the whole filing cabinet.

Original changelog

Fork with default branch only during pr create by @williammartin in https://github.com/cli/cli/pull/12673

07

Edit PRs with searchable assignees and Copilot review

When editing a pull request, you can now choose an assignee in an interactive prompt and search for Copilot to add it as a reviewer. A pull request asks a project to merge your changes, while an interactive prompt asks you for choices step by step, so you do not have to remember and type every account name. Both areas also received performance and accessibility improvements, making the selection easier with assistive tools. It is like filling out a meeting invitation with a searchable attendee list and an AI assistant checkbox.

Original changelog

gh pr edit: Add support for Copilot as reviewer with search capability, performance and accessibility improvements by @BagToad in https://github.com/cli/cli/pull/12567

gh pr edit: new interactive prompt for assignee selection, performance and accessibility improvements by @BagToad in https://github.com/cli/cli/pull/12526

08

Clearer guidance for release uploads and gist editing

When uploading a release asset, gh release upload now explains --clobber more clearly: it deletes an existing asset before uploading again. gh gist edit also gains usage examples, making it easier to edit a gist, GitHub's short post for sharing code or text snippets. One English typo was corrected as well. These changes do not alter the commands' core behavior, but they make a potentially destructive action easier to understand before you use it. It is like labeling a button to say it empties the old cabinet first.

Original changelog

gh release upload: Clarify --clobber flag deletes assets before re-uploading by @BagToad in https://github.com/cli/cli/pull/12711

Add usage examples to gh gist edit command by @BagToad in https://github.com/cli/cli/pull/12710

typo: dont to don't by @cuiweixie in https://github.com/cli/cli/pull/12554

@cuiweixie made their first contribution in https://github.com/cli/cli/pull/12554

09

Internal maintenance updates support steadier development

This release also tidies gh's internal maintenance: it removes a feedback issue template, moves issue and PR triage to shared workflows, adds feature-detection notes, and lets the Go bump workflow be started manually. Error formatting and source-document checks were fixed, while Go, OAuth, text, terminal, signing, and release-related dependencies were updated; a new contributor was also recorded. These are not new commands for you to type. They maintain the development, testing, and release chain, like improving kitchen plumbing and prep work without adding a new dish to the menu.

Original changelog

Remove feedback issue template by @BagToad in https://github.com/cli/cli/pull/12708

Migrate issue triage workflows to shared workflows by @BagToad in https://github.com/cli/cli/pull/12677

Migrate PR triage workflows to shared workflows by @BagToad in https://github.com/cli/cli/pull/12707

Add missing TODO comments for featuredetection if-statements by @BagToad in https://github.com/cli/cli/pull/12701

Add manual dispatch to bump-go workflow by @BagToad in https://github.com/cli/cli/pull/12631

Fix fmt.Errorf format argument in ParseFullReference by @mikelolasagasti in https://github.com/cli/cli/pull/12516

Lint source.md by @Sethispr in https://github.com/cli/cli/pull/12521

chore(deps): bump golang.org/x/text from 0.32.0 to 0.33.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12468

chore(deps): bump golang.org/x/term from 0.38.0 to 0.39.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12616

Bump go to 1.25.7 by @BagToad in https://github.com/cli/cli/pull/12630

chore(deps): bump golang.org/x/crypto from 0.46.0 to 0.47.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12629

chore: bump cli/oauth to v1.2.2 by @babakks in https://github.com/cli/cli/pull/12573

update Go to 1.25.6 by @BagToad in https://github.com/cli/cli/pull/12580

chore(deps): bump actions/attest-build-provenance from 3.1.0 to 3.2.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12558

chore(deps): bump github.com/sigstore/rekor from 1.4.3 to 1.5.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12524

chore(deps): bump github.com/theupdateframework/go-tuf/v2 from 2.3.1 to 2.4.1 by @dependabot[bot] in https://github.com/cli/cli/pull/12555

chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.4 to 2.13.7 by @dependabot[bot] in https://github.com/cli/cli/pull/12469

chore(deps): bump github.com/sigstore/sigstore from 1.10.0 to 1.10.4 by @dependabot[bot] in https://github.com/cli/cli/pull/12525

chore(deps): bump github.com/theupdateframework/go-tuf/v2 from 2.3.0 to 2.3.1 by @dependabot[bot] in https://github.com/cli/cli/pull/12515

chore(deps): bump actions/download-artifact from 6 to 7 by @dependabot[bot] in https://github.com/cli/cli/pull/12314

chore(deps): bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in https://github.com/cli/cli/pull/12315

chore(deps): bump goreleaser/goreleaser-action from 6.0.0 to 6.4.0 by @dependabot[bot] in https://github.com/cli/cli/pull/12354

@Sethispr made their first contribution in https://github.com/cli/cli/pull/12521