From woocommerce-commerce
Automates WooCommerce deployments with WP-CLI for updates, DB migrations, zero-downtime deploys, staging workflows, environment configs, and CI/CD pipelines.
How this skill is triggered — by the user, by Claude, or both
Slash command
/woocommerce-commerce:woo-deployThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
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.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceSets up WooCommerce local dev environments with wp-env, Docker Compose, or WP-CLI. Installs WooCommerce, checks requirements, scaffolds plugins, and runs essential commands.
Automates WordPress operations via WP-CLI: search-replace, DB export/import, plugin/theme/user management, cron, multisite, and scripting with wp-cli.yml.
Covers WordPress theme/plugin development, WooCommerce, performance optimization, security hardening, and WordPress 7.0 features like RTC, AI Connectors, DataViews.