d1-clilisted
Install: claude install-skill broomva/skills
# d1-cli — Tiendas D1 from the command line
D1 is Colombia's largest hard-discount grocery chain. Its storefront runs
**VTEX IO** (account `d1tiendas`), which means the site's own public API is the
integration surface — no scraping, no admin credentials.
## Invoke
```bash
cd skills/commerce/d1-cli
# 1. Resolve your delivery point FIRST — everything else depends on it
bun run src/cli.ts region --lat 4.6486 --lng=-74.0628
# 2. Then search: prices and stock are now your store's, not the country's
bun run src/cli.ts search leche entera --count 5
bun run src/cli.ts search --facets category-1/lacteos-y-huevos --sort price:asc
# 3. Price a basket without touching your cart
bun run src/cli.ts quote 262:2 892:1
# 3b. Or let a budget decide what goes in it — terms, not SKUs
bun run src/cli.ts basket --budget 30000 arroz leche aceite huevos
# 4. Or build a real one, then hand off to a human to pay
bun run src/cli.ts cart add 262 --qty 2
bun run src/cli.ts cart deliver-to
bun run src/cli.ts cart checkout # prints a URL; does not pay
```
Add `--json` to any command for agent-readable output. **Exit codes are a
contract, and this list is the only copy of it:**
| code | meaning | retry? |
|---|---|---|
| `0` | it worked | — |
| `1` | D1 refused or was unreachable — undeliverable point, unavailable or unknown SKU, outage | yes, may help |
| `2` | the command was called wrong | never helps |
| `3` | it worked and the answer is "none" (`substitute`, `basket`) | never helps |
An