Populares: Dados atualizados em 27 de outubro de 2026

Categorias

Internet1.356
Comunicação321
Áudio e vídeo898
Gráficos e design539
Escritório e produtividade1.124
Programação3.134
Inteligência artificial529
Segurança e privacidade385
Ferramentas do sistema3.114
Jogos523
Educação e ciência239
Redes e TI284

GitHub CLI: instalação silenciosa e desinstalação

Take GitHub to the command line

GitHub Inc. Controle de versão #1 Controle de versão

Comandos para instalar GitHub CLI sem perguntas, removê-lo e detectá-lo em ferramentas de implantação. Um comando só aparece quando é certo: vem do manifesto ou do padrão documentado da tecnologia do instalador.

Guia relacionado: Instalação silenciosa: parâmetros MSI, NSIS e Inno · Desinstalar programa pelo registro ou PowerShell

Com winget

PowerShell
winget install --id GitHub.cli -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id GitHub.cli -e --silent
winget uninstall --id GitHub.cli -e --silent

Por instalador

64 bits · MSI · Todos os usuários

Instalação silenciosamsiexec /i gh_2.103.3_windows_amd64.msi /qn /norestart
Gravar logmsiexec /i gh_2.103.3_windows_amd64.msi /qn /norestart /l*v "%TEMP%\github-cli-install.log"
Desinstalarmsiexec /x {8B5049E4-77C4-4637-825C-77C6C1080778} /qn /norestart
Código de produto MSI
{8B5049E4-77C4-4637-825C-77C6C1080778}
Chave de desinstalação no registro
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8B5049E4-77C4-4637-825C-77C6C1080778}
UpgradeCode
{8CFB9531-B959-4E1B-AA2E-4AF0FFCC4AF4}
Pasta de instalação
%ProgramFiles%\GitHub CLI

64 bits · ZIP

Não precisa instalar (portátil)

ARM64 · MSI · Todos os usuários

Instalação silenciosamsiexec /i gh_2.103.3_windows_arm64.msi /qn /norestart
Gravar logmsiexec /i gh_2.103.3_windows_arm64.msi /qn /norestart /l*v "%TEMP%\github-cli-install.log"
Desinstalarmsiexec /x {356C78A3-D8F8-486A-B686-217AFBC67511} /qn /norestart
Código de produto MSI
{356C78A3-D8F8-486A-B686-217AFBC67511}
Chave de desinstalação no registro
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{356C78A3-D8F8-486A-B686-217AFBC67511}
UpgradeCode
{5D15E95C-F979-41B0-826C-C33C8CB5A7EB}
Pasta de instalação
%ProgramFiles%\GitHub CLI

ARM64 · ZIP

Não precisa instalar (portátil)

32 bits · MSI · Todos os usuários

Instalação silenciosamsiexec /i gh_2.103.3_windows_386.msi /qn /norestart
Gravar logmsiexec /i gh_2.103.3_windows_386.msi /qn /norestart /l*v "%TEMP%\github-cli-install.log"
Desinstalarmsiexec /x {2643C99A-0858-411A-BD5A-BBF06DC0EF78} /qn /norestart
Código de produto MSI
{2643C99A-0858-411A-BD5A-BBF06DC0EF78}
Chave de desinstalação no registro
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2643C99A-0858-411A-BD5A-BBF06DC0EF78}
UpgradeCode
{767EC5D2-C8F0-4912-9901-45E21F59A284}
Pasta de instalação
%ProgramFiles(x86)%\GitHub CLI

32 bits · ZIP

Não precisa instalar (portátil)

PowerShell: baixar, verificar, instalar

Baixa o arquivo oficial, confere o SHA256 e instala em modo silencioso.

install-github-cli.ps1
$url = 'https://github.com/cli/cli/releases/download/v2.103.3/gh_2.103.3_windows_amd64.msi'
$sha256 = '5073112B7ABB5FFBBA24B76AEE7E89269AF531218C0A42751F5F0BFB6440C2CC'
$file = Join-Path $env:TEMP 'gh_2.103.3_windows_amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait

Mais popular em Controle de versão

Ver tudo
  1. GitHub CLIControle de versão · GitHub Inc.
  2. GitControle de versão · The Git Development Community
  3. GitTools GitVersionControle de versão · GitTools
  4. Git ExtensionsControle de versão · Git Extensions Team
  5. Git Credential Manager (User)Controle de versão · github
  6. hubControle de versão · GitHub Inc.
  7. MercurialControle de versão · Olivia Mackall and others
  8. GitButlerControle de versão · GitButler
  9. TortoiseSVNControle de versão · TortoiseSVN
  10. DevHubControle de versão · Bruno Lemos

Mais programas de GitHub Inc.

Ver tudo

Tags

Compartilhar