Shopware Ddevのロゴ

Shopware Ddev

コミュニティ
alpham8
shopware-ddev

Shopware 6のコンソールコマンドの実行、アセットのビルド、プラグインやテーマの管理、DDEV環境でのデータベース操作に使用します。重要なddevおよびShopware CLIコマンドをまとめたクイックリファレンスです。

Add to TypingMind

概要

公開者alpham8
リポジトリagentic-webdev
スキル名shopware-ddev
スター
4
フォーク
0
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    alpham8がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Shopware Ddev」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/alpham8/agentic-webdev/tree/master/skills/shopware-ddev
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alpham8/agentic-webdev.git /tmp/agentic-webdev
mkdir -p .claude/skills
cp -r /tmp/agentic-webdev/skills/shopware-ddev .claude/skills/shopware-ddev
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでShopware Ddevを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にShopware Ddevを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Shopware Ddevは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Shopware 6 + DDEV Command Reference

Related skills: shopware (plugin architecture, DAL, events) · shopware-utils (sub-bundles, auto-resources) · ddev-development (DDEV config, PHP/Node/DB version changes, port setup, Dockerfile)

All commands run inside the DDEV container. Prefix with ddev exec or use ddev ssh for interactive use.

DDEV Basics

TaskCommand
Startddev start
Stopddev stop
Restartddev restart
SSH into containerddev ssh
Run single commandddev exec <cmd>
Open browserddev launch
Show URLs / statusddev describe
View logsddev logs
DB exportddev export-db --file=dump.sql.gz
DB importddev import-db --file=dump.sql.gz
Snapshotddev snapshot --name=before-update
Restore snapshotddev snapshot restore before-update

Plugin Management

bash
ddev exec bin/console plugin:refresh
ddev exec bin/console plugin:install --activate PluginName
ddev exec bin/console plugin:update PluginName        # also installs resources (custom fields, etc.)
ddev exec bin/console plugin:deactivate PluginName
ddev exec bin/console plugin:uninstall PluginName
ddev exec bin/console plugin:list

Theme & Storefront

bash
# Compile theme (SCSS → CSS, required after SCSS changes)
ddev exec bin/console theme:compile

# Assign theme to sales channel
ddev exec bin/console theme:change --all

# Dump theme variables
ddev exec bin/console theme:dump

# Build storefront assets (JS/CSS bundle)
ddev exec bin/build-storefront.sh

Administration

bash
# Dump plugin/bundle configuration (required before building)
ddev exec bin/console bundle:dump

# Build admin assets (required after JS/Twig changes in administration)
# Note: bin/build-administration.sh does NOT exist in SW 6.6+
ddev exec bash -c "cd /var/www/html/src/Administration/Resources/app/administration && PROJECT_ROOT=/var/www/html npm run build"

Pitfall: bin/build-administration.sh was removed in newer Shopware versions. Always use the npm run build approach above. Without bundle:dump first, the build fails with a paths[0] must be of type string error because the plugin map is missing.


Asset Watching (HMR / Dev Server)

The Shopware storefront watcher runs a webpack dev server inside the container. DDEV must expose the port so the browser can reach it.

1. Expose ports in .ddev/config.yaml

yaml
web_extra_exposed_ports:
  - name: storefront-watch
    container_port: 9998
    http_port: 9997
    https_port: 9998

Then apply: ddev restart

2. Start the watcher

bash
ddev exec bin/watch-storefront.sh

The watcher is now reachable at: https://<project>.ddev.site:9998

Shopware automatically injects the hot-reload script when APP_ENV=dev and the webpack dev server responds on port 9998.

Administration watcher

The admin watcher uses port 8080 by default:

yaml
# additional entry in web_extra_exposed_ports:
  - name: admin-watch
    container_port: 8080
    http_port: 8079
    https_port: 8080
bash
ddev exec bin/watch-administration.sh

Admin HMR URL: https://<project>.ddev.site:8080

Notes

  • Remove the #ddev-generated marker from .ddev/config.yaml before adding web_extra_exposed_ports, otherwise DDEV overwrites it on restart.
  • Both watchers require APP_ENV=dev in .env.local.
  • ddev describe shows all exposed ports after restart.

Cache

bash
ddev exec bin/console cache:clear
ddev exec bin/console cache:warmup
ddev exec bin/console cache:pool:clear cache.http          # HTTP cache only
ddev exec bin/console cache:pool:clear cache.object        # Object cache only

Database & Migrations

bash
# Run pending migrations
ddev exec bin/console database:migrate --all

# Create new migration for a plugin
ddev exec bin/console database:create-migration --plugin PluginName --name MigrationName

# Create new migration for an AdditionalBundle (dustin/shopware-utils)
ddev exec bin/console database:create-migration --bundle BundleName --name MigrationName

# Show migration status
ddev exec bin/console database:migrate-destructive --all   # run destructive migrations

Scheduled Tasks

bash
ddev exec bin/console scheduled-task:run          # run all due tasks once
ddev exec bin/console scheduled-task:list         # list tasks and their status
ddev exec bin/console messenger:consume           # process async message queue

Search & Indexing

bash
ddev exec bin/console es:index                    # reindex Elasticsearch
ddev exec bin/console dal:refresh:index           # refresh DAL search indexes

Import / Export

bash
ddev exec bin/console import:entity products      # Shopware native import
ddev exec bin/console export:entity products

User & Sales Channel

bash
# Create admin user
ddev exec bin/console user:create --admin --firstName="Max" --lastName="Muster" --email="max@example.com" --password="secret" admin

# List sales channels
ddev exec bin/console sales-channel:list

# Generate storefront URL
ddev exec bin/console sales-channel:update-domain localhost

Composer (inside container)

bash
ddev composer install
ddev composer require vendor/package
ddev composer update vendor/package
ddev composer dump-autoload

Debugging

bash
ddev exec bin/console debug:container              # list all services
ddev exec bin/console debug:router                 # list all routes
ddev exec bin/console debug:event-dispatcher       # list event listeners
ddev exec bin/console debug:config PluginName      # show plugin config
ddev logs                                          # web container logs
ddev logs -s db                                    # database logs
ddev exec php -i | grep memory_limit               # check PHP settings

Running PHPUnit Tests

When running unit tests inside DDEV, DATABASE_URL using localhost resolves to a Unix socket (which doesn't exist). Prefix tests with the TCP address:

bash
DATABASE_URL='mysql://db:db@db:3306/db' ddev exec vendor/bin/phpunit tests/unit/...

Full Reset (when things break)

bash
ddev exec bin/console cache:clear
ddev exec bin/console plugin:refresh
ddev exec bin/console plugin:update PluginName
ddev exec bin/console theme:compile
ddev restart

よくある質問

AIスキル「Shopware Ddev」では何ができますか?

Shopware 6のコンソールコマンドの実行、アセットのビルド、プラグインやテーマの管理、DDEV環境でのデータベース操作に使用します。重要なddevおよびShopware CLIコマンドをまとめたクイックリファレンスです。

TypingMindでShopware Ddevを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Shopware Ddevはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにShopware Ddevをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/alpham8/agentic-webdev/tree/master/skills/shopware-ddevを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Shopware Ddevを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Shopware Ddevで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもShopware Ddevを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Shopware Ddev」は無料ですか?

alpham8がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇