ddev-magento
SKILL.md
Workflow
This skill provides comprehensive management for high-performance Magento 2 environments on DDEV.
1. Environment & Services
- Start/Stop: Use
ddev startorddev stop. - Project Info: Run
ddev describeto see URLs for:- Web Server: (Main store URL)
- PhpMyAdmin: Database management interface.
- Mailpit: Email testing interface.
- XHGui: Performance profiling UI.
- RabbitMQ: Management dashboard.
- Performance (Mutagen): For macOS/Windows, ensure Mutagen is enabled for optimal speed:
ddev config --performance-mode=mutagen.
2. Magento 2 Operations
- Upgrade:
ddev magento setup:upgrade. - Reindexing:
ddev magento indexer:reindex. - Compilation:
ddev magento setup:di:compile. - Static Assets:
ddev magento setup:static-content:deploy -f. - Cache:
ddev magento cache:flush. - Mode Management:
ddev magento deploy:mode:set developer.
3. Search Services (OpenSearch / Elasticsearch)
- OpenSearch (Recommended for 2.4+): Install via
ddev add-on get ddev/ddev-opensearch.- Access via
http://opensearch:9200. - Check status:
ddev exec curl -s opensearch:9200.
- Access via
- Elasticsearch 8: Access via
http://elasticsearch:9200. - Configuration: During install, use
--search-engine=opensearch --opensearch-host=opensearch --opensearch-port=9200.
4. Typical Installation Workflow
- Init:
ddev config --project-type=magento2 --docroot=pub --upload-dirs=media --disable-settings-management. - Add-ons:
ddev add-on get ddev/ddev-opensearch. - Composer:
ddev composer create-project --repository https://repo.magento.com/ magento/project-community-edition. - Install:
ddev magento setup:installwith appropriate DB and Search parameters. - Dev Setup:
ddev magento module:disable Magento_TwoFactorAuth(optional for local dev) andddev magento deploy:mode:set developer.
5. Other Specialized Services
- Redis: Direct CLI access via
ddev redis-cli. - Varnish: Managed via the Varnish container. Purge cache using
ddev magento cache:flush. - RabbitMQ: Configure in
env.phpusing hostrabbitmq. - Profiling (XHGui/XHProf):
- Enable profiling for web requests via config.
- Logs:
ddev logs -forddev logs -f web. - SSH Access:
ddev ssh. - Database:
ddev mysqlor PhpMyAdmin. - Snapshot:
ddev snapshotfor backups.
Weekly Installs
4
Repository
chuccv/ddev-skillFirst Seen
7 days ago
Security Audits
Installed on
opencode4
gemini-cli4
antigravity4
github-copilot4
codex4
kimi-cli4