GitHub CLI 2.40.0
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 logingh and git use with gh auth switchgh auth statusgh auth logoutFuture 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/8337run list results by commit sha by @nelsonchen304 in https://github.com/cli/cli/pull/8350pr merge output when running interactively by @ffalor in https://github.com/cli/cli/pull/8381Full Changelog: https://github.com/cli/cli/compare/v2.39.2...v2.40.0
<hr /><em>This discussion was created from the release <a href='https://github.com/cli/cli/releases/tag/v2.40.0'>GitHub CLI 2.40.0</a>.</em>Fetched April 8, 2026