$ErrorActionPreference = "Stop" $wheelPath = Join-Path $env:TEMP "argus-1.1.48-1e1f9f1ef9c36-py3-none-any.whl" try { Invoke-WebRequest -Uri 'https://api.argusfa.com/artifacts/cli/argus-1.1.48-1e1f9f1ef9c36-py3-none-any.whl' -OutFile $wheelPath $actualHash = (Get-FileHash -Algorithm SHA256 -LiteralPath $wheelPath).Hash.ToLowerInvariant() if ($actualHash -ne "e1f9f1ef9c362e667dbbafadf62406b1f9ecafc22057c87627ba3b2cb12f9b67") { throw "Argus CLI wheel SHA-256 verification failed." } $python = Get-Command py -ErrorAction SilentlyContinue if ($null -ne $python) { # Resolve dependencies normally, then refresh only the same-version Argus wheel. py -m pip install --user --upgrade --upgrade-strategy only-if-needed $wheelPath py -m pip install --user --force-reinstall --no-deps $wheelPath } else { python -m pip install --user --upgrade --upgrade-strategy only-if-needed $wheelPath python -m pip install --user --force-reinstall --no-deps $wheelPath } } finally { Remove-Item -LiteralPath $wheelPath -Force -ErrorAction SilentlyContinue } Write-Host "Argus CLI 1.1.48 installed." Write-Host "Interactive sign-in:" Write-Host " argus auth login" Write-Host "Then run a remote command:" Write-Host " argus company-fact-snapshot --company-id company:example-inc" Write-Host "Machine clients may instead set ARGUS_BASE_URL and ARGUS_MACHINE_API_KEY."