diff --git a/runpodctl/overview.mdx b/runpodctl/overview.mdx index a7bb931f..9fdcf671 100644 --- a/runpodctl/overview.mdx +++ b/runpodctl/overview.mdx @@ -99,9 +99,34 @@ export PATH="$HOME/.local/bin:$PATH" -```bash -wget https://github.com/runpod/runpodctl/releases/latest/download/runpodctl-windows-amd64.exe -O runpodctl.exe -``` + +In PowerShell, `wget` is an alias for `Invoke-WebRequest`, so use `Invoke-WebRequest` directly. This installs runpodctl to `%LOCALAPPDATA%\runpodctl` and adds it to your `PATH`, so you can run `runpodctl` from any terminal. + +**AMD64 (x86_64):** +```powershell +$dest = "$env:LOCALAPPDATA\runpodctl" +Invoke-WebRequest -UseBasicParsing -Uri https://github.com/runpod/runpodctl/releases/latest/download/runpodctl-windows-amd64.zip -OutFile "$env:TEMP\runpodctl.zip" +Expand-Archive -Force -Path "$env:TEMP\runpodctl.zip" -DestinationPath $dest +$userPath = [Environment]::GetEnvironmentVariable('Path', 'User') +$pathEntries = @($userPath -split ';' | Where-Object { $_ }) +if ($pathEntries -notcontains $dest) { + [Environment]::SetEnvironmentVariable('Path', (($pathEntries + $dest) -join ';'), 'User') +} +``` + +**ARM64:** +```powershell +$dest = "$env:LOCALAPPDATA\runpodctl" +Invoke-WebRequest -UseBasicParsing -Uri https://github.com/runpod/runpodctl/releases/latest/download/runpodctl-windows-arm64.zip -OutFile "$env:TEMP\runpodctl.zip" +Expand-Archive -Force -Path "$env:TEMP\runpodctl.zip" -DestinationPath $dest +$userPath = [Environment]::GetEnvironmentVariable('Path', 'User') +$pathEntries = @($userPath -split ';' | Where-Object { $_ }) +if ($pathEntries -notcontains $dest) { + [Environment]::SetEnvironmentVariable('Path', (($pathEntries + $dest) -join ';'), 'User') +} +``` + +Open a new terminal so the `PATH` change takes effect, then verify with `runpodctl version`.