server set

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

Command Usage

Set values set in server.json for this server. Command must be executed from the web root
directory of the server where server.json lives.

set server port

server set web.http.port=8080
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 server.json.

Set a nested key
server set extra.info=value
set an item in an array
server set aliases[1]="/js"
Set multiple params at once
server set name=myServer web.http.port=8080
Set complex value as JSON
server set aliases="[ '/js', '/css' ]"
Structs and arrays can be appended to using the "append" parameter.

This only works if the property and incoming value are both of the same complex type.
server set aliases="[ '/includes' ]" --append