Commands for installing pyRevit 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
PowerShell
winget install --id pyRevit.pyRevit.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id pyRevit.pyRevit.CLI -e --silentwinget uninstall --id pyRevit.pyRevit.CLI -e --silentBy installer
64-bit · EXE (Inno Setup) · All users
Silent install
pyRevit_CLI_7.0.0.26278_admin_signed.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
pyRevit_CLI_7.0.0.26278_admin_signed.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pyrevit-cli"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\9557b432-cf79-4ece-91cf-b8f996c88b47_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-pyrevit-cli.ps1
$url = 'https://github.com/pyrevitlabs/pyRevit/releases/download/v7.0.0.26278+2233/pyRevit_CLI_7.0.0.26278_admin_signed.exe'
$sha256 = 'BFBDD77A89CF026E215D124A90A4D1EDD594286CD7354F97D9843C3495492B46'
$file = Join-Path $env:TEMP 'pyRevit_CLI_7.0.0.26278_admin_signed.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait