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:
1 |
wp cg-commercekit [activate|deactivate] <feature> |
activate
→ Turns a feature ondeactivate
→ Turns a feature off
Available Commands
1. Ajax Search
1 |
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
1 |
wp cg-commercekit [activate|deactivate] attributes-gallery |
3. Attribute Swatches
1 |
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
1 |
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
1 |
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
1 |
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
1 |
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
1 |
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
1 |
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
1 |
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
1 |
wp cg-commercekit [activate|deactivate] stock-meter |
Sub-options:
stock-meter-shortcode
— Enable shortcode.
12. Waitlist
1 |
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
1 |
wp cg-commercekit [activate|deactivate] wishlist |
Sub-options:
wishlist-shortcode
— Enable shortcode.
14. Settings
1 |
wp cg-commercekit settings [activate|deactivate] cache-logger |
15. Import / Export
1 |
wp cg-commercekit import-export [activate|deactivate] import-export-logger |
16. Cache Management
1 |
wp commercekit-clear-cache |
Example Usage
1 2 3 4 5 6 7 8 |
# Enable Ajax Search wp cg-commercekit activate ajax-search # Disable Sticky ATC on mobile wp cg-commercekit sticky-atc deactivate sticky-atc-mobile # Clear caches wp commercekit-clear-cache |