config set

Parameters:
Name Type Required Default Hint
_ string false Pass any number of property names in followed by the value to set
append boolean false false If setting an array or struct, set to true to append instead of overwriting.

Command Usage

Set config settings in commandbox.json.

config set name=mySetting
Nested attributes may be set by specifying dot-delimited names or using array notation.
If the set value is JSON, it will be stored as a complex value in the commandbox.json.

Set module setting
config set modules.myModule.mySetting=foo
Set item in an array
config set myArraySetting[1]="value"
Set multiple params at once
config set setting1=value1 setting2=value2 setting3=value3
Override a complex value as JSON
config set myArraySeting="[ 'test@test.com', 'me@example.com' ]"
Structs and arrays can be appended to using the "append" parameter.

Add an additional settings to the existing list
This only works if the property and incoming value are both of the same complex type.
config set myArraySetting="[ 'another value' ]" --append