Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Multisite Easy Commands

Security covered Under active development 13 sites

This module provides custom Drush commands to simplify running commands across multiple Drupal multisite installations. It allows you to easily select and save site URIs, eliminating the need to manually specify them for each command.

Multi Site Easy Commands

This is a Custom Drush commands module which helps in running drush commands
for a multisite setup. This module provides two ways to add sites url, a
configuration form and through terminal.



This module eliminates the need to copy site Uri everytime you need to
run a multisite drush command. MSL is short for Multi Site list.



It is recommended to install the module in main project site, else you will
have to run the command with the --uri option everytime.



Once you selected the Uri, module runs the provided command on the selected
site. If you want to save the selection in terminal session, use the
--save option and if you want to clear the selection in terminal
session, use the --clear option.

Requirements

This module requires the following modules:

Installation

Install as you would normally install a contributed Drupal module. For further
information, see
Installing Drupal Modules.

Configuration

  1. Enable the module at Administration > Extend.
  2. Click on the configure button on module description, or visit
    '/admin/config/msl-configuration' path.
  3. Click on Add more button to add site url and name.

Usage

drush msl "<params>" [--<opt>=<key>=<value>]...

Parameters

  • $params (string): A space-separated list of parameters. Use quotes to
    pass an array of parameters and backslash to escape special characters.

    Example: drush msl "-r -l -v etc..." or drush msl cr
  • $options (array): An array of options to use during processing.

Options

  • --save: Select a site to save (use this site as default).
  • --clear: Clear the site saved as default.
  • --remove: Remove the site from config data.
  • --opt: A key-value pair of drush command.

    Example: --opt=foo=bar --opt=baz=qux.
  • --opts: A comma-separated list of key-value pairs. Use quotes to pass an
    array of options.

    Example: --opts="foo=bar,baz=qux".
  • --add: A comma-separated list of key-value(site_uri,site_name) pairs. Use
    quotes and separate url and site name by comma. Or just --add.

    Example: --add="https://example.com,example".
Drupal 9–10 · not 11

Ask your assistant about Multisite Easy Commands

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.1.x-dev Dev 9–10 May 24, 2023
1.0.0 Stable 9–10 May 12, 2023
1.0.x-dev Dev 9–10 May 1, 2023