variable-get

Get a list of some or all site variables and values.

drush variable-get

Aliases:

Arguments:

name : A string to filter the variables by. Variables whose name contains the string will be listed.

Options:

--exact : Only get the one variable that exactly matches the specified name. Output will contain only the variable's value.

Examples:

List all variables and values.

drush vget

List all variables containing the string "user".

drush vget user

Show only the value of the variable with the exact key "site_mail".

drush vget site_mail --exact

Show only the variable with the exact key "site_mail" without changing the structure of the output.

drush vget site_mail --exact --pipe