drush config-listfor drush 8x

List config names by prefix.

drush config-list

  • Aliases

    config-list has 1 alias/es:

    drush cli

  • Arguments

    config-list accepts 1 argument/s:

    prefix : The config prefix. For example, "system". No prefix will return all names in the system.

  • Options

    config-list accepts 12 option/s:

    --format : Select output format. Available: json, list, var_export, yaml. Default is json.

    --fields : Fields to output.

    --list-separator : Specify how elements in a list should be separated. In lists of lists, this applies to the elements in the inner lists.

    --line-separator : In nested lists of lists, specify how the outer lists ("lines") should be separated.

    --field-labels : Add field labels before first line of data. Default is on; use --no-field-labels to disable.

    --format=json : Javascript Object Notation.

    --format=config : A configuration file in executable php format. The variable name is "config", and the variable keys are taken from the output data array's keys.

    --format=list : A simple list of values.

    --format=php : A serialized php string.

    --format=print-r : Output via php print_r function.

    --format=var_export : An array in executable php format.

    --format=yaml : Yaml output format.

  • Examples

    Return a list of all system config names.

    drush config-list system

    Return a list of all image styles.

    drush config-list "image.style"

    Return all config names as json.

    drush config-list --format="json"

  • Comments

    comments powered by Disqus