Status : Proposed
To save or remove dependencies, users must include the --save flag.
Examples: cordova platform add ios --save cordova plugin add cordova-plugin-camera --save
Autosave will be the default option. Example: cordova platform add ios This command will automatically save the ios platform. Include a --no-save flag to not save. Example: cordova platform add ios --nosave This command will allow the ios platform to NOT be saved.
Autosave will only be used in the cli right now (not cordova-lib). If you're using cordova-lib directly, you will still need to use the --save flag.
Include a global config to turn autosave off for cordova. https://issues.apache.org/jira/browse/CB-11982
https://issues.apache.org/jira/browse/CB-12008
Our analytics show --save usage is pretty low (presumably due to people not knowing about it). By having autosave as the default, users won’t have to worry about remembering to save. If users don’t want to save, there are options to opt out of saving with the new --nosave flag.