Skip to content

config:set

Set config value directly. Does not perform a config import.

Examples

  • drush config:set system.site page.front '/path/to/page'. Sets the given URL path as value for the config item with key page.front of system.site config object.

Arguments

  • --config_name. The config object name, for example system.site.
  • --key. The config key, for example page.front.
  • [--value]. The value to assign to the config key. Use - to read from STDIN.

Options

  • --input-format[=INPUT-FORMAT]. Format to parse the object. Recognized values: string, yaml [default: string]
  • --value=VALUE. The value to assign to the config key (if any).

Aliases

  • cset
  • config-set

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.