Download Latest Version gh_2.103.2_windows_386.msi (14.8 MB) Google Add to Preferred Sources
Home / v2.103.0
Name Modified Size InfoDownloads / Week
Parent folder
gh_2.103.0_windows_arm64.msi 2026-10-21 13.8 MB
gh_2.103.0_windows_arm64.zip 2026-10-21 13.6 MB
gh_2.103.0_windows_386.msi 2026-10-21 14.8 MB
gh_2.103.0_windows_386.zip 2026-10-21 14.5 MB
gh_2.103.0_windows_amd64.msi 2026-10-21 15.4 MB
gh_2.103.0_windows_amd64.zip 2026-10-21 15.2 MB
gh_2.103.0_macOS_amd64.zip 2026-10-21 15.7 MB
gh_2.103.0_macOS_arm64.zip 2026-10-21 14.1 MB
gh_2.103.0_macOS_universal.pkg 2026-10-21 28.9 MB
gh_2.103.0_linux_armv6.deb 2026-10-21 14.3 MB
gh_2.103.0_linux_armv6.rpm 2026-10-21 14.7 MB
gh_2.103.0_linux_armv6.tar.gz 2026-10-21 14.2 MB
gh_2.103.0_linux_amd64.tar.gz 2026-10-21 15.0 MB
gh_2.103.0_linux_arm64.deb 2026-10-21 13.7 MB
gh_2.103.0_linux_arm64.rpm 2026-10-21 14.2 MB
gh_2.103.0_linux_arm64.tar.gz 2026-10-21 13.7 MB
gh_2.103.0_linux_amd64.rpm 2026-10-21 15.7 MB
gh_2.103.0_checksums.txt 2026-10-21 2.0 kB
gh_2.103.0_linux_386.deb 2026-10-21 14.1 MB
gh_2.103.0_linux_386.rpm 2026-10-21 14.7 MB
gh_2.103.0_linux_386.tar.gz 2026-10-21 14.1 MB
gh_2.103.0_linux_amd64.deb 2026-10-21 15.1 MB
GitHub CLI 2.103.0 source code.tar.gz 2026-10-21 15.5 MB
GitHub CLI 2.103.0 source code.zip 2026-10-21 16.4 MB
README.md 2026-10-21 10.9 kB
Totals: 25 Items   351.5 MB 57

Expiring, auto-refreshing OAuth tokens (preview)

gh can now sign in with expiring OAuth credentials that it refreshes automatically. When you opt in, gh stores a short-lived access token alongside a rotating refresh token and refreshes the access token whenever it is needed, so you stay signed in without having to authenticate again.

To opt in for a single sign-in, run:

:::shell
gh auth login --expiring

To prefer expiring credentials for every sign-in, run:

:::shell
gh config set expiring_credentials enabled

gh auth status shows whether a credential is refreshable and when the current access token expires. Both gh auth status and gh auth token automatically refresh the access token when needed. Expiring tokens are available on github.com and GHE.com; on hosts that do not issue them, gh falls back to a regular non-expiring token.

If you use HTTPS as your git protocol, we advise using git 2.46 or newer and letting gh act as your git credential helper by running gh auth setup-git. This way gh serves and refreshes the expiring credential for git, and git does not cache it past its lifetime.

[!IMPORTANT] Expiring access tokens should not be cached. Scripts and extensions that store the output of gh auth token will eventually hold an expired token, so run gh auth token again each time a token is needed. Tokens supplied through GH_TOKEN or GITHUB_TOKEN are never refreshed.

For more information, see Authenticating with GitHub CLI.

Manage issue artifacts with gh issue artifact (private preview)

gh issue artifact brings issue artifacts to the command line. Users and organizations enrolled in the private preview can use the list, view, create, edit, download, and delete commands to manage issue artifacts.

:::shell
# Create a Markdown document with an attached image
gh issue artifact create 142 signin-plan.md --attach ./signin-flow.png

# Create an HTML document
gh issue artifact create 142 menu-prototype.html

# List or view artifacts
gh issue artifact list 142
gh issue artifact view 142 2

# Update a document or restore an earlier version
gh issue artifact edit 142 2 --body-file signin-plan-v2.md
gh issue artifact edit 142 2 --restore-version 5

Artifacts can also be addressed by their GitHub URLs, and Markdown documents support image and video attachments with --attach.

[!IMPORTANT] Issue artifacts are in private preview. These commands only work for repositories enrolled in the preview. See the Issue Artifacts private preview announcement and feedback discussion for access instructions and to share feedback.

What's Changed

✨ Features

🐛 Fixes

📚 Docs & Chores

:dependabot: Dependencies

New Contributors

Full Changelog: https://github.com/cli/cli/compare/v2.102.1...v2.103.0

Source: README.md, updated 2026-10-21