Skip to content


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


  • drush config:set page.front '/path/to/page'. Sets the given URL path as value for the config item with key page.front of config object.
  • drush config:set '[]'. Sets the given key to an empty array.


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


  • --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).


  • cset
  • config-set


  • 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.