Skip to content
sauce-labs-cli
Menu

Use cases

Use cases

These are made-up scenarios, not customer stories. Each shows the commands that answer one everyday question.

Which build did last night’s run use?

Find the App files uploaded for a feature, with their full metadata.

Sample commands

  • sauce storage files list --query checkout --verbose

Did the last ten jobs pass?

List recent jobs, then print a Job summary for one of them.

Sample commands

  • sauce jobs list --limit 10
  • sauce jobs info 1234abcd

A flaky test needs a label

Mark the job failed and tag it, so it is easy to find in the dashboard.

Sample commands

  • sauce jobs edit 1234abcd --failed --tag flaky

An App group should run in portrait

Lock the group’s Orientation and turn off Resigning.

Sample commands

  • sauce storage groups edit 504739 --orientation portrait
  • sauce storage groups edit 504739 --no-resigning

A script must not print anything

Run in Silent mode and branch on the exit code.

Sample commands

  • sauce storage files delete 88e3e7b1 --silent || echo failed

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.