Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.
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".

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 Release date
1.1.x-dev Dev May 24, 2023
1.0.0 Stable May 12, 2023
1.0.x-dev Dev May 1, 2023