Edit on GitHub
Jump to docs navigation

Console command / Configuration / config:get

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

Nut's config:get command returns the value of an existing key in Bolt's configuration files, by default config.yaml.

Note: sub keys can be specified in the key argument using /as a delimiter, e.g. thumbnails/quality.


    php ./bin/console config:get [options] [--] <key>


Argument Description
key The key configuration key you wish to get


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


Query current theme

$ php ./bin/console config:get theme
theme: base-2016

Querying the "quality" value of "thumbnails"

$ php ./bin/console config:get thumbnails/quality
thumbnails/quality: 80

Query a ContentType's field type

$ php ./bin/console config:get pages/fields/body/type --file contenttypes.yaml
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.