# GitHub CLI 2.40.0

DevFeed: [GitHub CLI 2.40.0](<https://devfeed.tech/articles/github-cli-2-40-0-75229.md>)

Original publisher: [Read original article](<https://github.com/cli/cli/releases/tag/v2.40.0>)

Published: 2023-12-07T15:06:02Z

Content type: release

Language: en

Sources: [GitHub CLI](<https://devfeed.tech/sources/github-cli.md>)

Topics: [GitHub CLI extension](<https://devfeed.tech/topics/gh-extension.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [auth](<https://devfeed.tech/tags/auth.md>), [extension](<https://devfeed.tech/tags/extension.md>), [github](<https://devfeed.tech/tags/github.md>), [github-cli](<https://devfeed.tech/tags/github-cli.md>), [release](<https://devfeed.tech/tags/release.md>)

## AI overview

GitHub CLI 2.40.0 adds support for multiple GitHub.com and GitHub Enterprise accounts. Users can add accounts, switch between them manually for gh and git, check account status, and log out. The release also lists smaller fixes and changes, including improved error handling and filtering run list results by commit SHA.

## Source excerpt

### Multiple Account Support With the `v2.40.0` release, [multi-account support](https://github.blog/changelog/2023-11-03-multi-account-support-on-github-com/) 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](https://github.com/gabe565/gh-profile) for this [long requested feature](https://github.com/cli/cli/issues/326)! ❤ 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](https://github.com/cli/cli/blob/54d56cab3a0882b43ac794df59924dc3f93bb75c/docs/multiple-accounts.md). Please provide feedback in our [release discussion](https://github.com/cli/cli/discussions/8429). ## What's changed * Better codespaces error handling when the display name flag exceeds 48 characters by @mateusmarquezini in https://github.com/cli/cli/pull/8361 * Better error handling in `auth status` when there are connection issues by @tal66 in https://github.com/cli/cli/pull/8337 * Filtering `run list` results by commit sha by @nelsonchen304 in https://github.com/cli/cli/pull/8350 * More informative `pr merge` output when running interactively by @ffalor in https://github.com/cli/cli/pull/8381 * Unification of doc mark-ups by @muzimuzhi in https://github.com/cli/cli/pull/8342 * Addition of progress indicator when installing an extension by @steiza in https://github.com/cli/cli/pull/8411 *