According to the Github cli readme file, I should be able to run winget install gh in order to upgrade to a new version when available. This appears not to be the case.

winget install ghgh --versionwinget install ghgh --versionI expect that when i type gh --version in step 6, I will now have the latest version of the github cli tool
My current version remains the same and I get a message from gh telling me there is a new version available (which is annoying already but I believe an issue has been raise for that) 馃槃
[winget --info]
Windows Package Manager v0.2.2941 Preview
Windows: Windows.Desktop v10.0.19042.630
Package: Microsoft.DesktopAppInstaller v1.11.2941.0
Any other software? None
I was the one who added that to the GitHub CLI README
@mikeysan See https://github.com/cli/cli/pull/2272
install command is not for upgrading. But the gh installer should have handled it itself
i it think is because there's a delay between when the gh cli says theres an update and the update actually being available on winget
check if winget got the newer version by:
winget show gh
otherwise it will just reinstall the current versision
@LuanVSO It was merged 15 hours ago microsoft/winget-pkgs#5037


Hey @mikeysan, @alannt777 has provided a solution to your issue so please go ahead and close it. In addition, please note that package related issues don't belong to the winget-cli repo - instead they should be posted in winget-pkgs.
Thanks for the info @megamorf I opened the issue here becasuse I didn't know where the problem stemmed from, but good to know.
Thanks for resolving the issue @alannt777
RESOLUTION: The README says to use winget install gh because the GitHub CLI installer will automatically remove the older version of the GitHub CLI.
Unfortunately when @mikeysan used winget install gh, the GitHub CLI manifest for v1.3.0 was not merged yet to the winget-pkgs repo as pointed out by @LuanVSO
Most helpful comment
RESOLUTION: The README says to use
winget install ghbecause the GitHub CLI installer will automatically remove the older version of the GitHub CLI.Unfortunately when @mikeysan used
winget install gh, the GitHub CLI manifest for v1.3.0 was not merged yet to the winget-pkgs repo as pointed out by @LuanVSO