wp-cli/maintenance-mode-command
Enables, disables, and checks WordPress maintenance mode from the command line using WP-CLI. Manage the .maintenance file with simple commands, optionally adding a custom message or retry interval, without touching the dashboard or filesystem manually.
activate, deactivate, status) under MIT, maintained inside the official WP-CLI org and shipped with the WP-CLI bundle most teams already install. Writing and maintaining this in-house is strictly negative ROI unless requirements diverge (see next section).status check and a scriptable toggle let you define what "we are in maintenance" means operationally — and lets on-call automate the toggle during a bad release instead of relying on an admin being awake with wp-admin access.Signal interpretation for planning: 11 stars and 0 dependents are not adoption evidence against it. This is an extracted slice of WP-CLI core's maintenance-mode command, distributed via the WP-CLI bundle rather than installed per-project — star counts on such packages are structurally meaningless. Weight the organizational backing (WP-CLI), the MIT license, and the tiny surface area instead.
Adopt when:
Look elsewhere when:
Adoption risk is low but non-zero: the command surface is small and the code is linted, statically analysed, and covered by Behat acceptance tests per the repo's contribution standards, so upgrade risk is minor. Pin it and move on. Note the release cadence is versioned but not a support commitment.
For executives: "Today, taking a WordPress site down for a release depends on a person remembering to click a button, and nobody can prove afterwards whether it happened. This is a small, free, MIT-licensed command that is part of the official WP-CLI toolset — the same one our deploys already use. It makes 'put the site in maintenance mode' a scripted, logged step. No new vendor, no procurement, no new credentials. The realistic outcome is fewer botched releases and a cheaper incident response, not a new product capability."
For engineering: "wp maintenance-mode activate|deactivate|status. Official WP-CLI package, MIT, no runtime dependency beyond the WP-CLI you already have in the deploy image. WP-CLI coding standard, PHPStan, and Behat acceptance coverage in CI; the command surface is three verbs, so integration cost is hours, not a sprint. Wire status into your pre-deploy gate and wrap the toggle in the release job so a failed deploy cannot strand the site in maintenance. Two deliberate non-goals: it does not render a custom holding page and it does not do per-role or per-IP bypass — if we need either, that's a separate decision and we should make it explicitly rather than stretching this."
The one-line ask: approve adding it to the deploy image and to the release runbook; revisit the customer-facing holding page as its own initiative.
How can I help you explore Laravel packages today?