10

I have installed all my cordova plugins using the following syntax:

cordova plugin add <plugin-name>

I know (now) that if you add the --save flag to your install command, it will add your plugins to config.xml

cordova plugin add <plugin-name> --save

But, is there a lazy way to automatically add my already installed plugins to config.xml with something like this:

cordova plugin save-installed

If I am missing something obvious here, don't be shy to point me in the right direction.

emccracken
  • 839
  • 12
  • 21

1 Answers1

24

As reported in this cordova release post from cordova 5 you can add already installed plugins to config.xml using just one command:

cordova plugin save

This will save all previously installed plugins into your project’s config.xml.

You can check the latest cordova plugin documentation for more details.

If you need to do the same with the installed platforms, just run cordova platform save.

lifeisfoo
  • 15,478
  • 6
  • 74
  • 115