Cordova CLI (Command Line Interface) after v3.0

Cordova CLI (Command Line Interface) after v3.0

A command-line interface (CLI) is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines).

Lets check the PhoneGap/Cordova CLI after v3.0 :-

With earlier versions of Cordova, developers had to create multiple projects, Process included – building the app with one of the supported platforms, write the appropriate web content, then package and test the application using the selected platform’s SDK And once worked correctly, next step was to copy the web content over to a new project for one of the supported platforms and repeat the process.

Cordova v3.0 is the major update as it is very different from the previous versions. Know the difference between Cordova before and after V3.0

Cordova 3.0 includes a CLI (Command Line Interface) that provides a suite of commands a developer can use to :

– Create cross-platform Cordova application projects
– Add support for each of the Cordova supported mobile device platform
– List supported mobile device platforms
– Remove support for a mobile device platform
– Add a plugin to a project; this can be a core Cordova plugin, a third-party plugin, or a plugin you’ve created yourself
– List plugins installed in a project
– Remove a plugin from a project
– Prepare, compile, and build projects
– Serve an application project’s web content via a web server
– Launch an application in the appropriate mobile device simulator

Developer can manage the complete life-cycle of a Cordova application by using these commands.

PhoneGap/Cordova V3.0 and later includes a CLI (Command Line Interface) that provides a suite of commands a developer can use to manage the complete lifecycle of an application.
Know more about the CLI commands and their usage.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.