Node.js wrapper for saucectl.
To install saucectl via npm, simply run the following command:
$ npm i -g saucectlThe command should be globally available:
$ saucectl -v
saucectl version 0.197.2
(build a301436d5b178bcfda8db106c50bfb78ac5be679)Note: When you run the command for the first time, it will initially download the binary. This only happens once.
Note: saucectl installation is disabled on Sauce Labs Cloud. If you wish to force the installation, set
the SAUCECTL_FORCE_INSTALL environment variable to true.
If you want the installer to download saucectl from a specific source, set the following environment variable:
macOS/Linux:
export SAUCECTL_INSTALL_BINARY=http://localhost:9000/saucectl_0.32.2_mac_64-bit.tar.gzWindows (PowerShell):
$env:SAUCECTL_INSTALL_BINARY = "http://localhost:9000/saucectl_0.32.2_win_64-bit.zip"Windows (Command Prompt):
set SAUCECTL_INSTALL_BINARY=http://localhost:9000/saucectl_0.32.2_win_64-bit.zipOverride the default download site by setting the SAUCECTL_INSTALL_BINARY_MIRROR environment variable to a
custom URL. The default site is Sauce Labs saucectl releases.
macOS/Linux:
SAUCECTL_INSTALL_BINARY_MIRROR=https://your-mirror-download-site.com/foo/bar npm i -g saucectlWindows (PowerShell):
$env:SAUCECTL_INSTALL_BINARY_MIRROR = "https://your-mirror-download-site.com/foo/bar"
npm i -g saucectlWindows (Command Prompt):
set SAUCECTL_INSTALL_BINARY_MIRROR=https://your-mirror-download-site.com/foo/bar
npm i -g saucectlIf you already have a saucectl binary on your machine, you can point the installer directly to it by setting
the SAUCECTL_INSTALL_BINARY_LOCAL environment variable to the absolute (or relative) path of the binary.
No download will occur. The binary will be copied into the package's bin directory.
macOS/Linux:
export SAUCECTL_INSTALL_BINARY_LOCAL=/usr/local/bin/saucectl
npm i -g saucectlWindows (PowerShell):
$env:SAUCECTL_INSTALL_BINARY_LOCAL = "C:\tools\saucectl.exe"
npm i -g saucectlWindows (Command Prompt):
set SAUCECTL_INSTALL_BINARY_LOCAL=C:\tools\saucectl.exe
npm i -g saucectlNote:
SAUCECTL_INSTALL_BINARY_LOCALtakes precedence overSAUCECTL_INSTALL_BINARYandSAUCECTL_INSTALL_BINARY_MIRRORif multiple variables are set simultaneously.
For more information about saucectl, visit its main repository: saucelabs/saucectl.