Windows

Install Forwarder on Windows #

Unpack the zip file #

mkdir C:\forwarder
Invoke-WebRequest -Uri https://github.com/saucelabs/forwarder/releases/download/v1.2.1/forwarder-1.2.1_windows.aarch64.zip -OutFile forwarder.zip
Expand-Archive -Path forwarder.zip -DestinationPath C:\forwarder
mkdir C:\forwarder
Invoke-WebRequest -Uri https://github.com/saucelabs/forwarder/releases/download/v1.2.1/forwarder-1.2.1_windows.x86_64.zip -OutFile forwarder.zip
Expand-Archive -Path forwarder.zip -DestinationPath C:\forwarder

Add the binary to PATH #

Add C:\forwarder to PATH environment variable

$currentPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)
$newPath = "$currentPath;C:\forwarder"
[System.Environment]::SetEnvironmentVariable('PATH', $newPath, [System.EnvironmentVariableTarget]::Machine)

Add completion #

Open PowerShell and check if you already have a profile.

Test-Path $PROFILE

If the command returns False, create a new profile.

New-Item -ItemType File -Path $PROFILE -Force

Add PowerShell completion to the profile.

Add-Content -Path $PROFILE -Value ". C:\forwarder\completions\forwarder.ps1"

Edit config file #

This step is optional. You can use default configuration or configure Forwarder with flags or environment variables. See CLI reference for more details.

notepad C:\forwarder\forwarder.yaml

Start Forwarder #

forwarder.exe run --config-file C:\forwarder\forwarder.yaml

© 2024 Sauce Labs Inc.