Development
Command overview
The following commands and scripts are available
Setup/Install/Deployment
Command | Description |
---|---|
bin/console system:setup |
Configure and create .env and optionally create jwt secret |
bin/console system:generate-jwt-secret |
Generates a new jwt secret |
bin/console system:generate-app-secret |
Outputs a new app secret. This does not update your .env! |
bin/console system:install |
Setup database and optional install some basic data |
bin/console system:update:prepare |
Run update preparations before the update. Do not update if this fails |
bin/console system:update:finish |
Executes the migrations and finishes the update |
bin/console theme:change |
Assign theme to a sales channel |
Build
bash is required for the shell scripts
Command | Description |
---|---|
bin/console theme:compile |
Compile all assigned themes |
bin/build.sh |
Complete build including composer install |
bin/build-js.sh |
Build administration and storefront, including all plugins in var/plugins.json . |
bin/build-administration.sh |
Just build the administration. |
bin/build-storefront.sh |
Just build the storefront. You need to have built the administration once. |
Dev
Run bin/build-js.sh
once to install the npm dependencies.
bash is required for the shell scripts
Command | Description |
---|---|
bin/console theme:refresh |
Reload theme.json of active themes |
bin/watch-administration.sh |
Watcher for administration changes, recompile and reload page if required |
bin/watch-storefront.sh |
Watcher for storefront changes, recompile and reload page if required |
Quelle: Shopware Git