Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ivorpad/mercadona-cli/llms.txt
Use this file to discover all available pages before exploring further.
mercadona batch sends all search terms in a single multi-query Algolia request — approximately 100 items per call. It’s the fastest way to price a shopping list or check availability across many products at once. Like search, it requires no authentication.
Synopsis
Flags
| Flag | Default | Description |
|---|---|---|
-f <file> | — | File with one term per line (- = stdin) |
--hits N | 1 | Results per term (default: top hit only) |
--category <id|name> | — | Apply a category filter to every term |
--fresh | false | Exclude frozen and canned results for every term |
--wh <code> | config/mad1 | Warehouse code |
--lang <code> | config/es | Language |
--json | false | Emit raw JSON array to stdout |
Input format
Provide terms one per line via-f <file> or -f - for stdin. Lines beginning with # are treated as comments and skipped. Alternatively, pass terms as positional arguments directly on the command line.
Examples
Human output format
(sin resultados) rather than silently omitted.
JSON output shape
With--json, the output is an array of search result objects aligned to the input term order, each with the same shape as mercadona search --json:
Using batch results downstream
The product IDs returned in each hit can be passed directly tocart add, cart set-many, and total. A typical agent workflow is: batch a shopping list → collect the top-hit IDs → pass them to total for a pre-cart price estimate → then cart set-many to write the basket.