/shopware-core:sw-command-create <command:name> [--plugin <PluginName>]from shopware-core
Scaffold a CLI command (bin/console) in a Shopware 6 plugin, including its PHP service registration and console.command tag.
Ships in shopware-core. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
haikuCreate a Symfony command in the target plugin. For the details, see the sw-services skill.
Command name vendor:domain:action (e.g. ff:content:import) from $ARGUMENTS.
Determine the target plugin (from --plugin or the detected custom/plugins/*).
File src/Command/<ClassName>.php with #[AsCommand(name, description)], an execute() using SymfonyStyle,
returning Command::SUCCESS.
Register it in src/Resources/config/services/commands.php — PHP, not XML (XmlFileLoader is
@deprecated tag:v6.8.0), explicitly and without autowiring. Without autoconfigure the
console.command tag is not inferred from #[AsCommand], so set it yourself:
$services->set(MyImportCommand::class)
->args([service('product.repository')])
// Without autoconfigure this tag is not inferred.
->tag('console.command');
→ shopware-core → sw-services → DEPENDENCY-INJECTION.md
Add the repositories and services it needs as constructor arguments.
The class name is the action part in PascalCase plus Command. Keep out of the command any business logic that belongs in a service.
7-day visitors to each command page
4 commands in this plugin
/sw-config-createScaffold or extend a Shopware 6 plugin's configuration (config.xml) with cards and input fields./sw-event-mapScans the current Shopware project (core + custom) and writes or updates the event catalogue .shopware-catalog/events.md (event name/constant, event class, dispatch site, arguments/payload) as the basis for subscribers./sw-plugin-createScaffold a new Shopware 6 plugin with correct naming and namespace conventions, composer.json, the plugin class and the base structure.npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-core