title: Zend Framework console application
body: <p>I've followed the steps to create a Zend Framework 2 application from the skeleton ( <a href="http://framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html" rel="nofollow">http://framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html</a> )</p>
  
  <p>There also is a very nice tutorial for the ZF2 native console support available
  <a href="http://framework.zend.com/manual/2.0/en/modules/zend.console.introduction.html" rel="nofollow">http://framework.zend.com/manual/2.0/en/modules/zend.console.introduction.html</a></p>
  
  <p>Now the tutorial says:</p>
  
  <blockquote>
    <p>Let’s assume that we’d like our application to handle the following
    command line:</p>
  </blockquote>
  
  <pre><code>&gt; zf user resetpassword user@mail.com
  </code></pre>
  
  <blockquote>
    <p>When a user runs our application (zf) with these parameters, we’d like
    to call action resetpassword of Application\IndexController.</p>
  </blockquote>
  
  <p>Problem is that there is no description available on how to get the script running on CONSOLE ( currently windows ) - there's no zf or any other executable script in the created folder structure</p>
  
  <p>Any hints?</p>
  
  <p>ideally would be a bin folder in the application root directory which contains a entry-script for each application module</p>
  
  <p>e.g. run a application module called module1</p>
  
  <pre><code>php appfolder/bin/module1.php --verbose
  </code></pre>
  
  <p>or</p>
  
  <pre><code>php appfolder/bin/cli.php module1 --verbose
  </code></pre>