Monday, 9 November 2015

Must Know PhoneGap CLIs

In order to deal with phonegap, you should be very handy with the initial command line interface of phonegap, this is one of the cool feature of  which lets you work very quickly and create apps with an ease, so I am going to write the  list of some must know commands which are very helpful while developing a phonegap app

Install Phonegap/Cordova

npm install -g cordova

Create an App

cordova create my-app

Create Platforms, which lets you run your code in different OS

cordova platform add ios
cordova platform add amazon-fireos
cordova platform add android
cordova platform add blackberry10
cordova platform add firefoxos

Remove Platforms

cordova platform rm android

Build App

cordova build
cordova build ios

Test App on Emulator

cordova emulate android

Add a plugin to your app

cordova plugin add org.apache.cordova.camera
cordova plugin add org.apache.cordova.media-capture
cordova plugin add org.apache.cordova.media

Remove a plugin

cordova plugin rm org.apache.cordova.camera

List all the plugins added in the mobile app

cordova plugins ls

Help

cordova help
cordova info

Update Platform

cordova platform update android
cordova platform update ios

Run Phonegap/Cordova app

cordova run android
cordova run ios










 

No comments:

Post a comment