$ErrorActionPreference = "Stop" $wheelPath = Join-Path $env:TEMP "argus-1.1.9-1725f23fe5d64-py3-none-any.whl" try { Invoke-WebRequest -Uri 'https://api.argusfa.com/artifacts/cli/argus-1.1.9-1725f23fe5d64-py3-none-any.whl' -OutFile $wheelPath $actualHash = (Get-FileHash -Algorithm SHA256 -LiteralPath $wheelPath).Hash.ToLowerInvariant() if ($actualHash -ne "725f23fe5d649afc071311f3a6a75b6a5be69080f4a85631d2d057fee1eee7f5") { 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.9 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."