# Dev Commands

> Daily development commands for Sylius Stack apps (database, cache, assets, QA)

- Skill: `guiziweb/dev-commands` (Agent Skill)
- Install (CLI): `npx skillmds@latest add guiziweb/dev-commands`
- Raw SKILL.md: https://api.skillmd.com/api/skills/guiziweb/dev-commands/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: guiziweb (https://skillmd.com/u/guiziweb)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/guiziweb/dev-commands

---


# 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

```bash
symfony serve -d    # start in background
symfony serve:stop  # stop
```

## Symfony console

```bash
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)

```bash
bin/console importmap:install       # install JS packages
bin/console asset-map:compile       # production build
```

## QA

```bash
vendor/bin/phpstan analyse    # static analysis
vendor/bin/ecs check          # coding standards
vendor/bin/phpunit            # unit tests
```
