title: Run SBT command on module
body: <p>I have a sub-project that's aggregated under some root project.
  Sub project defines <a href="https://www.scala-sbt.org/1.x/docs/Commands.html" rel="nofollow noreferrer"><code>commands</code></a> e.g:</p>
  
  <pre><code>lazy val `sub` = project
    ...
   .settings(
      commands ++= Seq(Command.args("abc", ""){(state,args) =&gt;
            ??? //edited
      })
    )
  </code></pre>
  
  <p>Normally when command is defined as top-most in the sbt I just run:</p>
  
  <pre><code>sbt&gt; abc
  </code></pre>
  
  <p>However I'm unable to do this when defined on module:</p>
  
  <pre><code>sbt&gt; sub/abc
  [error] Expected ':'
  [error] Not a valid key: abc (similar: watch, doc)
  [error] sub/abc
  [error]             ^
  
  </code></pre>
  
  <p>How to run <code>abc</code> at the <code>sub</code> level?</p>