zaporylie/drush-maintenance-mode

Validates which drush commands can run when Drupal is in maintenance mode.

Maintainers

👁 zaporylie

Package info

github.com/zaporylie/drush-maintenance-mode

Type:drupal-drush

pkg:composer/zaporylie/drush-maintenance-mode

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.0 2020-11-28 11:09 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0+ 88434c9ecb080c66bab29f925d36ff5805d0f953

  • Jakub Piasecki <jakub.woop@piaseccy.pl>

This package is auto-updated.

Last update: 2026-06-29 01:43:58 UTC


README

Restricts list of drush commands that are allowed to be run when the site is in maintenance mode.

Installation

composer require zaporylie/drush-maintenance-mode

Configuration

Create a file .drush-maintenance-mode.yml in project's root directory (composer root). List all commands (by command name) under commands.allowed property. Command names should be used as keys.

Example:

commands:
 allowed:
 // Preview site state.
 'core:status':
 // Clear cache.
 'cache:clear':
 // Take the site out of maintenance mode using drush.
 'state:set':
 // Update database.
 'updatedb':
 'updatedb:status':
 // Export configuration split.
 'config-split:export':
 // Import configuration.
 'config-split:import':
 'config:import':
 // Import translations.
 'locale:update':
 // Used internally by bunch of commands above.
 'batch:process':