How to target specific sites with Drush when using Multisites? I have a Drupal Multisite set up. It contains two sites, but the core Drupal install has no site.

With Drush, I can use @sites to target all sites. For example:


drush @sites -y cc all - Updates all multi-sites 
drush @sites -y en jqmulti - Install Jquery in all Multi-Sites


However, because I have no site installed in the core folder, I always get an error message  stating that the core site is missing. Is there any to use Drush to only update the sub-multisites and skip the core one?

I know I can run Drush from the sites directory of the sub-sites, but that isn't very convenient when I want to target all sites. 

The reason I am using Multisites is because both sites share themes and user-logins.
When you say "core site", do you mean the site in sites/default?  Is it an option to just delete the settings.php file at sites/default/settings.php?

If you'd like to manage your aliases in an alias file, create a file ~/.drush/mysite.aliases.drushrc.php:

$root = '/path/to/root';

$aliases['site1'] = array(
  'root' =&gt; $root,
  'uri' =&gt; 'site1.com',
);

$aliases['site2'] = array(
  'root' =&gt; $root,
  'uri' =&gt; 'site2.com',
);


See this link for an example.

Then, to refer to one site:

drush @site1 status


or -


drush @mysite.site1 status

To refer to all sites:

drush @mysite status

Maybe you want to get more fancy than this, though.  If you have more aliases in your alias file (e.g. for 'dev' and 'live' sites, you can make your own lists:

$aliases['dev'] = array(
  'site-list' =&gt; array('site1', 'site2'),
);


Then:

drush @mysite.dev status

If you want, you may also store your alias file in /path/to/root/drush or /path/to/root/sites/all/drush, but if you do this, Drush won't be able to find your alias file unless you specify --root on the commandline, or change your working directory to be somewhere inside of /path/to/root.