Skip to content

Add Node.js package as CLI client #519

@christian-bromann

Description

@christian-bromann

🚀 Feature Proposal

Have you read the contributing guidelines on issues?

  • Yes

Description

Our Node.js client allows to fetch our API through the command line, e.g.:

$ npm install -g saucelabs

Export credentials:

$ export SAUCE_USERNAME=<username>
$ export SAUCE_ACCESS_KEY=<access-key>

Access our API:

$ sl -u listJobs $SAUCE_USERNAME --limit 5 --region eu
{ jobs:
   [ { id: '19dab74f8fd848518f8d2c2cee3a6fbd' },
     { id: 'dc08ca0c7fa14eee909a093d11567328' },
     { id: '5bc6f70c777b4ae3bf7909a40f5ee41b' },
     { id: 'f40fe7b044754eaaa5f5a130406549b5' },
     { id: 'd1553f71f910402893f1e82a4dcb6ca6' } ] }

Motivation

I believe this can help customer a lot to explore our API and their data.

Example

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions