1

I have custom config addon set up and it contains some info already, entered on the addon deployment phase using following syntax (https://www.cloudcontrol.com/dev-center/Add-on%20Documentation/Deployment/Custom%20Config):

$ cctrlapp APP_NAME/DEP_NAME addon.add config.free --PARAMETER_NAME=PARAMETER_VALUE

I'm wondering if there s a way how to update config in order to add (or remove) additional key/value pairs without removing whole addon and adding it again with the old code?

Jura Khrapunov
  • 1,024
  • 6
  • 14

2 Answers2

3

This is already possible as of cctrl 1.8.1:

$ [sudo] pip install cctrl --upgrade

$ cctrlapp APP_NAME/DEP_NAME config.add PARAMETER_NAME1=PARAMETER_VALUE1 PARAMETER_NAME2=PARAMETER_VALUE2 PARAMETER_NAME3

$ cctrlapp APP_NAME/DEP_NAME config
PARAMETER_NAME1=PARAMETER_VALUE1
PARAMETER_NAME2=PARAMETER_VALUE2
PARAMETER_NAME3=true

$ cctrlapp APP_NAME/DEP_NAME config.remove PARAMETER_NAME1

$ cctrlapp APP_NAME/DEP_NAME config PARAMETER_NAME1
[ERROR] Key `PARAMETER_NAME1` not found.

$ cctrlapp APP_NAME/DEP_NAME config.add --force PARAMETER_NAME2=PARAMETER_VALUE4

$ cctrlapp APP_NAME/DEP_NAME config PARAMETER_NAME2
PARAMETER_VALUE4

Config add-on documentation page has been updated as well.

Fernando Á.
  • 7,295
  • 7
  • 30
  • 32
0

Currently not, but it's a planned feature.

Stefan Friesel
  • 823
  • 5
  • 19