title: SBT: Start a command line 'run' of the main class of a non-default project
body: <p>I am starting to use <a href="https://github.com/harrah/xsbt/wiki" rel="noreferrer">sbt</a> build my Scala code (and handle dependencies). As far as I know if I use</p>
  
  <pre><code>$ sbt run &lt;args&gt;
  </code></pre>
  
  <p>on the command line this will run the main class of the main project.</p>
  
  <p>Is it possible to 'run' within any other project from the command line, i.e. not in the interactive session mode? (I'm thinking about something that might look like <code>$ sbt project &lt;proj&gt; run &lt;args&gt;</code> or whatever...)</p>
  
  <p>What I would do in interactive mode is this:</p>
  
  <pre><code>$ sbt
  &gt; project &lt;projectname&gt;
  &gt; run &lt;args&gt;
  </code></pre>
  
  <p>This seems to be straightforward enough, but I can not find any documentation describing this behavior. Hints would be much appreciated...</p>