From woocommerce-commerce
Automates WooCommerce deployments with WP-CLI for updates, DB migrations, zero-downtime deploys, staging workflows, environment configs, and CI/CD pipelines.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-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://developer.wordpress.org/cli/commands/ for WP-CLI referencewoocommerce deployment best practices for deployment patternswordpress deployment ci cd for CI/CD integration| Command | Description |
|---|---|
wp core update | Update WordPress core |
wp plugin update --all | Update all plugins |
wp plugin install <slug> --activate | Install and activate plugin |
wp plugin deactivate <slug> | Deactivate plugin |
wp db export backup.sql | Export database |
wp db import backup.sql | Import database |
wp cache flush | Flush object cache |
wp rewrite flush | Flush permalink rules |
wp search-replace <old> <new> | Database search-replace (for migrations) |
wp cron event run --all | Run all due cron events |
| Command | Description |
|---|---|
wp wc update | Run WooCommerce database updates |
wp wc product list | List products |
wp wc order list | List orders |
wp wc customer list | List customers |
wp wc setting list <group> | View settings |
wp wc tool run <tool> | Run WooCommerce tool (install_pages, etc.) |
# Deploy steps
wp maintenance-mode activate
wp db export pre-deploy-backup.sql
wp plugin update woocommerce
wp wc update # Run DB migrations
wp cache flush
wp rewrite flush
wp maintenance-mode deactivate
When WooCommerce updates:
wp wc update executes pending migrationswoocommerce_db_version optionFor your own plugin's schema changes:
db_version optionplugins_loaded, compare stored vs current versiondbDelta() for CREATE/ALTERMigrate orders from posts to custom tables:
| Constant | Purpose |
|---|---|
WP_DEBUG | Enable debug mode |
WP_DEBUG_LOG | Log errors to wp-content/debug.log |
SAVEQUERIES | Log DB queries (dev only) |
WP_ENVIRONMENT_TYPE | local, development, staging, production |
DISALLOW_FILE_EDIT | Disable admin file editor |
DISALLOW_FILE_MODS | Disable plugin/theme updates via admin |
FORCE_SSL_ADMIN | Force HTTPS for admin |
wp_get_environment_type() returns the current environment type. Use for conditional behavior (debug output, test gateways, etc.).
wp db exportwp db importwp search-replace 'https://staging.example.com' 'https://example.com' --all-tablesTypical pipeline:
| Method | Description |
|---|---|
| Git-based | Push to remote, server pulls (Bedrock/Trellis) |
| rsync/SSH | Sync files to server |
| Platform CLI | WP Engine, Pantheon, Kinsta, Flywheel |
| Docker | Build and deploy container images |
| Composer | Install/update via Composer on server |
wp maintenance-mode activate — enable maintenance modewp maintenance-mode deactivate — disable.maintenance file in WordPress rootwp-content/maintenance.phpwp db export)wp wc update after WooCommerce version updateswp search-replace for URL changes between environmentsWP_ENVIRONMENT_TYPE per environmentDISALLOW_FILE_EDIT)Fetch the WP-CLI documentation and WordPress deployment guides for exact command syntax, flags, and platform-specific deployment patterns before implementing.