WPCLI – Impossible to manage Tax Classes via cli
-
Hi all
I’m trying to create some automated scripts to inizialize our Woocommerce site
So, using wpcli integration, I’d like to inizialize tax classes and tax rates
I think I found a bug to all wpcli tax_class commands, cause the Tax Class API (used by wpcli) has no id property
https://woocommerce.github.io/woocommerce-rest-api-docs/#tax-class-propertiesIf I run
> wp wc tax_class list –user=i3_admin
no id column is retrivedbut tax_class commands (es. delete) require id as mandatory parameter
If I try the id stored into database, e.g.
> wp wc tax_class delete “1” –slug=”reduced-rate” –user=adminwpcli raises an error cause no API matches the URL called (/tax/class/1)
I hope the issue desciption is clear.
Thanks
Diego
- The topic ‘WPCLI – Impossible to manage Tax Classes via cli’ is closed to new replies.