Commands for installing Windows App Development CLI 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
winget install --id Microsoft.WinAppCli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WinAppCli -e --silentwinget uninstall --id Microsoft.WinAppCli -e --silentBy installer
64-bit · MSIX
Add-AppxPackage -Path winappcli_x64.msixGet-AppxPackage -Name winapp | Remove-AppxPackage64-bit · ZIP
No installation needed (portable)
ARM64 · MSIX
Add-AppxPackage -Path winappcli_arm64.msixGet-AppxPackage -Name winapp | Remove-AppxPackageARM64 · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
$url = 'https://github.com/microsoft/winappcli/releases/download/v0.7.1/winappcli_x64.msix'
$sha256 = '6B7310C80EBD8DAE5B51CD84A23CCF6001381DB28AE7B49472FC6A54255F7310'
$file = Join-Path $env:TEMP 'winappcli_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 $url = 'https://github.com/microsoft/winappcli/releases/download/v0.7.1/winappcli_arm64.msix'
$sha256 = '07B37A0F7A6DE0816BBB0C888711F0AACCECBAF92A3DAE6E45024CA944AD8B93'
$file = Join-Path $env:TEMP 'winappcli_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