Cordova – update all plugins in project

A quick hack to update all the Cordova plugins used in a Cordova project. Next hack will be updating all Cordova platforms…

From the Cordova project run the following (unix shell required):

cordova plugins | grep -Eo '^[^ ]+' | while read line
do
    echo "cordova plugin remove $line"
    echo "cordova plugin add $line"
done

4 Comments

  1. Pingback: EeKay's Blog | Lightning Tip #2: Renew all your project’s #cordova plugins at once

  2. Nice idea… But since some plugins might be dependent on 1 other (e.g. cordova-plugin-media-capture and cordova-plugin-compat), you might not be able to remove the ones that other’re dependent on.

Leave a Reply to Ferri Cancel reply

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