Skip to content
sauce-labs-cli
Menu

Feature

A small API for Node.js code

The API layer behind the commands is exported, so Node.js code can call it without the CLI.

Import SauceClient with the functions you need, such as listJobs and uploadFile, from the sauce-labs-cli package, and pass the client plus a Region.

Failed requests reject with an HttpError that carries status, statusText, url and the parsed body.