drush @mysite cget system.maintenance
shows:
message: '@mysite is currently under maintenance. We should be back shortly. Thank you for your patience.' langcode: en
Drupal 8 uses state values to record transient state, so drush @mysite sget system.maintenance_mode
gives me a 1
or a 0
.
But, try as I may, I cannot see how to set the boolean. I've tried:
$ drush @mysite sset system.maintenance.mode "TRUE" --format=boolean
$ drush @mysite sget system.maintenance_mode
0
$ drush @mysite sset system.maintenance.mode "TRUE" --format=auto
$ drush @mysite sget system.maintenance_mode
0
$ drush @mysite sset system.maintenance.mode true --format=auto
$ drush @mysite sget system.maintenance_mode
0
$ drush @mysite sset system.maintenance.mode true --format=boolean
$ drush @mysite sget system.maintenance_mode
0
What's the secret?