2.0.8 • Published 6 months ago

cordova-update-config-enhanced v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

cordova-update-config-enhanced

A node command line tool to update cordova's config.xml, useful in continuous integration build environments.

Extends the original cordova-update-config and adds support for multiple config-files and updating android-version-codes.

Install

  npm i -g cordova-update-config-enhanced

Example Usage

Update all configs

The following example updates the version-attribute to 1.0.5 in each config(.?*).xml and increments the android-versionCode-attribute by one in each config.

  cordova-update-config-enhanced --appversion 1.0.5 --androidversion

Update only main config

The following example updates the name-tag in the main cordova-config config.xml.

  cordova-update-config-enhanced --appname test -c

Update single config

The following example increments the android-versionCode-attribute in the file config.beta.xml. This is particularly useful for beta-builds that will be uploaded to google play, as every new version needs an updated android-versionCode.

  cordova-update-config-enhanced -c beta --androidversion

Help

To get a usage description use:

  cordova-update-config-enhancedg --help

Options

All options are optional, use --help (-h) to get more information.

AliasArgumentDescription
-h--helpDisplay this usage guide.
-v--versionDisplay the version of this command
-n--appname stringThe application name to update config.xml
-a--appversion stringThe application version to update config.xml
-i--appid stringThe application id to update config.xml
--androidversion stringThe android version code to set in config.xml. If empty the current version-Code will be incremented
-r--rootAbsolute path to folder containing config.xml
-f--fileAbsolute path to config.xml
-c--confignameWhich config file to update. If not set all detected config files will be updated. To update only the main config (config.xml) use this option without providing a value
2.0.5

9 months ago

2.0.4

9 months ago

2.0.7

9 months ago

2.0.6

9 months ago

2.0.8

6 months ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-0

2 years ago