package 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 values set in box.json for this package. Command must be executed from the root
directory of the package where box.json lives.

set package name

package set name=myPackage
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 box.json.

set repo type
package set repository.type=Git
set first testbox notify E-mail
package set testbox.notify.email[1]="brad@bradwood.com"
Set multiple params at once
package set name=myPackage version="1.0.0" author="Brad Wood" slug="foo"
Set complex value as JSON
package set testbox.notify.emails="[ 'test@test.com', 'me@example.com' ]"
Structs and arrays can be appended to using the "append" parameter.

Add an additional contributor to the existing list
This only works if the property and incoming value are both of the same complex type.
package set contributors="[ 'brad@coldbox.org' ]" --append