How to install all my codrova plugins listed in package.json

Hi, I have two questions regarding my “package.json” file:

  1. When I start a default project it has included the following plugins:

    “cordovaPlugins”: [
    “org.apache.cordova.device” ]

Is there any command I can run to install them again except running cordova plugin add 3 times?

  1. If I want to add a new plugin, e.g., is there a way to automatically add it in my “package.json”?
    Something like: cordova plugin add xxx --save (like with bower)

I’d say Raymond Camdon explains this very well in a blog post he just posted minutes ago :wink:
It responds exactly to your question.

ionic state reset

Something like this should work.


this worked nicely for me.

here is a good link with some useful state commands:

1 Like

there is cordova compare

try it

Hi guys,
I have developped a small plugin to download and install all plugins listed in plugins/fetch.json (this file contains also the variables used when you install some plugins that’s why I chosed it).
You can check it here :

actually, it’s:
# ionic state restore
not reset.

# ionic state
it has been removed as of CLI 3.0.

This command is working:

# ionic cordova prepare

Cordova will install platforms and plugins listed in config.xml


ionic cordova prepare


ionic state reset has been removed as of CLI 3.0.

User ionic cordova prepare to install all plugins listed in package.json

1 Like

ionic cordova prepare

install platforms and plugins listed in config.xml

Run npm install before

my ionic version 3.20.0
my cordova version 8.0.0


Nice, ionic cordova prepare working good.