# Console SW5.6.9

**URL:** <https://forum.shopware.com/t/console-sw5-6-9/72680>\
**Category:** Allgemein\
**Created:** [10. Februar 2021 um 12:16 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680 "2021-02-10T12:16:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcVisions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@AcVisions](https://forum.shopware.com/u/AcVisions)\
**Post date:** [10. Februar 2021 um 12:16 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/1 "2021-02-10T12:16:07Z")

</div>

Guten Tag und hallo,

ich habe seit dem ich Shopware im Einsatz habe viel über doe Console gelesen.

Leider funktioniert diese nicht bei mir…  
Alle Versuche einen Befehl dort zu starten scheitern.

Was mache ich falsch oder ws fehlt ?  
PHP Version 7.4 - Shopware Version 5.6.9

Ich möchte ein Plugin einsetzten wozu ich diesen Befehl ausführen möchte:

- **Alle Thumbnails neu generieren (./bin/console sw:thumbnail:generate -f)**
- **Alle Bilder als Webp generieren (./bin/console frosh:webp:generate)**

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/c/c237d30c0a00a70d8bd0047e9d8ef3bb27836b0b.png)

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/8/850216a4d6a637c104bdc1dba05c4330d9445b01.png)

Lieben Gruß Thomas&nbsp;

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [10. Februar 2021 um 12:26 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/2 "2021-02-10T12:26:31Z")

</div>

Bist du im richtigen Pfad? Normalerweise kommt nach /www/htdocs/ACCOUNTID/DOMAIN/ (und hier liegt bei den meisten der SHop)

---

<div class="post-metadata">

**Author:** ![AcVisions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@AcVisions](https://forum.shopware.com/u/AcVisions)\
**Post date:** [10. Februar 2021 um 12:29 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/3 "2021-02-10T12:29:27Z")

</div>

Ich bin im Pad:&nbsp;/www/htdocs/w019af24/meinedomain.de/bin/

Dort liegen 2 Dateien: 1x htaccess 1x console

console allerdings ohne Endung.

Inhalt der console:

#!/usr/bin/env php

\<?php   
 /\*\* &nbsp;\* Shopware 5 &nbsp;\* Copyright (c) shopware AG &nbsp;\* &nbsp;\* According to our dual licensing model, this program can be used either &nbsp;\* under the terms of the GNU Affero General Public License, version 3, &nbsp;\* or under a proprietary license. &nbsp;\* &nbsp;\* The texts of the GNU Affero General Public License with an additional &nbsp;\* permission and of our proprietary license can be found at and &nbsp;\* in the LICENSE file you have received along with this program. &nbsp;\* &nbsp;\* This program is distributed in the hope that it will be useful, &nbsp;\* but WITHOUT ANY WARRANTY; without even the implied warranty of &nbsp;\* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the &nbsp;\* GNU Affero General Public License for more details. &nbsp;\* &nbsp;\* "Shopware" is a registered trademark of shopware AG. &nbsp;\* The licensing of the program under the AGPLv3 does not imply a &nbsp;\* trademark license. Therefore any rights, title and interest in &nbsp;\* our trademarks remain entirely with us. &nbsp;\*/ set\_time\_limit(0); require \_\_DIR\_\_ . '/../autoload.php'; use Symfony\Component\Console\Input\ArgvInput; $input = new ArgvInput(); $env = $input-\\>getParameterOption(array('--env', '-e'), getenv('SHOPWARE\_ENV') ?: 'production'); $kernel = new Shopware\Kernel($env, false); $application = new Shopware\Components\Console\Application($kernel); $application-\\>run($input); &nbsp;

---

<div class="post-metadata">

**Author:** ![AcVisions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@AcVisions](https://forum.shopware.com/u/AcVisions)\
**Post date:** [10. Februar 2021 um 12:31 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/4 "2021-02-10T12:31:20Z")

</div>

Als Fehler bekomme ich immer:

Could not open input file: bin/console&nbsp; ![Gasp](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/11de454286d9e6eb62eece226c8fe8ae7ec6b1be.png "Gasp")  
&nbsp;

---

<div class="post-metadata">

**Author:** ![AcVisions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@AcVisions](https://forum.shopware.com/u/AcVisions)\
**Post date:** [10. Februar 2021 um 12:37 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/5 "2021-02-10T12:37:03Z")

</div>

Habe ich aucn versucht:

Befehl:&nbsp;php bin/console sw:thumbnail:generate

&nbsp;

Fehler: Could not open input file: bin/console

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [10. Februar 2021 um 12:39 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/6 "2021-02-10T12:39:21Z")

</div>

Hallo,

Du musst ein Verzeichnis höher wechseln (also ins Shopware Hauptverzeichnis) - versuch mal

cd …  
php bin/console

Viele Grüße

---

<div class="post-metadata">

**Author:** ![SmartStylez](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@SmartStylez](https://forum.shopware.com/u/SmartStylez)\
**Post date:** [10. Februar 2021 um 12:39 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/7 "2021-02-10T12:39:43Z")

</div>

Kannst du dir den Inhalt nicht mal per Console auflisten lassen?

---

<div class="post-metadata">

**Author:** ![AcVisions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@AcVisions](https://forum.shopware.com/u/AcVisions)\
**Post date:** [10. Februar 2021 um 12:41 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/8 "2021-02-10T12:41:46Z")

</div>

OK Fehler gefunden.

ichwar immner in dem bin Verzeichnis.

Nur im Shop Verzeichnis geht es&nbsp; ![Smile](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bac5f5766b6a20565a8fb995345b4e41d24daac0.png "Smile")

&nbsp;

---

<div class="post-metadata">

**Author:** ![SmartStylez](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@SmartStylez](https://forum.shopware.com/u/SmartStylez)\
**Post date:** [10. Februar 2021 um 12:42 UTC](https://forum.shopware.com/t/console-sw5-6-9/72680/9 "2021-02-10T12:42:45Z")

</div>

Perfekt, oben hatte ich mich vertan, deshalb den Kommentar wieder gelöscht.
