This is from the &#39;examples/example.aliases.drush.php&#39; file that ships with drush:<div><br></div><div><div> * Aliases are commonly used to define short names for</div><div> * local or remote Drupal installations; however, an alias</div>
<div> * is really nothing more than a collection of options.</div><div> * A canonical alias named &quot;dev&quot; that points to a local</div><div> * Drupal site named &quot;<a href="http://dev.mydrupalsite.com">dev.mydrupalsite.com</a>&quot; looks like this: </div>
<div> *</div><div> *   $aliases[&#39;dev&#39;] = array(</div><div> *     &#39;root&#39; =&gt; &#39;/path/to/drupal&#39;,</div><div> *     &#39;uri&#39; =&gt; &#39;<a href="http://dev.mydrupalsite.com">dev.mydrupalsite.com</a>&#39;,</div>
<div> *   );</div><div> *</div><div> * With this alias definition, then the following commands</div><div> * are equivalent:</div><div> *</div><div> *   $ drush @dev status</div><div> *   $ drush --root=/path/to/drupal --uri=<a href="http://dev.mydrupalsite.com">dev.mydrupalsite.com</a> status</div>
<div><div> *</div><div> * Any option that can be placed on the drush commandline</div><div> * can also appear in an alias definition.</div><div> *</div><div> * There are several ways to create alias files.</div><div> *</div>
<div> *   + Put each alias in a separate file called ALIASNAME.alias.drushrc.php</div><div> *   + Put multiple aliases in a single file called aliases.drushrc.php</div><div> *   + Put groups of aliases into files called GROUPNAME.aliases.drushrc.php</div>
</div><div><br></div><div>check out the example file for more details :) (with aliases, you can &quot;be&quot; anywhere on your system and run drush commands)</div><div><br></div><div>-Benj</div><div><br></div><br><div class="gmail_quote">
On Wed, Sep 14, 2011 at 10:21 PM, Roger <span dir="ltr">&lt;<a href="mailto:arelem@bigpond.com">arelem@bigpond.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 15/09/11 13:06, <a href="mailto:support-request@drupal.org">support-request@drupal.org</a> wrote:<br>
&gt; I 2nd this opinion - drush isn&#39;t sure which of your multi-sites you are<br>
&gt; trying to target. You&#39;ll either need to set up drush aliases or &#39;cd&#39; to the<br>
&gt; specific multi-site you want to affect.<br>
&gt;<br>
&gt; -Benj<br>
Thanks Benj.  How do I set up drush aliases? Maybe I could use such a<br>
thing to flush without having to change diretories<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br></div>