Skip to content

Commands Reference

You are viewing an outdated version of the documentation.
Click here to switch to the stable version (v6.6), or use the version switcher on the left to navigate between versions.

Commands Reference

These commands can be executed using the Shopware command line interface (CLI), located within your Shopware project

bash
$ bin/console [command] [parameters]

Commands

General

CommandDescription
aboutDisplays information about the current project
helpDisplays help for a command
listLists commands

App

CommandDescription
app:activateactivate the app in the folder with the given name
app:deactivatedeactivate the app in the folder with the given name
app:installInstalls the app in the folder with the given name
app:refreshRefreshes the installed Apps
app:uninstallUninstalls the app
app:url-change:resolveResolve changes in the app url and how the app system should handle it.
app:validatechecks manifests for errors
app:verifychecks manifests for errors

Assets

CommandDescription
assets:install

Bundle

CommandDescription
bundle:dump[administration:dump:bundles] Creates a json file with the configuration for each active Shopware bundle.

Cache

CommandDescription
cache:clearClears the cache
cache:pool:clearClears cache pools
cache:pool:deleteDeletes an item from a cache pool
cache:pool:listList available cache pools
cache:pool:prunePrunes cache pools
cache:warmupWarms up an empty cache

Changelog

CommandDescription
changelog:changeReturns all changes made in a specific / unreleased version.
changelog:checkCheck the validation of a given changelog file. This command will check all files in "changelog/_unreleased" folder, if users don't specify a changelog file.
changelog:createCreate a changelog markdown file in /changelog/_unreleased
changelog:releaseCreating or updating the final changelog for a new release

Config

CommandDescription
config:dump-referenceDumps the default configuration for an extension

Dal

CommandDescription
dal:create:entities
dal:create:schema
dal:refresh:indexRefreshes the shop indices
dal:validate

Database

CommandDescription
database:clean-personal-data
database:create-migration
database:migrate
database:migrate-destructive
database:refresh-migration

Debug

CommandDescription
debug:autowiringLists classes/interfaces you can use for autowiring
debug:business-events
debug:configDumps the current configuration for an extension
debug:containerDisplays current services for an application
debug:event-dispatcherDisplays configured listeners for an application
debug:messengerLists messages you can dispatch using the message buses
debug:routerDisplays current routes for an application
debug:swiftmailerDisplays current mailers for an application
debug:translationDisplays translation messages information
debug:twigShows a list of twig functions, filters, globals and tests

Enqueue

CommandDescription
enqueue:consume[enq:c] A client's worker that processes messages. By default it connects to default queue. It select an appropriate message processor based on a message headers
enqueue:produceSends an event to the topic
enqueue:routes[debug:enqueue:routes] A command lists all registered routes.
enqueue:setup-broker[enq:sb] Setup broker. Configure the broker, creates queues, topics and so on.
enqueue:transport:consumeA worker that consumes message from a broker. To use this broker you have to explicitly set a queue to consume from and a message processor service

Es

CommandDescription
es:create:aliasDev command to create alias immediately
es:indexReindex all entities to elasticsearch
es:index:cleanupAdmin command to remove old and unused indices
es:test:analyzerAllows to test an elasticsearch analyzer

Feature

CommandDescription
feature:dump[administration:dump:features] Creating json file with feature config for js testing and hot reloading capabilities.

Framework

CommandDescription
framework:demodata
framework:dump:class:schema
framework:schemaDumps the api definition to a json file.

Http

CommandDescription
http:cache:warm:up

Import

CommandDescription
import:entity

Import-export

CommandDescription
import-export:delete-expiredDeletes all expired import/export files

Lint

CommandDescription
lint:containerEnsures that arguments injected into services match type declarations
lint:twigLints a template and outputs encountered errors
lint:xliffLints a XLIFF file and outputs encountered errors
lint:yamlLints a file and outputs encountered errors

Mail-templates

CommandDescription
mail-templates:assign-to-saleschannelsAssignes all mailTemplates to all SaleChannels

Media

CommandDescription
media:delete-unusedDeletes all media files that are never used
media:generate-media-typesGenerates the media type for all media entities
media:generate-thumbnailsGenerates the thumbnails for media entities

Messenger

CommandDescription
messenger:consume[messenger:consume-messages] Consumes messages
messenger:setup-transportsPrepares the required infrastructure for the transport
messenger:stop-workersStops workers after their current message

Plugin

CommandDescription
plugin:activateActivates given plugins
plugin:createCreates a plugin skeleton
plugin:deactivateDeactivates given plugins
plugin:installInstalls given plugins
plugin:listShow a list of available plugins.
plugin:refreshRefreshes the plugins list in the storage from the file system
plugin:uninstallUninstalls given plugins
plugin:updateUpdates given plugins
plugin:zip-importImport plugin zip file.

Product-export

CommandDescription
product-export:generate

Pwa

CommandDescription
pwa:dump-plugins

Router

CommandDescription
router:matchHelps debug routes by simulating a path info match

Sales-channel

CommandDescription
sales-channel:create
sales-channel:create:storefront
sales-channel:list
sales-channel:maintenance:disable
sales-channel:maintenance:enable

Scheduled-task

CommandDescription
scheduled-task:registerRegisters all available scheduled tasks.
scheduled-task:runWorker that runs scheduled task.

Secrets

CommandDescription
secrets:decrypt-to-localDecrypts all secrets and stores them in the local vault.
secrets:encrypt-from-localEncrypts all local secrets to the vault.
secrets:generate-keysGenerates new encryption keys.
secrets:listLists all secrets.
secrets:removeRemoves a secret from the vault.
secrets:setSets a secret in the vault.

Sitemap

CommandDescription
sitemap:generateGenerates sitemaps for a given shop (or all active ones)

Snippets

CommandDescription
snippets:validate

State-machine

CommandDescription
state-machine:dumpDump a workflow

Store

CommandDescription
store:download
store:login

Swiftmailer

CommandDescription
swiftmailer:email:sendSend simple email message
swiftmailer:spool:sendSends emails from the spool

System

CommandDescription
system:config:get
system:config:set
system:generate-app-secret
system:generate-jwt-secret
system:install
system:setup
system:update:finish
system:update:prepare

Theme

CommandDescription
theme:change
theme:compile
theme:createCreates a theme skeleton
theme:dump
theme:refresh

Translation

CommandDescription
translation:updateUpdates the translation file

User

CommandDescription
user:change-password
user:create