wp-cli is a great tool. Here's how to pull the images that are attached to a given product.
For some strange reason WooCommerce uses this approach.

[code] wp post meta get 19 _product_image_gallery [/code]

This will pull the image ids and will be comma separated.

wp-cli get woocommerce gallery image ids


Referral Note: When you purchase through an referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer