Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 2.15 KB

File metadata and controls

50 lines (41 loc) · 2.15 KB

Mise Tasks

All tasks are file tasks in .mise/tasks/. Run any task with mise run <task> (or just mise <task>). .mise.toml holds only [tools] and [env] — no task definitions live there.

Development

Task Description
setup [env] Install dependencies + generate secrets + create DB + migrate (alias: i)
setup:composer Install Composer dependencies only
setup:bun Install Bun dependencies only
dev Start the dev stack — Caddy + PHP-FPM + Scheduler, concurrently (alias: up)
dev:caddy Run only the Caddy web server (foreground)
dev:php-fpm Run only PHP-FPM (foreground)
dev:scheduler Run only the Symfony Scheduler worker
build Build frontend assets for production
clean Remove vendor/, node_modules/, compiled assets, and cache
console [cmd] Run a Symfony console command (mise run console cache:clear; alias: c)
logs Tail the Symfony application log
cache:clear Clear and warm up all application caches
messenger:consume Start a Messenger queue worker

Database

Task Description
db:migrate Run pending database migrations (alias: migrate)
db:fresh Drop schema, re-run all migrations, reload fixtures (destructive)
db:seed Load database fixtures
db:use <driver> Switch database backend (postgres, mysql, sqlite)

Quality

Task Description
test Run the PHPUnit test suite (alias: t; --filter, --coverage)
lint Check code style with php-cs-fixer (--fix to apply)
analyse PHPStan static analysis, level 8 (alias: stan)
rector Rector dry-run (--fix to apply)
quality Run lint + analyse + rector + test concurrently (alias: q)
ci Run the quality suite in Dagger containers (see Dagger CI)

Aggregate task pattern

Aggregate tasks (dev, setup, quality) are thin files whose work happens in concurrent #MISE depends=[…] dependencies — e.g. .mise/tasks/dev/_default declares depends=["dev:caddy", "dev:php-fpm", "dev:scheduler"] and mise runs the three in parallel with interleaved output.