First Steps with Cordova

How to install Apache Cordova globally with npm:

$ npm install -g cordova

Add a Cordova platform (e.g. Tabris.js):

$ cordova platform add ${TABRIS_PLATFORM_ANDROID}

List all installed Cordova plugins:

$ cordova plugin ls
com.eclipsesource.tabris.maps 1.2.0 "Tabris Maps Widget"

Plug in your Android phone and run the app:

$ cordova run

This will trigger a Cordova build and installs and launches the app directly on your phone.

Show Comments