Edit on GitHub
Jump to docs navigation

Nut command / Configuration / config:set

Note: You are currently reading the documentation for Bolt 3.7. Looking for the documentation for Bolt 5.2 instead?

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


Enabling debugging

$ php ./app/nut config:set debug true
New value for debug: true was successful. File updated.

Setting a ContentType field type

$ ./app/nut config:set pages/fields/body/type text --file contenttypes.yml
New value for pages/fields/body/type: text was successful. File updated.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.