Firefox OS command line commander

npm install node-firefoxos-cli
4 downloads in the last week
23 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


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


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

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

Reset B2G process

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

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


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

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