Les commandes pour installer Copilot CLI (Preview) sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
PowerShell
winget install --id GitHub.Copilot.Prerelease -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GitHub.Copilot.Prerelease -e --silentwinget uninstall --id GitHub.Copilot.Prerelease -e --silentPar installateur
64 bits · MSI
Installation silencieuse
msiexec /i copilot-x64.msi /qn /norestartÉcrire un journal
msiexec /i copilot-x64.msi /qn /norestart /l*v "%TEMP%\copilot-cli-preview-install.log"Désinstallation
msiexec /x {8AB2501E-1C29-4632-9A31-88038CDE4E69} /qn /norestart- Code produit MSI
- {8AB2501E-1C29-4632-9A31-88038CDE4E69}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8AB2501E-1C29-4632-9A31-88038CDE4E69}
- UpgradeCode
- {E2C3A7F6-1D3A-4E8F-9E5F-8E9D4F9C1234}
- Dossier d’installation
- %LocalAppData%\GitHubCopilotCLI
64 bits · ZIP
Aucune installation nécessaire (portable)
ARM64 · MSI
Installation silencieuse
msiexec /i copilot-arm64.msi /qn /norestartÉcrire un journal
msiexec /i copilot-arm64.msi /qn /norestart /l*v "%TEMP%\copilot-cli-preview-install.log"Désinstallation
msiexec /x {5675DF02-08F5-4C1F-A5DC-BB89D3076D03} /qn /norestart- Code produit MSI
- {5675DF02-08F5-4C1F-A5DC-BB89D3076D03}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5675DF02-08F5-4C1F-A5DC-BB89D3076D03}
- UpgradeCode
- {E2C3A7F6-1D3A-4E8F-9E5F-8E9D4F9C1234}
- Dossier d’installation
- %LocalAppData%\GitHubCopilotCLI
ARM64 · ZIP
Aucune installation nécessaire (portable)
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-copilot-cli-preview.ps1
$url = 'https://github.com/github/copilot-cli/releases/download/v1.0.108-1/copilot-x64.msi'
$sha256 = '90BF952F09136A859EDEA91E9092333CFB8F6FA877D4360CF4B53367FA4DB12D'
$file = Join-Path $env:TEMP 'copilot-x64.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 install-copilot-cli-preview.ps1
$url = 'https://github.com/github/copilot-cli/releases/download/v1.0.108-1/copilot-arm64.msi'
$sha256 = '9499B28CDE6B51A02B4EF03CB548548C2424DFACE479561EDE1BBE8F43735DBB'
$file = Join-Path $env:TEMP 'copilot-arm64.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