When you install Shop Health for your clients, it’s good to know some of the available WP CLI commands. It can help you to trigger initial scans or clean the entire issues table at once.
Scedule Shop Health scans
You can schedule a Shop Health scan, this will be picked up by Action Schedular. You can scan a specific product, settings or the entire shop.
wp shop-health schedule setting_scan <setting_slug> (example: has_terms_and_conditions)
wp shop-health schedule product_scan <id> (example: 12)
wp shop-health schedule all_product_scans
wp shop-health schedule all_setting_scans
wp shop-health schedule all
Run Shop Health scans
You can run Shop Health scans directly. You can scan a specific product, settings or the entire shop.
wp shop-health run setting_scan <setting_slug> (example: has_terms_and_conditions)
wp shop-health run product_scan <id> (example: 12)
wp shop-health run all_product_scans
wp shop-health run all_setting_scans
wp shop-health run all
Clean up your Shop Health data
You can use WP CLI to clean up your Shop Health tables. This can be usefull after an import of new products / setting new ignored issues / accidentally ignored to many issues etc.
wp shop-health clean issues
wp shop-health clean objects
wp shop-health clean actions
wp shop-health clean all