blob: af116fc4975b43b15021880de2490c3b52a7a1fa [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`.
Examples
cordova config set autosave false