drush state-set

Set a state value.

Drush Command

drush state-set

Arguments

key : The state key, for example "system.cron_last".
value : The value to assign to the state key. Use '-' to read from STDIN.

Aliases

drush sset

Options

--format : [object Object]
--input-format : [object Object]
--value : [object Object]

Examples

Sets a timestamp for last cron run.

drush state-set system.cronlast 1406682882 --format=integer
Set a key to a complex value (e.g. array)
php -r "print jsonencode(array('drupal', 'simpletest'));"  | drush state-set --format=json foo.name -