Commands for installing GitHub extension for Command Palette without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Microsoft.CmdPalGitHubExtension -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.CmdPalGitHubExtension -e --silentwinget uninstall --id Microsoft.CmdPalGitHubExtension -e --silentBy installer
64-bit · MSIX
Silent install
Add-AppxPackage -Path GitHubExtension_release_v0.103.178.0_x64.msixUninstall
Get-AppxPackage -Name Microsoft.CmdPalGitHubExtension | Remove-AppxPackageARM64 · MSIX
Silent install
Add-AppxPackage -Path GitHubExtension_release_v0.103.178.0_arm64.msixUninstall
Get-AppxPackage -Name Microsoft.CmdPalGitHubExtension | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-github-extension-for-command-palette.ps1
$url = 'https://github.com/microsoft/CmdPalGitHubExtension/releases/download/v0.103.178.0/GitHubExtension_release_v0.103.178.0_x64.msix'
$sha256 = '7B6D126A87DEA4D40CDC8CE5F69F18E2498A998BDCC1AF7962987FEC8F5323FD'
$file = Join-Path $env:TEMP 'GitHubExtension_release_v0.103.178.0_x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-github-extension-for-command-palette.ps1
$url = 'https://github.com/microsoft/CmdPalGitHubExtension/releases/download/v0.103.178.0/GitHubExtension_release_v0.103.178.0_arm64.msix'
$sha256 = 'C4953E1F120B072A85EF5A0E2F6B52D104B330CD15F3A9EB337C9CE8CF9B264F'
$file = Join-Path $env:TEMP 'GitHubExtension_release_v0.103.178.0_arm64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file