Commands for installing Keboola 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 Keboola.KeboolaCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Keboola.KeboolaCLI -e --silentwinget uninstall --id Keboola.KeboolaCLI -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i keboola-cli_2.48.0_windows_amd64.msi /qn /norestartWrite a log
msiexec /i keboola-cli_2.48.0_windows_amd64.msi /qn /norestart /l*v "%TEMP%\keboola-cli-install.log"Uninstall
msiexec /x {B1CB8D49-D2DC-4672-9C01-18A401CCECEB} /qn /norestart- MSI product code
- {B1CB8D49-D2DC-4672-9C01-18A401CCECEB}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B1CB8D49-D2DC-4672-9C01-18A401CCECEB}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-keboola-cli.ps1
$url = 'https://cli-dist.keboola.com/msi/keboola-cli_2.48.0_windows_amd64.msi'
$sha256 = 'E52A8E36AD7A4866C4F8D223303B5DCE5F88209F3DD74E1A64FCEBF379C2C56D'
$file = Join-Path $env:TEMP 'keboola-cli_2.48.0_windows_amd64.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