title | level |
---|---|
config:set |
intermediate |
Nut's config:get
command updates the value of an existing key in Bolt's
configuration files, by default config.yml
.
Note: sub keys can be specified in the
key
argument using /
as a delimiter, e.g.
thumbnails/quality
.
php ./app/nut config:set [options] [--] <key> <value>
Argument | Description |
---|---|
key | The key configuration key you wish to get |
value | The value you wish to set it to |
Option | Description |
---|---|
-f, --file[=FILE] | Specify config file to use |
-b, --backup | Make a backup of the config file |
$ php ./app/nut config:set debug true
New value for debug: true was successful. File updated.
$ ./app/nut config:set pages/fields/body/type text --file contenttypes.yml
New value for pages/fields/body/type: text was successful. File updated.