Useful Cordova Commands

Useful Cordova Commands

Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms’ native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device’s sensors, data, and network status.

Create New Application
$ cordova create <Folder-name> com.<Domain>.<application> <Application-name>

Add New Platform
$ cordova platform add <Platform-name>

List Platform
$ cordova platform ls

Build the App [Platform optional]
$ cordova build <Platform-name>

Test the App on an Emulator or Device
$ cordova emulate android

Add Plugin
$ cordova plugin add <Plugin-path>