Command-Line Tool · Node.js ≥ 20
EK Clothes CLI (ekclothes)
The ekclothes CLI lets developers and AI agents query the EK Clothes catalog, garment specifications, store settings, free-shipping threshold, and OpenAPI 3.1 contract directly from the terminal with zero runtime dependencies.
Commands
# Browse or filter the live catalog (supports --cursor for pagination)
ekclothes catalog --locale en --category verhnyaya-odezhda --json
ekclothes catalog --locale en --cursor <nextCursor> --json
# Inspect a single garment specification by slug
ekclothes product trench-oliva --json
# Batch-fetch garments by ID or run multi-operation POST /api/v1/batch queries
ekclothes products id1,id2 --json
ekclothes batch '{"operations":[{"operation":"getStoreSettings"},{"operation":"getFreeShippingThreshold"}]}' --json
# Read store metadata and free domestic Russia CDEK shipping threshold
ekclothes store --json
ekclothes shipping --json
# Verify service health or inspect the OpenAPI 3.1 contract
ekclothes health --ready --json
ekclothes openapi --jsonFlags & Structured Errors
--json— prints raw API JSON to stdout and structured RFC 9457 Problem Details JSON to stderr on errors.--base-url <url>/EKCLOTHES_API_URL— overrides the target origin (defaults to https://ekclothes.ru).Exit codes— 0 on success, 1 on API or network error, 2 on invalid CLI arguments.
