Les commandes pour installer cloudflared sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec 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 --silentPar installateur
64 bits · Portable
Aucune installation nécessaire (portable)
64 bits · MSI · Tous les utilisateurs
Installation silencieuse
msiexec /i cloudflared-windows-amd64.msi /qn /norestartÉcrire un journal
msiexec /i cloudflared-windows-amd64.msi /qn /norestart /l*v "%TEMP%\cloudflared-install.log"Désinstallation
msiexec /x {FBFF3EC8-BC07-4A49-A9F2-6738139DBA34} /qn /norestart- Code produit MSI
- {FBFF3EC8-BC07-4A49-A9F2-6738139DBA34}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FBFF3EC8-BC07-4A49-A9F2-6738139DBA34}
- UpgradeCode
- {23f90fdd-9328-47ea-ab52-5380855a4b12}
- Dossier d’installation
- %ProgramFiles(x86)%\cloudflared
32 bits · Portable
Aucune installation nécessaire (portable)
32 bits · MSI · Tous les utilisateurs
Installation silencieuse
msiexec /i cloudflared-windows-386.msi /qn /norestartÉcrire un journal
msiexec /i cloudflared-windows-386.msi /qn /norestart /l*v "%TEMP%\cloudflared-install.log"Désinstallation
msiexec /x {82EC9202-D993-4CE4-B227-06986DD55A2C} /qn /norestart- Code produit MSI
- {82EC9202-D993-4CE4-B227-06986DD55A2C}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{82EC9202-D993-4CE4-B227-06986DD55A2C}
- UpgradeCode
- {23f90fdd-9328-47ea-ab52-5380855a4b12}
- Dossier d’installation
- %ProgramFiles(x86)%\cloudflared
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-cloudflared.ps1
$url = 'https://github.com/cloudflare/cloudflared/releases/download/2026.12.0/cloudflared-windows-amd64.msi'
$sha256 = '0B9C7BC5B634DC0B4D4EE71558F6F3C61D9B0917492C434A0693ED6CA2BB126D'
$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.12.0/cloudflared-windows-386.msi'
$sha256 = '30245EE874A04FD9F68BEE27DE990865637567BBB34B5A84D1D44749D38E3536'
$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