GitHub’s official command line tool
As you can see from the notes below, this release contains some quality of life improvements as well as a move to Azure Code Signing for Windows .exe and .msi release artifacts. This change was extensively tested prior to the holidays before our previous signing certificate expired, however the CLI team is being attentive to issues or discussions raised by our Windows community if any problems or concerns arise. 🙇 ❤️
gh run view --log
by @benebsiny in https://github.com/cli/cli/pull/8459
Full Changelog: https://github.com/cli/cli/compare/v2.40.1...v2.41.0
Full Changelog: https://github.com/cli/cli/compare/v2.40.0...v2.40.1
With the v2.40.0
release, multi-account support is introduced to gh
for GitHub.com and GitHub Enterprise and it is only the beginning!
Thanks to @gabe565 for his efforts to support multi-account capabilities with gh-profile
extension for this long requested feature! ❤️
This release focuses on several specific use cases:
gh auth login
gh
and git
use with gh auth switch
gh auth status
gh auth logout
Future enhancements such as automatic account switching based on context and more git automatic git configuration will be planned based on community feedback.
For much more detail about the specific of multiple account support in this release as well as a discussion of the sharp edges, please see this doc.
Please provide feedback in our release discussion.
auth status
when there are connection issues by @tal66 in https://github.com/cli/cli/pull/8337
run list
results by commit sha by @nelsonchen304 in https://github.com/cli/cli/pull/8350
pr merge
output when running interactively by @ffalor in https://github.com/cli/cli/pull/8381
Full Changelog: https://github.com/cli/cli/compare/v2.39.2...v2.40.0
gh repo sync
should be able to sync a local branch with an upstream remote by @benebsiny in https://github.com/cli/cli/pull/8229
Full Changelog: https://github.com/cli/cli/compare/v2.39.1...v2.39.2
Full Changelog: https://github.com/cli/cli/compare/v2.39.0...v2.39.1
release create
: Fix --latest
flag behavior when creating release wth assets by @arunsathiya in https://github.com/cli/cli/pull/8207
issue
/pr
: Include project item status when exporting issues and pull requests by @mattruggio in https://github.com/cli/cli/pull/8202
codespace
: Resolve race condition in codespaces connection by @dmgardiner25 in https://github.com/cli/cli/pull/8275
release download
: Improve usage documentation by @muzimuzhi in https://github.com/cli/cli/pull/8294
run view
: Simplify annotation fetch error handling by @williammartin in https://github.com/cli/cli/pull/8301
api
: Set default Accept header when one is not specified by @samcoe in https://github.com/cli/cli/pull/8303
Full Changelog: https://github.com/cli/cli/compare/v2.38.0...v2.39.0
extension install
no longer errors unhelpfully if the extension is already installed by @Delta456 in https://github.com/cli/cli/pull/8211
project
commands have a clearer error message when no owner can be resolved by @ffalor in https://github.com/cli/cli/pull/8235
workflow run
now presents a select for choice
workflow input types by @adarshjhaa100 in https://github.com/cli/cli/pull/8180
codespace create
no longer polls for additional codespace permissions unnecessarily by @dmgardiner25 in https://github.com/cli/cli/pull/8267
go install
now works with the removal of our crypto fork by @samcoe in https://github.com/cli/cli/pull/8204
go-gh
by @samcoe in https://github.com/cli/cli/pull/8244
Full Changelog: https://github.com/cli/cli/compare/v2.37.0...v2.38.0
project
: Remove template
field from --format=json
output by @samcoe in https://github.com/cli/cli/pull/8160
template
field when outputing projects to JSON, unfortunately
we forgot to take into account our GHES users. This field does not exist on GHES 3.8 and older.
Including this field in our queries and output broke nearly all the project
commands for users
targeting these older versions of GHES. As we try our hardest to keep gh
compatible with all
non-deprecated GHES versions this was a pretty big mistake. In order to fix it we are reverting
the querying and exporting of the template
field for project
commands. We apologize for the
inconvenience this may cause, and plan to bring back this field once GHES 3.8 gets deprecated.repo create
: Allow --disable-issues
and --template
flags to be used together by @utouto97 in https://github.com/cli/cli/pull/7918
repo create
: Allow --homepage
and --template
flag to be used together by @arunsathiya in https://github.com/cli/cli/pull/8188
repo create
: Allow creating repositories from templates in interactive mode by @JunNishimura in https://github.com/cli/cli/pull/7769
repo fork
: Set default repo when forking repo by @kbailey4444 in https://github.com/cli/cli/pull/7768
codespace
: Migrate all Codespaces operations from Live Share to Dev Tunnels by @dmgardiner25 in https://github.com/cli/cli/pull/8149
codespace create
: Poll permission acceptance endpoint on codespace creation by @dmgardiner25 in https://github.com/cli/cli/pull/8179
pr create
: Remove duplicates targets for push survey by @benebsiny in https://github.com/cli/cli/pull/8184
pr create
: Fix typo in documentation by @darthwalsh in https://github.com/cli/cli/pull/8115
browse
: Do not use relative paths when --repo
flag is used by @benebsiny in https://github.com/cli/cli/pull/8141
dependencies
: Update to fix security vulnerability by @samcoe in https://github.com/cli/cli/pull/8176
dependencies
: bump github.com/gabriel-vasile/mimetype from 1.4.2 to 1.4.3 by @dependabot in https://github.com/cli/cli/pull/8185
Full Changelog: https://github.com/cli/cli/compare/v2.36.0...v2.37.0
codespace
: Hint adding codespace
scope when not logged in by @rajhawaldar in https://github.com/cli/cli/pull/7961
codespace ports
: Forward codespace ports over Dev Tunnels by @dmgardiner25 in https://github.com/cli/cli/pull/8023
cache delete
: Percent-encode keys by @benoit-pierre in https://github.com/cli/cli/pull/8030
gpg-key delete
, run watch
: Return HTTP errors properly by @heaths in https://github.com/cli/cli/pull/8037
pr checks
: Show cancelled checks by @rajhawaldar in https://github.com/cli/cli/pull/7960
cache list
: Add JSON exporting support by @siketyan in https://github.com/cli/cli/pull/7954
auth
: Fix startup panic when logged out by @alrs in https://github.com/cli/cli/pull/8105
secret list
, deploy-key list
: Support standard output format flags by @rajhawaldar in https://github.com/cli/cli/pull/8081
pr create
: Update the docs on flag --fill
by @peterramaldes in https://github.com/cli/cli/pull/8080
run view
: Use attempt input when fetching jobs by @arunsathiya in https://github.com/cli/cli/pull/7831
project item-edit
: New clear flag to remove item field value by @arunsathiya in https://github.com/cli/cli/pull/8024
Full Changelog: https://github.com/cli/cli/compare/v2.35.0...v2.36.0
gh alias delete
now supports the --all
flag by @JunNishimura in https://github.com/cli/cli/pull/7900
gh release delete
now supports the --cleanup-tag
flag by @kemingy in https://github.com/cli/cli/pull/7884
gh release create
now supports the --notes-from-tag
flag by @kbailey4444 in https://github.com/cli/cli/pull/7861
gh repo list --fork
and --source
behavior for orgs @ncalteen in https://github.com/cli/cli/pull/7964
gh cs create
now shows the full permissions URL by @joshmgross in https://github.com/cli/cli/pull/7983
gh auth login
falls back to using insecure storage by @kbailey4444 in https://github.com/cli/cli/pull/7781
Full Changelog: https://github.com/cli/cli/compare/v2.34.0...v2.35.0