Skip to main content

Install Sauce Connect on Windows

Unpack the zip file

mkdir C:\sauce-connect
Invoke-WebRequest -Uri -OutFile
Expand-Archive -Path -DestinationPath C:\sauce-connect

Add the binary to PATH

Add C:\sauce-connect to PATH environment variable.

$currentPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)
$newPath = "$currentPath;C:\sauce-connect"
[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:\sauce-connect\completions\sc.ps1"

Edit config file

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

notepad C:\sauce-connect\sauce-connect.yaml

Start Sauce Connect

sc.exe run --config-file C:\sauce-connect\sauce-connect.yaml