WooCommerce commands
The bricks woo commands expose WooCommerce discovery data in a machine-readable way. They are read-only commands designed for agent prompts, autocomplete flows, and preflight checks before building product grids or query-driven Bricks sections.
Check WooCommerce status
Section titled “Check WooCommerce status”bricks woo statusbricks woo status --format jsonActive: trueVersion: 9.8.1HPOS: trueProduct post type: trueProduct categories: trueProduct tags: trueWoo element types: 3Element types: product-add-to-cart, woocommerce-notice, woocommerce-account-pageUse this before attempting Woo-specific prompts or templates. It tells you whether WooCommerce is active, whether the product taxonomies exist, and whether the current Bricks install exposes Woo-specific element types.
List products
Section titled “List products”bricks woo products --search hoodie --limit 10bricks woo products --format json| Flag | Description |
|---|---|
--search <text> | Filter products by title |
--limit <N> | Maximum results to return |
--page <N> | Page number for paginated results |
--format json | Output result as JSON |
--json | Shorthand for --format json |
Example
Section titled “Example”bricks woo products --search hoodieID TITLE SKU PRICE STATUS812 Zip Hoodie HOOD-ZIP 69.00 publish844 Pullover Hoodie HOOD-PULL 59.00 publishThe JSON output includes category and tag summaries for each product, which makes it useful for agent @mentions and product-query planning.
List product categories
Section titled “List product categories”bricks woo categoriesbricks woo categories --search featured --format jsonID NAME SLUG COUNT21 Featured featured 1433 Hoodies hoodies 8List product tags
Section titled “List product tags”bricks woo tagsbricks woo tags --search sale --format jsonID NAME SLUG COUNT18 Sale sale 627 New new 9Related commands
Section titled “Related commands”bricks site featuresfor overall site capability discoverybricks site query-elementsto see which Bricks elements can run Woo product queriesbricks search elementswith--has-queryor--query-post-type productto find existing product loops