Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Command line development tools for Firefox OS
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples/install
remote_debugger
.gitignore
README.md
index.js
package.json

README.md

Firefox OS Node Command Line Develoment Tools

node library + command line tool to perform basic web app development on Firefox OS phones.

Currenty supporting

  • Installing app
  • Taking screenshots
  • Logcat
  • Reset b2g process
  • Close App
  • Launch App

Next to come

  • Uninstall

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

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('node-firefoxos-cli');

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

Launching an app

var ffos_cli = require('node-firefoxos-cli');

ffos_cli.launchApp('boilerplate').then(process.exit);

Stopping an app

var ffos_cli = require('node-firefoxos-cli');

ffos_cli.closeApp('boilerplate').then(process.exit);

Reset B2G process

var ffos_cli = require('node-firefoxos-cli');

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

Logcat

var ffos_cli = require('node-firefoxos-cli');

//Output logcat from device continously
ffos_cli.logcat();
Something went wrong with that request. Please try again.