node-firefoxos-cli

Firefox OS command line commander

npm install node-firefoxos-cli
3 downloads in the last day
9 downloads in the last week
29 downloads in the last month

Firefox OS Node Command Line Develoment Tools

node library + command line tool to perform basic web app development stuff

Currenty supporting

  • Installing app
  • Taking screenshots
  • Logcat
  • Reset b2g process

Next to come

  • Uninstall
  • Launch

Based on @fabricedesr amazing work on b2gremote and digitalrald for his work on make-fxos-install

Don't forget

Enable remote debugging in the device and of course run

npm install

Examples

In the examples folder you could find some code that shows the use of this library, also find below some code examples.

Installing

var ffos_cli = require('./index.js');

ffos_cli.installPackagedApp('boilerplate', './application.zip', function onInstall(err, done) {
  if (err) {
    console.error('Error updating app: ' + err);
  } else {
    console.log('Successfuly installed');
  }
  process.exit(0);
});

Reset B2G process

var ffos_cli = require('./index.js');

ffos_cli.resetB2G(function onReset() {
  console.log('B2G process reseted');
  process.exit(0);
});

Logcat

var ffos_cli = require('./index.js');

ffos_cli.logcat(); //Output logcat from device continously
npm loves you