Needs review
Project:
Drupal core
Version:
main
Component:
CLI system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2026 at 19:41 UTC
Updated:
28 Oct 2026 at 14:07 UTC
Jump to comment: Most recent
Comments
Comment #2
moshe weitzman commentedComment #3
moshe weitzman commentedComment #5
moshe weitzman commentedComment #6
moshe weitzman commentedComment #7
vannergard commentedTested this on a local fresh install of 12.0 and on an established site on 11.4.10. This is the first Need review ticket I took a close look at so I hope I am not doing anything the wrong way here.
The command works for setting and unsetting maintenance and the status combines the drush command for get and status.
The old drush get command did not give an error when Maintenance mode enabled though, and this might be something that I could see some automation tools or such need to be able to need so it is possible there is a reason to not limit to status and get.
Also the output when no value is set on 12.0 is a bit confusing, as
[0] 1
[1] 0
is not super clear if selecting 0 will enable or selecitng 1 will enable.
It turns out selecting 1 here enables so possibly this could be clearer or is there a reason to have the output like this?
Keeping it as Need Review (both because of my questions and because I am not sure this is enugh)