dayuse-commands
Original:🇺🇸 English
Translated
Run local development commands on the Dayuse.com project. Use when starting/stopping Docker, running PHP tests (PHPUnit), frontend tests, linting (PHPStan, CS-Fixer, ESLint), database migrations, Elasticsearch indexing, translations, or any inv task. All commands require pipenv and Docker.
1installs
Added on
NPX Install
npx skill4agent add dayuse-labs/skills-portfolio dayuse-commandsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Dayuse App Commands
Overview
All local development commands for the Dayuse.com project use Python Invoke (prefixed with ) and must be run through pipenv from the current working directory.
invPrerequisites
- Docker Desktop running
- pipenv installed ()
pip install pipenv
Critical Rules
- Always prefix commands with to ensure the correct Python environment:
pipenv runbashpipenv run inv <command> - Docker containers must be running for most commands. If unsure, run first.
pipenv run inv up - Never run directly without
inv— it may use the wrong Python/invoke version.pipenv run
Quick Reference
| Action | Command |
|---|---|
| Start everything | |
| Start containers only | |
| Stop containers | |
| Run PHP tests | |
| Run specific PHP test | |
| PHPStan analysis | |
| Fix code style | |
| Frontend tests | |
| DB migration | |
Infrastructure
Start & Stop
bash
# Full setup: build + start + install deps + migrate DB
pipenv run inv start
# Build Docker images + start containers (no install/migrate)
pipenv run inv up
# Build Docker images only
pipenv run inv build
# Stop all containers
pipenv run inv stop
# Destroy everything (containers, volumes, networks) — DESTRUCTIVE
pipenv run inv destroyMonitoring
bash
# List container status
pipenv run inv ps
# Show container logs
pipenv run inv logs
# Open bash shell in builder container
pipenv run inv builderWorkers (RabbitMQ consumers)
bash
# Start worker containers
pipenv run inv start-workers
# Stop worker containers
pipenv run inv stop-workersPHP Backend Testing
bash
# Full test suite (creates test DB + fixtures + PHPUnit)
pipenv run inv tests
# Run PHPUnit only (assumes test DB already exists)
pipenv run inv phpunit
# Run specific test(s) by filter
pipenv run inv phpunit --filter-tests=MyTestClass
pipenv run inv phpunit --filter-tests=testMethodName
# Run with code coverage
pipenv run inv phpunit --coverage
# Create/reset test database with fixtures
pipenv run inv create-test-env
# Import specific fixtures
pipenv run inv import-fixturesPHP Code Quality
bash
# PHPStan static analysis (level 10)
pipenv run inv phpstan
# PHP-CS-Fixer — auto-fix code style
pipenv run inv cs-fix
# PHP-CS-Fixer — check only (dry-run, used in CI)
pipenv run inv cs-fix --dry-run
# PHP syntax + YAML + Twig linting
pipenv run inv lint
# Validate Doctrine schema against entities
pipenv run inv schema-validateFrontend (Next.js / React)
Web
bash
# Jest tests
pipenv run inv front-web-test
# ESLint
pipenv run inv front-web-lint
# TypeScript type check
pipenv run inv front-web-type
# Prettier formatting check
pipenv run inv front-web-prettier
# Unit tests (alternative)
pipenv run inv tests-unit-front
# Reset frontend API cache
pipenv run inv reset-frontend-apiMobile App
bash
# Unit tests
pipenv run inv test-app
# ESLint
pipenv run inv lint-app
# TypeScript compliance
pipenv run inv typing-app
# Format check
pipenv run inv format-app
# Check XCode plist files
pipenv run inv check-plistDatabase
bash
# Run pending migrations
pipenv run inv migrate
# Generate a new migration
pipenv run inv make-migration
# Load a SQL dump into dayuse_dev
pipenv run inv mysql-load-dump
# Snapshot current MySQL volume (for fast restore later)
pipenv run inv volume-mysql-snapshot
# Restore MySQL volume from snapshot
pipenv run inv volume-mysql-snapshot-restoreElasticsearch
bash
# Rebuild hotel index (full)
pipenv run inv es-build-hotel
# Rebuild hotel index for specific country
pipenv run inv es-build-hotel --country=FR
# Rebuild POI index
pipenv run inv es-build-poi
# Rebuild billing index
pipenv run inv es-build-billing
# Rebuild order index
pipenv run inv es-build-order
# Setup ES snapshot
pipenv run inv es-setup-snapshot
# Reset ES snapshot
pipenv run inv es-reset-snapshot
# Restore hotel index from snapshot
pipenv run inv es-restore-hotel-snapshot
# Restore POI index from snapshot
pipenv run inv es-restore-poi-snapshotTranslations
bash
# Download translations from Loco (frontend + backend)
pipenv run inv loco-download
# Download translations, commit, and push (for releases)
pipenv run inv finalize-releaseOther Utilities
bash
# Clear Symfony cache
pipenv run inv cache-clear
# Clear dev.log
pipenv run inv log-clear
# Install all dependencies (composer + yarn)
pipenv run inv install
# Install composer dependencies only
pipenv run inv composer-install
# Generate SSL certificates
pipenv run inv generate-certificates
# Display help with local URLs
pipenv run inv helpCI Pipeline Commands
When running in CI mode, first set the CI flag:
bash
pipenv run inv ciCI runs these checks (all must pass):
- — PHP unit tests
pipenv run inv phpunit - — Static analysis
pipenv run inv phpstan - — Code style check
pipenv run inv cs-fix --dry-run - — Syntax linting
pipenv run inv lint - — Doctrine schema
pipenv run inv schema-validate - — Frontend ESLint
pipenv run inv front-web-lint - — Frontend TypeScript
pipenv run inv front-web-type - — Frontend formatting
pipenv run inv front-web-prettier
Local Development URLs
Once containers are running ():
pipenv run inv up| Service | URL |
|---|---|
| API | https://api.dayuse.test/ |
| Back Office | https://bo.dayuse.test/ |
| Partners Extranet | https://partners.dayuse.test/ |
| Search API | https://api-search.dayuse.test/ |
| Redirects | https://r.dayuse.test/ |
| RabbitMQ | https://rabbitmq.dayuse.test/ |
| Mailcatcher | https://mail.dayuse.test/ |
Troubleshooting
Containers not starting
Symptoms: fails or containers crash
Solution:
inv upbash
pipenv run inv destroy
pipenv run inv startTest DB out of date
Symptoms: PHPUnit fails with schema errors
Solution:
bash
pipenv run inv create-test-env
pipenv run inv phpunitpipenv not found or wrong Python
Symptoms: or import errors
Solution:
pipenv: command not foundbash
pip install pipenv
pipenv installElasticsearch index empty or stale
Symptoms: Search returns no results
Solution:
bash
pipenv run inv es-build-hotel
pipenv run inv es-build-poi