releases.shpreview

v2.40.0

GitHub CLI 2.40.0

$npx -y @buildinternet/releases show rel_wJUWEWKCIl-gPQuSWomr1

Multiple Account Support

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:

  • adding multiple accounts for GitHub.com and GitHub Enterprise with gh auth login
  • switching manually between accounts for gh and git use with gh auth switch
  • seeing multiple accounts with gh auth status
  • logging out of accounts with 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.

What's changed

Other technical changes

New Contributors

Full 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