Commands for installing cloudflared 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 Cloudflare.cloudflared -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cloudflare.cloudflared -e --silentwinget uninstall --id Cloudflare.cloudflared -e --silentBy installer
64-bit · Portable
No installation needed (portable)
64-bit · MSI · All users
Silent install
msiexec /i cloudflared-windows-amd64.msi /qn /norestartWrite a log
msiexec /i cloudflared-windows-amd64.msi /qn /norestart /l*v "%TEMP%\cloudflared-install.log"Uninstall
msiexec /x {59387E81-7AC3-4769-BCA9-85E8C24A5FFE} /qn /norestart- MSI product code
- {59387E81-7AC3-4769-BCA9-85E8C24A5FFE}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{59387E81-7AC3-4769-BCA9-85E8C24A5FFE}
- UpgradeCode
- {23f90fdd-9328-47ea-ab52-5380855a4b12}
- Install folder
- %ProgramFiles(x86)%\cloudflared
32-bit · Portable
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i cloudflared-windows-386.msi /qn /norestartWrite a log
msiexec /i cloudflared-windows-386.msi /qn /norestart /l*v "%TEMP%\cloudflared-install.log"Uninstall
msiexec /x {B80985E8-0087-4A33-92E1-101ED770C2A2} /qn /norestart- MSI product code
- {B80985E8-0087-4A33-92E1-101ED770C2A2}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B80985E8-0087-4A33-92E1-101ED770C2A2}
- UpgradeCode
- {23f90fdd-9328-47ea-ab52-5380855a4b12}
- Install folder
- %ProgramFiles(x86)%\cloudflared
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-cloudflared.ps1
$url = 'https://github.com/cloudflare/cloudflared/releases/download/2026.10.4/cloudflared-windows-amd64.msi'
$sha256 = '6D5BD5310304DFBED4263C81FCF3EB6E69DCACE2B2F86E960032C9F1F46532BF'
$file = Join-Path $env:TEMP 'cloudflared-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 install-cloudflared.ps1
$url = 'https://github.com/cloudflare/cloudflared/releases/download/2026.10.4/cloudflared-windows-386.msi'
$sha256 = '26E1680DB8AEEC2A203769C11201AE8E0FAD7DAF156B1D712B3A36F70C8BA73A'
$file = Join-Path $env:TEMP 'cloudflared-windows-386.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