Kommandoer til at installere Discloud CLI uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med winget
PowerShell
winget install --id Discloud.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Discloud.CLI -e --silentwinget uninstall --id Discloud.CLI -e --silentPr. installationsfil
64-bit · EXE (Inno Setup)
Lydløs installation
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"ARM64 · EXE (Inno Setup)
Lydløs installation
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-discloud-cli.ps1
$url = 'https://github.com/discloud/cli-dart/releases/download/1.5.2/discloud-cli-x64-setup.exe'
$sha256 = '12FE777962F53282D3D4D231357905342BED45F6BA05DFDA36FA1AFFD0C91085'
$file = Join-Path $env:TEMP 'discloud-cli-x64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-discloud-cli.ps1
$url = 'https://github.com/discloud/cli-dart/releases/download/1.5.2/discloud-cli-x64-setup.exe'
$sha256 = '12FE777962F53282D3D4D231357905342BED45F6BA05DFDA36FA1AFFD0C91085'
$file = Join-Path $env:TEMP 'discloud-cli-x64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait