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.
cart add and cart set update a single product line in your cart. add is additive — it increments the existing quantity by the amount you supply. set assigns an absolute quantity; passing 0 removes the item from the cart entirely. Both commands accept a --max spending cap and print a concise one-line summary after writing.
Synopsis
Flags
| Flag | Default | Description |
|---|---|---|
--max <eur> | 0/env/config | Refuse if resulting cart total exceeds this amount |
--wh <code> | config/mad1 | Warehouse code |
--lang <code> | config/es | Language code (es, en, ca, eu, vai) |
--json | false | Emit raw cart JSON (PUT response) |
Examples
Human output format
After a successful write, a single summary line is printed to stdout showing the touched product, its new quantity, and the updated cart totals:Difference between add and set
add: new qty = existing qty + N. The result is never below 0 — if the line did not already exist it is created with qty = N.set: new qty = N exactly. Passing0removes the line entirely from the cart.
qty is parsed as a float, so weight and bulk products accept fractional values such as 0.5.