CommerceKit includes a suite of WP-CLI commands that allow you to quickly enable, disable, and manage its features without navigating through the WordPress dashboard. This is especially useful for developers, staging environments, or bulk configurations.
General Syntax
Most commands follow this format:
wp cg-commercekit [activate|deactivate] <feature>
activate→ Turns a feature ondeactivate→ Turns a feature off
Available Commands
1. Ajax Search
wp cg-commercekit [activate|deactivate] ajax-search
Sub-options:
ajs-orderby-oos— Push out-of-stock items to the end of results.ajs-other-results— Include posts and pages in search results.ajs-fast-search— Faster results (excludes prices).ajs-index-logger— Log Ajax Search index rebuilding.
2. Attributes Gallery
wp cg-commercekit [activate|deactivate] attributes-gallery
3. Attribute Swatches
wp cg-commercekit [activate|deactivate] attribute-swatches
Sub-options:
display-tooltips— Show tooltips on color/image swatches.pdp-swatches— Swatches on product detail pages.plp-swatches— Swatches on listing pages.plp-quick-atc— Quick add-to-cart with swatches.hide-loading-facade— Disable loading facade on PLPs.hide-pdp-related— Hide swatches for related products and PDP menus.
4. Countdown Timers
wp cg-commercekit [activate|deactivate] countdown-timer
Sub-options:
checkout-countdown— Timer on checkout page.product-shortcode— Product countdown shortcode.checkout-shortcode— Checkout countdown shortcode.
5. Free Shipping Notification
wp cg-commercekit free-shipping [activate|deactivate] <option>
Sub-options:
fsn-cart-page— Show on cart page.fsn-mini-cart— Show in mini cart.display-notification— Show before shipping address.fsn-shortcode— Enable shortcode.
6. Order Bump
wp cg-commercekit order-bump [activate|deactivate] <option>
Sub-options:
order-bump-mini-cart— Enable in mini cart.multiple-mini-cart— Allow multiple bumps in mini cart.order-bump-checkout— Enable on checkout.multiple-checkout— Allow multiple bumps on checkout.order-bump-shortcode— Checkout shortcode.
7. Product Badges
wp cg-commercekit [activate|deactivate] product-badges
Sub-options:
new-display-catalog— Show “New” badge on catalog.new-display-product— Show “New” badge on product page.
8. Product Gallery
wp cg-commercekit [activate|deactivate] product-gallery
Sub-options:
pdp-lightbox— Open images in lightbox.pdp-video-autoplay— Autoplay product videos.pdp-thumb-arrows— Enable thumbnail arrows.pdp-featured-review— Show featured review.gallery-shortcode— Enable shortcode.
9. Size Guides
wp cg-commercekit [activate|deactivate] size-guide
Sub-options:
display-search-result— Make size guides searchable.size-guide-shortcode— Enable shortcode.
10. Sticky Add to Cart
wp cg-commercekit sticky-atc [activate|deactivate] <option>
Sub-options:
sticky-atc-desktop— Enable for desktop.sticky-atc-mobile— Enable for mobile.sticky-atc-tabs— Expand product tabs.
11. Stock Meter
wp cg-commercekit [activate|deactivate] stock-meter
Sub-options:
stock-meter-shortcode— Enable shortcode.
12. Waitlist
wp cg-commercekit [activate|deactivate] waitlist
Sub-options:
hide-oos-variation— Show hidden OOS variations.force-email-name— Force “from” email/name.waitlist-auto-mail— Auto-email when item is restocked.wtl-not-stock-limit— Email even if signups exceed stock.waitlist-admin-mail— Notify store owner of new signups.waitlist-user-mail— Notify customer when they join waitlist.
13. Wishlist
wp cg-commercekit [activate|deactivate] wishlist
Sub-options:
wishlist-shortcode— Enable shortcode.
14. Settings
wp cg-commercekit settings [activate|deactivate] cache-logger
Enable CommerceKit cache logger.
15. Import / Export
wp cg-commercekit import-export [activate|deactivate] import-export-loggerShow detailed logs in WooCommerce > Status > Logs.
16. Cache Management
wp commercekit-clear-cacheClear all CommerceKit caches, including Ajax Search index cache.
Example Usage
# Enable Ajax Search
wp cg-commercekit activate ajax-search
# Disable Sticky ATC on mobile
wp cg-commercekit sticky-atc deactivate sticky-atc-mobile
# Enable a sub-option
wp cg-commercekit ajax-search activate ajs-orderby-oos
# Clear caches
wp commercekit-clear-cache
