drush state-setfor drush 8x


Set a state value.

drush state-set

  • Aliases


    state-set has 1 alias/es:


    drush sset

  • Arguments


    state-set accepts 2 argument/s:


    key : The state key, for example "system.cron_last".

    value : The value to assign to the state key. Use '-' to read from STDIN.

  • Options


    state-set accepts 3 option/s:


    --format

    --format : format

    --input-format

    --input-format : input-format

    --value

    --value : value

  • Examples


    Sets a timestamp for last cron run.

    drush state-set system.cron_last 1406682882 --format=integer

    Set a key to a complex value (e.g. array)

    php -r "print json_encode(array('drupal', 'simpletest'));"  | drush state-set --format=json foo.name -

  • Comments


    comments powered by Disqus