drush config-getfor drush 7x

Display a config value, or a whole configuration object.

drush config-get

  • Aliases

    config-get has 1 alias/es:

    drush cget

  • Arguments

    config-get accepts 2 argument/s:

    config-name : The config object name, for example "system.site".

    key : The config key, for example "page.front". Optional.

  • Options

    config-get accepts 19 option/s:


    --source : source


    --include-overridden : include-overridden


    --format : format


    --fields : fields


    --list-separator : list-separator


    --line-separator : line-separator


    --field-labels : field-labels


    --format=json : format=json


    --format=config : format=config


    --format=csv : format=csv


    --format=labeled-export : format=labeled-export


    --format=list : format=list


    --format=php : format=php


    --format=print-r : format=print-r


    --format=string : format=string


    --format=table : format=table


    --format=var_export : format=var_export


    --format=variables : format=variables


    --format=yaml : format=yaml

  • Examples

    Displays the system.site config.

    drush config-get system.site

    gets system.site:page.front value.

    drush config-get system.site page.front

  • Comments

    comments powered by Disqus