Консольный инструмент · Node.js ≥ 20
EK Clothes CLI (ekclothes)
Утилита ekclothes позволяет разработчикам и ИИ-агентам получать данные каталога, спецификации изделий, настройки магазина, порог бесплатной доставки и OpenAPI-схему напрямую из терминала без сторонних зависимостей.
Команды
# 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 --jsonФлаги и обработка ошибок
--json— выводит немодифицированный JSON-ответ API в stdout и структурированные RFC 9457 ошибки в stderr.--base-url <url>/EKCLOTHES_API_URL— переопределяет целевой хост (по умолчанию https://ekclothes.ru).Exit codes— 0 успех, 1 ошибка API или сети, 2 ошибка аргументов CLI.
