Edit on GitHub
Jump to docs navigation

Nut command / Configuration / config:get

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 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 Github.