{"id":7257,"date":"2021-03-08T09:36:40","date_gmt":"2021-03-08T09:36:40","guid":{"rendered":"https:\/\/www.bay20.com\/?p=7257"},"modified":"2025-05-21T17:11:51","modified_gmt":"2025-05-21T11:26:51","slug":"so-erstellen-sie-ein-shopware-6-theme-mithilfe-der-befehlszeile","status":"publish","type":"post","link":"https:\/\/www.bay20.com\/de\/so-erstellen-sie-ein-shopware-6-theme-mithilfe-der-befehlszeile\/","title":{"rendered":"Wie erstellt man ein Shopware 6 Theme mit der Kommandozeile?"},"content":{"rendered":"\n<p>Sie k\u00f6nnen ein <a href=\"https:\/\/www.bay20.com\/de\/shopware-theme-entwicklung\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/www.bay20.com\/shopware-theme-development\/\"><strong>Shopware 6-Theme<\/strong><\/a> per Befehl oder manuell erstellen. Zuerst werden wir untersuchen, wie wir ein Thema mit dem Befehl erstellen k\u00f6nnen.<\/p>\n\n\n\n<p>F\u00fchren Sie die folgenden Schritte aus, um ein Thema mit dem Befehl<\/p>\n\n\n\n<p><strong>1. <\/strong>Verbinden Sie ssh \u00fcber Terminal (Mac) oder Putty (Windows)<\/p>\n\n\n\n<p><strong>2.<\/strong> Gehen Sie zum Shopware 6 Stammverzeichnis<\/p>\n\n\n\n<p><strong>3.<\/strong> F\u00fchren Sie nun den folgenden Befehl aus.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/console theme:create Bay20theme'. 'Bay20theme'<\/code><\/pre>\n\n\n\n<p><strong>Bay20theme&#8220; ist der Name des Themas. Sie k\u00f6nnen den Namen Ihres Themas entsprechend verwenden.<\/strong><br><\/p>\n\n\n\n<p><strong>4.<\/strong> Sobald das Thema erstellt ist, wird Ihnen der Speicherort der Themendateien angezeigt, z. B. <strong>\u201e\/var\/www\/html\/custom\/plugins\/Bay20theme\u201c<\/strong>. In Shopware werden alle Themes im Plugin-Ordner erstellt.<\/p>\n\n\n\n<p><strong>5.<\/strong> Installieren Sie nun Ihr Theme-Plugin, indem Sie den folgenden Befehl ausf\u00fchren.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/console plugin:install Bay20theme<\/code><\/pre>\n\n\n\n<p> <br><strong>6.<\/strong> Sobald der obige Befehl ausgef\u00fchrt wurde, k\u00f6nnen Sie Ihr Theme-Plugin sehen, indem Sie den folgenden Befehl ausf\u00fchren.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/console plugin:list<\/code><\/pre>\n\n\n\n<p> <br><strong>7.<\/strong> Aktivieren Sie nun das <strong>\u201eBay20theme\u201c<\/strong>-Theme-Plugin, indem Sie den folgenden Befehl ausf\u00fchren.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/console plugin:activate Bay20theme<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"893\" height=\"249\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/03\/shopware6-activate-plugin.png\" alt=\"\" class=\"wp-image-7263\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware6-activate-plugin.png 893w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware6-activate-plugin-300x84.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware6-activate-plugin-800x223.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware6-activate-plugin-768x214.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware6-activate-plugin-805x224.png 805w\" sizes=\"auto, (max-width: 893px) 100vw, 893px\" \/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p><strong>8.<\/strong> Jetzt m\u00fcssen Sie das Thema f\u00fcr den aktiven Kanal f\u00fcr das Frontend von der Verwaltungskonsole aus \u00e4ndern. Loggen Sie sich zun\u00e4chst in die Verwaltungskonsole ein, gehen Sie zum Abschnitt Verkaufskanal und klicken Sie auf \u201eStorefront\u201c.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"468\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/03\/shopware-6-channels-980x468.png\" alt=\"\" class=\"wp-image-7270\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-channels-980x468.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-channels-300x143.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-channels-800x382.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-channels-768x367.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-channels-805x385.png 805w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-channels.png 1440w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p><strong>9.<\/strong> Klicken Sie nun auf die Registerkarte \u201eThema\u201c und klicken Sie auf die Schaltfl\u00e4che \u201eThema \u00e4ndern\u201c. Es wird ein Popup mit dem neu erstellten Thema \u201eBay20theme\u201c angezeigt. Sie m\u00fcssen das Thema ausw\u00e4hlen und die \u00c4nderungen speichern.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"468\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option-980x468.png\" alt=\"\" class=\"wp-image-7269\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option-980x468.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option-300x143.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option-800x382.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option-768x367.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option-805x385.png 805w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-option.png 1440w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"429\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/03\/shopware-6-theme-980x429.png\" alt=\"\" class=\"wp-image-7271\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-980x429.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-300x131.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-800x351.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-768x337.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme-805x353.png 805w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/03\/shopware-6-theme.png 1440w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p><strong>10.<\/strong> Sobald die Theme-\u00c4nderung angewendet wurde, k\u00f6nnen Sie Ihre \u00c4nderungen hinzuf\u00fcgen und Ihr Theme anpassen.<\/p>\n\n\n\n<p>Hinweis: Wenn Ihre \u00c4nderungen im Frontend nicht sichtbar sind, stellen Sie sicher, dass Sie den Cache l\u00f6schen und das Thema kompilieren, indem Sie die folgenden Befehle ausf\u00fchren.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/console cache:clear<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/console theme:compile<\/code><\/pre>\n\n\n\n<p>F\u00fcr jegliche Unterst\u00fctzung zu Shopware senden Sie uns bitte eine E-Mail an <a href=\"mailto:manish@bay20.com\">manish@bay20.com<\/a> oder Whatsapp an <a href=\"tel:+91-8800519180\">+91-8800519180<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sie k\u00f6nnen ein Shopware 6-Theme per Befehl oder manuell erstellen. Zuerst werden wir untersuchen, wie wir ein Thema mit dem Befehl erstellen k\u00f6nnen. F\u00fchren Sie die folgenden Schritte aus, um ein Thema mit dem Befehl 1. Verbinden Sie ssh \u00fcber Terminal (Mac) oder Putty (Windows) 2. Gehen Sie zum Shopware 6 Stammverzeichnis 3. F\u00fchren Sie [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":7289,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78,115,91],"tags":[],"class_list":["post-7257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopware","category-shopware-6","category-shopware-6-anleitungen"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/7257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/comments?post=7257"}],"version-history":[{"count":19,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/7257\/revisions"}],"predecessor-version":[{"id":17321,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/7257\/revisions\/17321"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/media\/7289"}],"wp:attachment":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/media?parent=7257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/categories?post=7257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/tags?post=7257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}