Commands for installing Snowflake 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 Snowflake.SnowflakeCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Snowflake.SnowflakeCLI -e --silentwinget uninstall --id Snowflake.SnowflakeCLI -e --silentBy installer
64-bit · MSI · All users
msiexec /i snowflake-cli-3.31.0.0-x86_64.msi /qn /norestartmsiexec /i snowflake-cli-3.31.0.0-x86_64.msi /qn /norestart /l*v "%TEMP%\snowflake-cli-install.log"msiexec /x {A257D756-1206-43EE-A024-D1747654F8DD} /qn /norestart- MSI product code
- {A257D756-1206-43EE-A024-D1747654F8DD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A257D756-1206-43EE-A024-D1747654F8DD}
- UpgradeCode
- {74BDE2A7-BA7F-3B99-A9C9-67B28155C13A}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
$url = 'https://sfc-repo.snowflakecomputing.com/snowflake-cli/windows_x86_64/3.31.0/snowflake-cli-3.31.0.0-x86_64.msi'
$sha256 = '11A0F9A4391E0C9F5B0B9C8170F2FBECAE0B3C98DC2BCD104D63FAEDC93DDD80'
$file = Join-Path $env:TEMP 'snowflake-cli-3.31.0.0-x86_64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait