Philipp Kursawe created CB-11752:
------------------------------------

             Summary: cordova plugins update
                 Key: CB-11752
                 URL: https://issues.apache.org/jira/browse/CB-11752
             Project: Apache Cordova
          Issue Type: Improvement
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: CLI
            Reporter: Philipp Kursawe
            Priority: Minor


Would be nice to have such a CLI command to update all or specific plugins.
The current `rm --save` && `add --save` is sub-optimal.

{code}
#!/bin/bash

PLUGINS=$(cordova plugin list | awk '{print $1'})

for PLUGIN in $PLUGINS; do
    cordova plugin rm $PLUGIN --save && cordova plugin add $PLUGIN --save
done
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to