title: How to change Symfony's console script name
body: <p>I just installed fresh copy of stable Symfony 4 as follows:</p>
  <pre><code>composer create-project symfony/website-skeleton .
  </code></pre>
  <p><strong>I would like to rename the console script name</strong> though from <code>bin/console</code> to <code>bin/symfony</code>. How to do that? If I just rename it, after <code>composer install</code> I get an error:</p>
  <blockquote>
  <p>Script cache:clear returned with error code 1</p>
  <p>!!  Could not open input file: bin/console</p>
  </blockquote>
  <p>Obviously this comes from the post install script:</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;auto-scripts&quot;: {
          &quot;cache:clear&quot;: &quot;symfony-cmd&quot;,
          &quot;assets:install --symlink --relative %PUBLIC_DIR%&quot;: &quot;symfony-cmd&quot;
      },
      &quot;post-install-cmd&quot;: [
          &quot;@auto-scripts&quot;
      ],
  </code></pre>
  <p>How to make this work properly? I already checked <a href="https://symfony.com/doc/current/configuration/override_dir_structure.html" rel="nofollow noreferrer">how to override Symfony's default structure</a>, but found nothing related.</p>