Figuring out what version of Cordova created a project

This post is more than 2 years old.

Earlier today a user on Twitter asked how one could determine the version of Cordova used to create a project. As far as I knew there wasn't really a way to determine this, especially since there are multiple versions in play now. But I double checked on the main developer list just to be sure.

Once again, Cordova contributor Michal Mocny chimed in to provide some context. What follows is a summarized version of what he said. It meshes with what I knew as well so that makes it doubly true. ;)

While the "main" release of Cordova is (at the time I write this) 3.6.3, there are actually version numbers for the command line interface, each platform, and each individual plugin. In theory you should be more concerned with the platform and plugin versions. If the CLI updates, that may impact what you can do with the CLI (like some new feature), but it isn't changing what your application can do.

You can determine what version was used for your platforms by typing cordova platforms, as seen here:

And of course the same can be done for plugins:

So long story short - your main concern is with the versions of each platform and plugin.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA

Archived Comments

Comment 1 by Narayan posted on 10/12/2014 at 3:19 PM

Google requests us to update all phonegap apps to Cordova 3.5.1 due to some security update. I updated today phonegap local via npm update -g phonegap. When typing in command line phonegap -v, I get back 3.5.0. Why? What can be done to get phonegap 3.63?

Comment 2 by Raymond Camden posted on 10/13/2014 at 2:37 PM

PhoneGap is not as up to date as Cordova. I traditionally only use Cordova.