Popular: Data updated October 27, 2026

Categories

Internet1,356
Communication321
Audio & video898
Graphics & design539
Office & productivity1,124
Developer tools3,134
AI tools529
Security & privacy385
System tools3,114
Games523
Education & science239
Network & IT284

sfdx-cli silent install & uninstall

Single command-line interface for all Salesforce DX features.

Commands for installing sfdx-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 Salesforce.sfdx-cli -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Salesforce.sfdx-cli -e --silent
winget uninstall --id Salesforce.sfdx-cli -e --silent

By installer

64-bit · EXE (NSIS) · All users

Silent installsfdx-x64.exe /S
Custom foldersfdx-x64.exe /S /D=C:\Apps\sfdx-cli
Uninstall registry key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\sfdx

PowerShell: download, verify, install

Downloads the official file, checks its SHA256 and installs it silently.

install-sfdx-cli.ps1
$url = 'https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-x64.exe'
$sha256 = '89CA75759F443EBB725CB5BF8A4336DB26C2BD523431B62902BA75D65FA85B41'
$file = Join-Path $env:TEMP 'sfdx-x64.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