Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.11 KB

config-set.md

File metadata and controls

53 lines (36 loc) · 1.11 KB
title level
config:set
intermediate

config:get

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.

Usage

    php ./app/nut config:set [options] [--] <key> <value>

Arguments

Argument Description
key The key configuration key you wish to get
value The value you wish to set it to

Options

Option Description
-f, --file[=FILE] Specify config file to use
-b, --backup Make a backup of the config file

Example

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.