From magento2-commerce
Deploys Magento 2 to production: modes, static content, DI compilation, CLI commands, zero-downtime strategies (blue-green, symlinks), CI/CD pipelines.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin magento2-commerceThis skill is limited to using the following tools:
**Fetch live docs**:
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Fetch live docs:
https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/cli/set-mode for deployment modeshttps://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/cli/static-view/static-view-file-deployment for static content deploymagento 2 zero downtime deployment for zero-downtime strategies| Mode | Errors | Static Files | DI Compilation | Use Case |
|---|---|---|---|---|
| Developer | Displayed | Generated on demand | Automatic | Local development |
| Production | Logged only | Pre-deployed | Pre-compiled | Live site |
| Default | Not displayed | On demand | Not optimized | Initial install |
bin/magento deploy:mode:show
bin/magento deploy:mode:set production
bin/magento deploy:mode:set developer
# 1. Enable maintenance mode
bin/magento maintenance:enable
# 2. Pull latest code (git pull, composer install)
composer install --no-dev --optimize-autoloader
# 3. Run setup upgrade (applies db_schema changes and patches)
bin/magento setup:upgrade
# 4. Compile DI (generates interceptors, factories, proxies)
bin/magento setup:di:compile
# 5. Deploy static content (CSS, JS, images, templates)
bin/magento setup:static-content:deploy en_US --jobs=4
# 6. Flush cache
bin/magento cache:flush
# 7. Disable maintenance mode
bin/magento maintenance:disable
--exclude-theme, --no-html-minify, --jobs=N for parallelismBuild and deploy on separate systems:
setup:di:compile + setup:static-content:deploysetup:upgrade --keep-generated (no recompilation)Two identical environments with load balancer switching:
deployment/blue_green/enabled in app/etc/env.phpreleases/20260214/)current symlink to new releasevar/, pub/media/, app/etc/env.phpbin/magento module:enable VendorName_ModuleName
bin/magento module:disable VendorName_ModuleName
bin/magento module:status
bin/magento cache:clean # Clean invalidated cache types
bin/magento cache:flush # Flush all cache storage
bin/magento cache:status # Show cache type status
bin/magento cache:enable <type>
bin/magento cache:disable <type>
bin/magento indexer:reindex
bin/magento indexer:status
bin/magento indexer:set-mode schedule
bin/magento cron:run
bin/magento cron:install
bin/magento admin:user:create
bin/magento admin:user:unlock <username>
bin/magento dev:profiler:enable
bin/magento dev:template-hints:enable
bin/magento setup:config:set --<option>=<value>
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.distcomposer install --no-dev, setup:di:compile, setup:static-content:deploysetup:upgrade, cache flushsetup:di:compile or setup:static-content:deploy on production during traffic--jobs=N for parallel static content deploymentsetup:upgradeFetch the deployment documentation for exact CLI options, mode-switching requirements, and pipeline deployment configuration before deploying.