Cordova Commands
There are some cases where the PhoneGap CLI and Cordova CLI have similar commands but behave differently. The PhoneGap serve
command is a good example of this. Another difference is found when using the phonegap build
or phonegap run
commands versus the Cordova CLI equivalent. The PhoneGap CLI version will automatically add the platform target if it doesn't already exist.
When you want to specifically run the cordova
version of a command, you can add cordova
as the prefix to that command. The Cordova CLI version of a command will automatically be used for any commands that are not enhanced by the PhoneGap CLI without having to specifically type cordova
.
Usage
phonegap cordova <command>
Example
$ phonegap cordova serve
Edit this page on GitHub