/woocommerce-commerce:woo-deployfrom woocommerce-commerce
Automates WooCommerce store deployments using WP-CLI, database migrations, zero-downtime updates, staging workflows, and CI/CD patterns.
Ships in woocommerce-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
woocommerce-deployment, wp-cli, database-migrations, zero-downtime, staging, ci-cd
20 skills in this plugin
/php-modernWrite modern PHP 8.x code — typed properties, enums, readonly classes, match expressions, named arguments, union/intersection types, fibers, attributes, and constructor promotion. Use when writing PHP for WooCommerce or any PHP 8.x project./php-patternsApply PHP design patterns — Singleton, Factory, Strategy, Observer, Repository, Decorator, and Dependency Injection in PHP. Use when structuring WooCommerce extension code or implementing complex business logic./php-testingWrite PHP tests with PHPUnit — unit tests, mocking, data providers, assertions, test doubles, and TDD workflow. Use when writing tests for WooCommerce extensions or PHP projects.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceOther plugins' skills for the same job