Edit on GitHub
Jump to docs navigation

Nut command / Configuration / config:get

Nut's config:get command returns 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:get [options] [--] <key>

Arguments

Argument Description
key The key configuration key you wish to get

Options

Option Description
-f, --file[=FILE] Specify config file to use

Examples

Query current theme

$ php ./app/nut config:get theme
theme: base-2016

Querying the "quality" value of "thumbnails"

$ php ./app/nut config:get thumbnails/quality
thumbnails/quality: 80

Query a ContentType's field type

$ php ./app/nut config:get pages/fields/body/type --file contenttypes.yml
pages/fields/body/type: html
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 IRC.