Skip to content
sauce-labs-cli
Menu

Unofficial command line client

Sauce Labs App Storage and Jobs, from your shell

Upload the .ipa and .apk files your mobile tests run against, then list, inspect and annotate the jobs those runs produce. One sauce command instead of hand-rolled curl calls.

Sample session (made-up ids)
sauce storage upload ./build/app.ipa88e3e7b1-690f-409f-ad5d-6519934c0d55sauce jobs list --limit 39f2c1a…
7b41de…
3ca908…sauce jobs edit 9f2c1a --failed --tag flaky9f2c1a

Terse output: only the ids each command produced, one per line.

From install to first command

  1. Step 1

    Find Credentials

    Flags win over the environment: --username and --access-key, else SAUCE_USERNAME and SAUCE_ACCESS_KEY. A .env or .env.local file in the working directory is loaded first and never overwrites a variable that is already set.

  2. Step 2

    Pick a Region

    --region, else SAUCE_REGION, else us-west-1. The Region selects the API host, api.<region>.saucelabs.com.

  3. Step 3

    Call the API

    App Storage commands call /v1/storage/…, Virtual-device job commands /rest/v1/<username>/jobs and Real-device job commands /v1/rdc/jobs, with HTTP basic auth.

  4. Step 4

    Print and exit

    Terse output by default, the full response with --verbose, nothing with --silent. The exit code tells a script what happened.

The whole path →

Script App Storage and Jobs without curl

A Node.js command line tool you run on your machine or in CI, with your own Sauce Labs account. Nothing in between.