Commands for installing Stellar 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 Stellar.StellarCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Stellar.StellarCLI -e --silentwinget uninstall --id Stellar.StellarCLI -e --silentBy installer
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
stellar-cli-installer-28.1.0-x86_64-pc-windows-msvc.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
stellar-cli-installer-28.1.0-x86_64-pc-windows-msvc.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\stellar-cli"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Stellar CLI_is1
- Install folder
- %ProgramFiles%\Stellar CLI
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-stellar-cli.ps1
$url = 'https://github.com/stellar/stellar-cli/releases/download/v28.1.0/stellar-cli-installer-28.1.0-x86_64-pc-windows-msvc.exe'
$sha256 = '2954EFA9FC21CA725491D71070D4D4EBAD460D2DDAB2B87D9ABB2F2E336CA6CD'
$file = Join-Path $env:TEMP 'stellar-cli-installer-28.1.0-x86_64-pc-windows-msvc.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