Install Sauce Connect on macOS
With Homebrew
On macOS you can install Sauce Connect with Homebrew
Install
brew tap saucelabs/tap
brew install sauce-connect
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.
Get the default configuration file:
sc run config-file > sauce-connect.yaml
Edit the configuration file with your favorite editor:
vim sauce-connect.yaml
Start Sauce Connect
sc run --config-file sauce-connect.yaml
With zip package
Sauce Connect provides .zip
package with a signed binary that can be used on any macOS version.
Unpack the zip file
curl -L -o sauce-connect.zip https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect-5.2.2_darwin.all.zip
sudo mkdir -p /opt/sauce-connect
sudo unzip -d /opt/sauce-connect sauce-connect.zip
Check the signature
Run the following command, you should see Developer ID Application: SAUCE LABS INC
.
codesign -dvv /opt/sauce-connect/sc
Link the binary
sudo ln -s /opt/sauce-connect/sc /usr/local/bin/sc
Add completion
- Zsh
- Bash
echo 'source <(sc completion zsh)' >>~/.zshrc
echo 'source <(sc completion bash)' >>~/.bash_profile
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.
Edit the configuration file with your favorite editor:
vim /opt/sauce-connect/sauce-connect.yaml
Start Sauce Connect
sc run --config-file /opt/sauce-connect/sauce-connect.yaml