CLI utility that helps you capture screenshots via browsers in the cloud



capturme is available on npm and should be installed globally:

  $ npm install captureme -g


captureme uses SauceLabs under the hood, so you'd need to sign up if you don't have an account yet. After that, configure the authentication credentials you'd like to use:

  $ export SAUCE_USERNAME="user"
  $ export SAUCE_ACCESS_KEY="key"

Capture sreenshots

Using captureme is easy. All you need to do is specify a URL to capture and a list of browsers:

  $ captureme --url --browsers ie8,ipad6,iphone7,ff26,chrome30

You can also specify the size of the browsers:

  $ captureme --url --browsers ff26 --size 800x600

captureme also works with localhost. It uses the awesome localtunnel project that exposes your localhost to the world temporally, so the browsers can open it:

  $ captureme --url http://localhost:8080/articles/chaijs --browsers ff26

--url is the url of the page that will be captured

--size browser size, example: 600x480

--browsers is a comma separated list with aliases for browsers to be used. See "Available aliases"


If you'd like to see a verbose output of what captureme is doing, you can do so by setting the DEBUG environment varialbe to "captureme:*":

  $ DEBUG=captureme:* captureme --url http://localhost:8080/ --browsers ff26

That will print information that could be useful when debugging problems or if you are curious what is currently going on.

Available aliases

Custom aliases

You can override the default aliases or introduce your own by creating a JSON file in $HOME/.captureme.json. The file should be formatted like so:

    "SOL": {
      "name": "internet explorer",
      "platform": "Windows XP",
      "version": "6"

See all available platforms on SauceLabs


MIT License

Fork me on GitHub