title: Cakephp 3 bin/cake bake - Undefined variable: argv
body: <p>I've used Cakephp 2.x in earlier times and now I want to get in touch with the new Version 3.0.0</p>
  
  <p>I installed Cakephp over composer, all worked fine. I've changed the Salt and configured database settings.</p>
  
  <p>When trying to run bin/cake I'm getting the following error:</p>
  
  <pre><code>Welcome to CakePHP v3.0.0 Console
  ---------------------------------------------------------------
  App : src
  Path: /html/APP/myapp/src/
  ---------------------------------------------------------------
  Current Paths:
  
  * app:  src
  * root: /html/APP/myapp
  * core: /html/APP/myapp/vendor/cakephp/cakephp
  
  Available Shells:
  
  [Migrations] migrations
  
  [CORE] i18n, orm_cache, plugin, server
  
  [app] console
  
  To run an app or core command, type `cake shell_name [args]`
  To run a plugin command, type `cake Plugin.shell_name [args]`
  To get help on a specific command, type `cake shell_name --help`
  
  X-Powered-By: PHP/5.6.5
  Content-type: text/html; charset=UTF-8
  
  &lt;pre class="cake-error"&gt;&lt;a href="javascript:void(0);" onclick="document.getElementById('cakeErr551ffb72d6447-trace').style.display = (document.getElementById('cakeErr551ffb72d6447-trace').style.display == 'none' ? '' : 'none');"&gt;&lt;b&gt;Notice&lt;/b&gt; (8)&lt;/a&gt;: Undefined variable: argv [&lt;b&gt;ROOT/bin/cake.php&lt;/b&gt;, line &lt;b&gt;19&lt;/b&gt;]&lt;div     id="cakeErr551ffb72d6447-trace" class="cake-stack-trace" style="display: none;"&gt;&lt;a href="javascript:void(0);" onclick="document.getElementById('cakeErr551ffb72d6447-code').style.display = (document.getElementById('cakeErr551ffb72d6447-code').style.display == 'none' ? '' : 'none')"&gt;Code&lt;/a&gt; &lt;a href="javascript:void(0);"     onclick="document.getElementById('cakeErr551ffb72d6447-context').style.display = (document.getElementById('cakeErr551ffb72d6447-context').style.display == 'none' ? '' : 'none')"&gt;Context&lt;/a&gt;&lt;pre id="&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;code" class="cake-code-dump" style="display: none;"&gt;&lt;code&gt;&lt;span style="color: #000000"&gt;&lt;span style="color:     #0000BB"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #007700"&gt;*/
  &lt;span class="code-highlight"&gt;&lt;code&gt;&lt;span style="color: #000000"&gt;&lt;span style="color: #0000BB"&gt;&lt;/span&gt;&lt;span style="color: #007700"&gt;include&amp;nbsp;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;dirname&lt;/span&gt;&lt;span style="color: #007700"&gt;(&lt;/span&gt;&lt;span style="color: #0000BB"&gt;__DIR__&lt;/span&gt;&lt;span sty&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span     style="color: #DD0000"&gt;'/config/bootstrap.php'&lt;/span&gt;&lt;span style="color: #007700"&gt;;
  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre id="cakeErr551ffb72d6447-context" class="cake-context" style="display: none;"&gt;$_GET = [
      &amp;#039;/html/APP/myapp/bin/cake_php&amp;#039; =&amp;gt; &amp;#039;&amp;#039;,
      &amp;#039;bake&amp;#039; =&amp;gt; &amp;#039;&amp;#039;
  ]
  $_POST = []
  $_COOKIE = []
  $_FILES = []
  $_SERVER = [
      &amp;#039;SHELL&amp;#039; =&amp;gt; &amp;#039;/bin/bash&amp;#039;,
      &amp;#039;TERM&amp;#039; =&amp;gt; &amp;#039;linux&amp;#039;,
      &amp;#039;SSH_CLIENT&amp;#039; =&amp;gt; &amp;#039;213.188.119.235 53953 22&amp;#039;,
      &amp;#039;SSH_TTY&amp;#039; =&amp;gt; &amp;#039;/dev/pts/1&amp;#039;,
      &amp;#039;LC_ALL&amp;#039; =&amp;gt; &amp;#039;de_DE.utf8&amp;#039;,
      &amp;#039;USER&amp;#039; =&amp;gt; &amp;#039;p252938&amp;#039;,
      &amp;#039;PATH&amp;#039; =&amp;gt; &amp;#039;/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/html/APP/lib/Cake/Console&amp;#039;,
      &amp;#039;MAIL&amp;#039; =&amp;gt; &amp;#039;/var/mail/p252938&amp;#039;,
      &amp;#039;PWD&amp;#039; =&amp;gt; &amp;#039;/html/APP/myapp&amp;#039;,
      &amp;#039;EDITOR&amp;#039; =&amp;gt; &amp;#039;vi&amp;#039;,
      &amp;#039;LANG&amp;#039; =&amp;gt; &amp;#039;de_DE.utf8&amp;#039;,
      &amp;#039;HOME&amp;#039; =&amp;gt; &amp;#039;/home/www/p252938/./&amp;#039;,
      &amp;#039;SHLVL&amp;#039; =&amp;gt; &amp;#039;1&amp;#039;,
      &amp;#039;LOGNAME&amp;#039; =&amp;gt; &amp;#039;p252938&amp;#039;,
      &amp;#039;SSH_CONNECTION&amp;#039; =&amp;gt; &amp;#039;213.188.119.235 53953 172.16.39.19 22&amp;#039;,
      &amp;#039;PHP_SELF&amp;#039; =&amp;gt; &amp;#039;&amp;#039;,
      &amp;#039;REQUEST_TIME_FLOAT&amp;#039; =&amp;gt; (float) 1428159346.8385,
      &amp;#039;REQUEST_TIME&amp;#039; =&amp;gt; (int) 1428159346
  ]
  $_ENV = []
  $isCli = false&lt;/pre&gt;&lt;pre class="stack-trace"&gt;[main] - ROOT/bin/cake.php, line 19&lt;/pre&gt;&lt;/div&gt;&lt;/pre&gt;
  </code></pre>
  
  <p>What went wrong? </p>