A command line interface for the BrowserStack API.
npm install browserstack-clibrowserstack-cli
================
Awesome command line interface for the browserstack api.
npm install -g browserstack-cli
Setup your credentials and API key. This will prompt for your BrowserStack username/password and your tunneling API keys, which you can get from their automated browser testing page and local testing page while you are logged in.
browserstack setup
Get a list of available browsers:
browserstack browsers
Launch firefox 3.6 and point it to google.com:
browserstack launch firefox:3.6 http://google.com
Launch will use the latest version if none is specified:
browserstack launch firefox http://google.com
Using the `--attach option keeps the program running until it receives a SIGTERM or a SIGINT (CTRL-C) signal, at which point it kills the remote browser and then exits.
browserstack launch --attach firefox http://google.com
Can you launch mobile browsers? Yes.
browserstack launch "iPhone 5" http://google.com
browserstack jobs
Kill a job by ID
browserstack kill 514664
or kill'em all
browserstack killall
browserstack tunnel localhost:8080
Commands:
setup Initial setup
launch
browsers List available browsers
jobs List active jobs
kill
killall Kill all active jobs
tunnel
status Get the current status
Options:
-h, --help output usage information
-V, --version output the version number
-u, --user
-a, --attach Attach process to launched browser
-o, --os
-t, --timeout
-p, --private Use the private web tunneling key for manual testing
-k, --key
browserstack-cli is supported by a companion library browseroverflow which is essentially a one-to-one mapping of browserstack-cli's` commands to API calls.
To ask a question or report an issue, please open a github issue.