Omar Meky
Omar Meky

Reputation: 606

Update PhoneGap plugins via Cordova CLI

Is there a simply way to update all Cordova/PhoneGap installed plugins via the command line? Obviously you can remove each one and re-install but I would hope there is something simpler. I've tested out different commands and have tried to find documentation on this with no success.

Upvotes: 0

Views: 585

Answers (2)

Kerri Shotts
Kerri Shotts

Reputation: 2372

Shell script / batch file is how I do it:

$ vi updateProjectPlugins.shl

#!/bin/sh
cordova plugin rm org.apache.cordova.plugin1
cordova plugin rm org.apache.cordova.plugin2
...
cordova plugin add org.apache.cordova.plugin1
cordova plugin add org.apache.cordova.plugin2

$ sh ./updateProjectPlugins.shl

Upvotes: 1

TheMassassian
TheMassassian

Reputation: 119

Don't know if there is a command for that, but you could write a makefile for that perhaps?

Upvotes: 0

Related Questions