drush @sites command doesn't work The command drush @sites status doesn't do anything.

The full command obtained for the process is:


  /usr/bin/php /home/myuser/.config/composer/vendor/drush/drush/drush.php --php=/usr/bin/php --php-options= @sites status


This is my enviroment:


Drupal:  8.2.4
Drush:  8.1.7


The "drush site-alias" command says me:


@site1
@none
@site2
@self
default
site1
site2


I have a setup for Drupal multi-sites with subdirectories, the aliases file is:

~/.drush/aliases.drushrc.php

&lt;?php
/**
 * @file
 * Site alias for all sites
 */
$root = '/var/www/html';

$aliases['site1'] = array(
    'uri' =&gt; 'multisite.local/site1',
    'root' =&gt; $root,
    'path-aliases' =&gt; array(
        '%dump-dir' =&gt; '/tmp'
    ),
);
$aliases['site2'] = array(
    'uri' =&gt; 'multisite.local/site2',
    'root' =&gt; $root,
    'path-aliases' =&gt; array(
        '%dump-dir' =&gt; '/tmp'
    ),
);


The full output of the drush status command is:

 Drupal version                  :  8.2.4
 Site URI                        :  http://default
 Database driver                 :  mysql
 Database hostname               :  localhost
 Database port                   :  3306
 Database username               :  db_user
 Database name                   :  db_name
 Database                        :  Connected
 Drupal bootstrap                :  Successful
 Drupal user                     :
 Default theme                   :  bootstrap
 Administration theme            :  seven
 PHP executable                  :  /usr/bin/php
 PHP configuration               :  /etc/php.ini
 PHP OS                          :  Linux
 Drush script                    :  /home/myuser/.config/composer/vendor/drush/drush/drush.php
 Drush version                   :  8.1.7
 Drush temp directory            :  /tmp
 Drush configuration             :
 Drush alias files               :  /home/myuser/.drush/aliases.drushrc.php
 Install profile                 :  standard
 Drupal root                     :  /var/www/html
 Drupal Settings File            :  sites/default/settings.php
 Site path                       :  sites/default
 File directory path             :  sites/default/files
 Private file directory path     :  private/default
 Temporary file directory path   :  /tmp
 Sync config path                :  sites/default/files/config_BrLQsjBr6VkcTEyCkzkY-es-hzISWg4d3oV2EEEoqh-UZMLBJWDiDaq78TIWm-lBbVi-aPHISw/sync
"@sites" is no longer available with Drush 9. I presume this what is being used with Drupal 8 here.

More information here:
https://github.com/drush-ops/drush/issues/3019#issuecomment-334503217


  Drush 9 no longer supports executing a single command on multiple sites with alias lists (@A,@b,@c) or @sites. Neither of those syntaxes are available in any context. You may still use drush sa @group to see all aliases in a group; that is the only context in which Drush recognizes alias lists.