| name | dev-commands |
| description | Daily development commands for Sylius Stack apps (database, cache, assets, QA) |
| allowed-tools | Bash, Read |
Dev Commands — Sylius Stack
Docker is used only for the PostgreSQL database. PHP runs locally via symfony serve.
Database (Docker)
| Action | Command |
|---|
| Start | docker compose up -d |
| Stop | docker compose down |
| Stop + remove volumes | docker compose down -v |
Web server
symfony serve -d
symfony serve:stop
Symfony console
bin/console cache:clear
bin/console debug:router
bin/console debug:container <service>
bin/console sylius:debug:resource 'App\Entity\{ModelName}'
Database migrations
| Action | Command |
|---|
| Generate migration | bin/console make:migration |
| Apply migrations | bin/console doctrine:migrations:migrate --no-interaction |
| Drop + create + migrate | bin/console doctrine:database:drop --force && bin/console doctrine:database:create && bin/console doctrine:migrations:migrate --no-interaction |
| Load fixtures | bin/console doctrine:fixtures:load --no-interaction |
Assets (AssetMapper)
bin/console importmap:install
bin/console asset-map:compile
QA
vendor/bin/phpstan analyse
vendor/bin/ecs check
vendor/bin/phpunit