Commands for installing DevHub 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 DevHub.DevHub -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DevHub.DevHub -e --silentwinget uninstall --id DevHub.DevHub -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
DevHub-Setup-0.102.0.exe /SCustom folder
DevHub-Setup-0.102.0.exe /S /D=C:\Apps\devhubPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-devhub.ps1
$url = 'https://github.com/devhubapp/devhub/releases/download/v0.102.0/DevHub-Setup-0.102.0.exe'
$sha256 = '8C88A8BAB2DA57C2F32FFA1523D85BDD70FDC714D7E987095C45DB521D92C7F8'
$file = Join-Path $env:TEMP 'DevHub-Setup-0.102.0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait