# Console erste Schritte

**URL:** <https://forum.shopware.com/t/console-erste-schritte/68889>\
**Category:** Programmierung\
**Created:** [11. August 2020 um 08:03 UTC](https://forum.shopware.com/t/console-erste-schritte/68889 "2020-08-11T08:03:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. August 2020 um 08:03 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/1 "2020-08-11T08:03:03Z")

</div>

Leider finden wir zurzeit keine brauchbare Anleitung, um die Console in Shopware (als Consolen-Neulinge) einzusetzen. Wir sind per Terminal mit dem Server verbunden, navigieren ins Verzeichnis bin und mit ./console wird uns Folgendes angezeigt:

```
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /var/www/vhosts/domain.de/httpdocs/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 57

```

php -v gibt 5.6.4 (cli) aus. Weiter kommen wir an dieser Stelle leider nicht. Kann da jemand etwas mit anfangen?

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [11. August 2020 um 08:06 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/2 "2020-08-11T08:06:00Z")

</div>

Eventuell die falsche PHP-Version. PHP ab 7.2 wäre besser.

---

<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:** [11. August 2020 um 08:22 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/3 "2020-08-11T08:22:22Z")

</div>

Hallo,

falsche PHP Version. Bei einem Plesk Server findest Du die anderen Versionen unter /opt/plesk/php/ - also für die Konsole entsprechend z.B.

cd /var/www/vhosts/deinedomain.de/httpdocs  
/opt/plesk/php/7.3/bin/php bin/console

Viele Grüße

---

<div class="post-metadata">

**Author:** ![Michael200](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Michael200](https://forum.shopware.com/u/Michael200)\
**Post date:** [11. August 2020 um 09:54 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/4 "2020-08-11T09:54:53Z")

</div>

Hallo, es geht wsl um die falsche PHP.&nbsp;

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. August 2020 um 11:42 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/5 "2020-08-11T11:42:09Z")

</div>

Ok, im Tutorial steht dann folgender Befehl:

```
# run this to re-compile the current storefront theme
$ ./psh.phar storefront:build

```

Gibt es da auch wieder einen „Trick“? Danke 😃

---

<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:** [11. August 2020 um 12:45 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/6 "2020-08-11T12:45:12Z")

</div>

Hallo,

vermutlich hast Du das Installationspaket genommen und nicht das Development Template - entsprechende Hinweise findest Du über die Forensuche

[https://forum.shopware.com/discussion/65565/psh-phar-nicht-vorhanden](https://forum.shopware.com/discussion/65565/psh-phar-nicht-vorhanden)

[https://github.com/shopware/development](https://github.com/shopware/development)

Viele Grüße

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. August 2020 um 12:47 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/7 "2020-08-11T12:47:55Z")

</div>

bin/console theme:compile scheint das gleiche zu machen, oder?

---

<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:** [11. August 2020 um 12:59 UTC](https://forum.shopware.com/t/console-erste-schritte/68889/8 "2020-08-11T12:59:13Z")

</div>

Nein - psh.phar ist für Entwickler und deutlich mächtiger als die console. Offenbar geht es Dir aber darum, das Template zu kompilieren - dann ist bin/console theme:compile korrekt.

Die Unterschiede findest Du in der Doku:

[https://docs.shopware.com/en/shopware-platform-dev-en/developer-guide/console-commands?category=shopware-platform-dev-en/developer-guide](https://docs.shopware.com/en/shopware-platform-dev-en/developer-guide/console-commands?category=shopware-platform-dev-en/developer-guide)

[https://github.com/shopwareLabs/psh](https://github.com/shopwareLabs/psh)

Viele Grüße
