WP-CLI: New Command to add attributes and attribute-terms to products
Currently the way to add attributes and attribute-terms to a product not very pretty in WC CLI. Attributes and attribute terms can only be added to a product using the --attributes-Flag. The required parameter is a large JSON object, which has to be manually created for every product.
Why not make a seperate command that can assign previously created attributes and attribute terms to a product? This would give us the opportunity to create attributes via "wp wc productattribute" and "wp wc productattribute_term" with the --porcelain flag. We then could use the returend IDs in a command like the following:
wp wc product <product-id> attribute <attribute-id> <term-id-list>.
It would make the usage of attributes and attribute terms easier in Woocommerce CLI.