I am new to the Cordova CLI.
I need to perform the following steps programmatically via Cordova.
I don't think you can do this via straight config.xml modification. At least, I didn't see any mention of this in the docs: http://cordova.apache.org/docs/en/3.3.0/config_ref_index.md.html
I think you have to create a plugin, because they can insert plist entries: http://docs.phonegap.com/en/3.3.0/plugin_ref_spec.md.html#Plugin%20Specification
See the 'config-file element' section. Here's a guess as to what the relevant section of the plugin.xml will look like:
GDLibraryMode
GDEnterpriseSimulation
Then you can install the plugin: cordova plugin add