On a project using cordova@5.4.0 & ionic-cli@1.7.8, I face 2 possibi
cordova@5.4.0
ionic-cli@1.7.8
i would try using ionic state save and ionic state restore to manage the configuration including plugins... See documentation for more information
ionic state save
ionic state restore