Commands for installing Project-Env 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 ProjectEnv.ProjectEnvCli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ProjectEnv.ProjectEnvCli -e --silentwinget uninstall --id ProjectEnv.ProjectEnvCli -e --silentBy installer
64-bit · EXE (NSIS) · All users · en-US
cli-3.28.0-windows-amd64-setup.exe /Scli-3.28.0-windows-amd64-setup.exe /S /D=C:\Apps\project-env-cli- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ProjectEnv.ProjectEnvCli
- Install folder
- %ProgramFiles%\Project-Env\Project-Env-Cli
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
$url = 'https://github.com/Project-Env/project-env-cli/releases/download/v3.28.0/cli-3.28.0-windows-amd64-setup.exe'
$sha256 = 'CE850F2419178522D5DD9748A7648D7732DDE39BA0E15EAA81E47F78EE465975'
$file = Join-Path $env:TEMP 'cli-3.28.0-windows-amd64-setup.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