I use Cordova 5.0.0 and i have the following project structure:
MyProject
- hooks
- platforms
- plugins
- resources
- www
- config.xml
>
You can save platform and plugin afterwards by using following commands.
platform mass saving
$ cordova platform save
Plugins mass saving
$ cordova plugin save
Kindly note that there is no -- in above commands
One More thing, after fetching repo on another machine you just run following command to generate and fetch plugins and platforms automatically
$ cordova prepare
For more reference visit the links below. https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/#mass-saving-platforms-on-an-existing-project
Cordova Tip: Always refer to official docs before before anything else to get the right solution.