Loading...
Loading...
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.
npx skill4agent add dayuse-labs/skills-portfolio dayuse-commandsinvpip install pipenvpipenv runpipenv run inv <command>pipenv run inv upinvpipenv run| 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 | |
# 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 destroy# List container status
pipenv run inv ps
# Show container logs
pipenv run inv logs
# Open bash shell in builder container
pipenv run inv builder# Start worker containers
pipenv run inv start-workers
# Stop worker containers
pipenv run inv stop-workers# 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-fixtures# 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-validate# 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-api# 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-plist# 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-restore# 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-snapshot# Download translations from Loco (frontend + backend)
pipenv run inv loco-download
# Download translations, commit, and push (for releases)
pipenv run inv finalize-release# 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 helppipenv run inv cipipenv run inv phpunitpipenv run inv phpstanpipenv run inv cs-fix --dry-runpipenv run inv lintpipenv run inv schema-validatepipenv run inv front-web-lintpipenv run inv front-web-typepipenv run inv front-web-prettierpipenv 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/ |
inv uppipenv run inv destroy
pipenv run inv startpipenv run inv create-test-env
pipenv run inv phpunitpipenv: command not foundpip install pipenv
pipenv installpipenv run inv es-build-hotel
pipenv run inv es-build-poi