blob: 2b0b35f0f7b1a85dbf7996fd772fdb7796e02900 [file] [log] [blame]
Synopsis
cordova-cli config <command> [options]
The config command can be used to set, get, delete, edit, and list global cordova options.
Options
--set <key> <value> ... Sets the config key to the value. If value is omitted, then it sets it to "true".
--get <key> ........... Echo the config value to stdout.
--delete <key> ........ Deletes the key from all configuration files.
--edit ................ Opens the config file in an editor.
--ls .................. Lists contents of config file.
Syntax
cordova-cli config set <key> <value> ....... cordova config set autosave true
cordova-cli config get <key> ............... cordova config get autosave
cordova-cli config delete <key> ............ cordova config delete autosave
cordova-cli config edit .................... cordova config edit
cordova-cli config ls ...................... cordova config ls
Options
autosave ...................... default setting = true
Allows the user to set save to true or false when adding platforms or plugins.
When false, platforms/plugins are not saved to `config.xml` and `package.json`.
browserify ...................... default setting = false
Allows the user to use the browserify module to bundle the JavaScript files of
the included plugins at build time versus our traditional run time loading of
those files.
Examples
cordova config set autosave false
cordova config set browserify true