Crossly CLI
БесплатноБез исполняемых скриптовНе проверенDrive Crossly from the terminal and from scripts or agents with @crossly/cli (bin crossly, 0.3.0). Install, sign in (crossly login with browser PKCE loopback…
от crossly74 установки в других каталогахОб этом скилле
The Crossly CLI
crossly is every seller API endpoint as a command, plus a handful of multi-call workflows. Its commands are generated from the same tool registry the MCP server serves (crossly-mcp-server), so flags and validation match the MCP tools exactly. For tokens and scopes see crossly-api-setup.
Setup
- Create a free Crossly account: https://crossly.net/register
- Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a
crossly_pat_test_token against the sandbox while building. - Export it as
CROSSLY_PATand send it asAuthorization: Bearer $CROSSLY_PATtohttps://crossly.net/api/v1/*. Full docs: https://crossly.net/docs
Install and sign in
npm i -g @crossly/cli # published on npm (0.3.0); Node 18+
crossly login # opens the browser: Atlas OAuth, PKCE, loopback redirect
crossly login --device # short code flow: SSH, containers, agent sandboxes
crossly whoami # GET /v1/me
crossly logout
crossly --version
- The device flow is picked automatically when no browser is likely (
SSH_CONNECTION/SSH_TTY, noDISPLAY/WAYLAND_DISPLAY,CI). crossly loginasks foropenid offline_accessplus a fixed set of 44 API scopes (inventory, listings, orders, sales, accounts, analytics, inbox, messages, automation, customers, webhooks, integrations, …). It does not includestorefronts:*,team:*orapps:*: for those commands use a PAT that holds them viaCROSSLY_PAT.- The session is refreshed automatically; a revoked or expired one exits
4withsession_expired.
Credential precedence:
CROSSLY_PAT(env): CI, containers, secret managers. Never written to disk, never refreshed.~/.crossly/auth.json, written bycrossly login, mode 0600 (not the OS keychain).CROSSLY_CONFIG_DIRmoves it (tests, a second account).
On a shared machine prefer CROSSLY_PAT from your own secret manager: the file is readable by anything running as you.
Base URL and the sandbox
The CLI talks to CROSSLY_API_BASE_URL, else the API the stored login was made for, else https://crossly.net/api. It does not switch on the token's environment word, so for the sandbox (see crossly-sandbox-testing) set both:
export CROSSLY_API_BASE_URL=https://sandbox.crossly.net/api
export CROSSLY_PAT=crossly_pat_test_…
crossly whoami
A test token against production (or the reverse) fails with 401 credential_environment_mismatch (exit 4). CROSSLY_WEB_BASE_URL overrides the web origin used by login (default: the API base without /api).
Generated commands
crossly orders list --status pending
crossly orders submit-tracking --id <uuid> --carrier usps --tracking-number 9205500000000000000000
crossly api submit_tracking --id <uuid> --carrier usps --tracking-number 9205500000000000000000
- Group = the registry file the tool lives in (
tools/orders.ts→crossly orders). Verb = the tool name with the group noun removed (get_order_shipments→orders shipments,list_stores→storefronts list-stores). Some groups:listings,inventory,orders,webhooks,storefronts,team,team-stores,sandbox,open-platform,account,detected-events. crossly api <tool>runs the same thing by the exact MCP tool name, which stays stable if a verb is renamed. Prefer it in scripts and agents.- Discovery:
crossly --help,crossly <group> --help,crossly <group> <verb> --help(never touches the network or needs a token).crossly api --listprints every tool;crossly api --list --jsonprints each with its JSON SchemainputSchema. - Flags are kebab-case of the schema's camelCase properties (
--tracking-number→trackingNumber). An unknown flag is an error (exit2) and the message lists the accepted flags; a missing required flag is also exit2. Positional arguments are refused with a hint (Did you mean --id abc?). - Store-scoped tools take
--storefront-id(sent asX-Storefront-Id; see crossly-team-stores) and write tools take--idempotency-keywhere their schema declares them; check--help.
Hand-written workflows
| Command | What it does |
|---|---|
crossly listings publish <inventoryItemId> --to poshmark,depop |
Crossposts and waits (up to 3 minutes), reporting per platform. Exit 1 if any platform failed or is still pending. --no-wait queues and returns; --idempotency-key |
crossly orders ship <orderId> |
Shows rates, buys nothing |
crossly orders ship <orderId> --yes [--rate <rateId>] |
Buys the cheapest (or the named) label and submits tracking. --idempotency-key |
crossly inventory import items.csv |
Validates only, writes nothing |
crossly inventory import items.csv --yes |
Writes. --idempotency-key |
crossly inventory export [items.csv] [--ids a,b] |
CSV to a file or stdout |
| `crossly |
Установить Crossly CLI в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Crossly CLI?
Drive Crossly from the terminal and from scripts or agents with @crossly/cli (bin crossly, 0.3.0). Install, sign in (crossly login with browser PKCE loopback, --device code flow; CROSSLY_PAT takes precedence over ~/.crossly/auth.json), run any of the 2,917 generated commands (crossly GROUP VERB, or crossly api TOOL with the MCP registry names, crossly api --list --json for schemas), the hand-written workflows (listings publish --to, orders ship --yes, inventory import/export, logs -f, dev --forward, mcp install), the --json/--ndjson/--dry-run/--idempotency-key flags, exit codes 0/1/2/4/5, and CROSSLY_API_BASE_URL for the sandbox; plus the shopper CLI crossly-buyer (@crossly/buyer-cli, CROSSLY_BUYER_TOKEN). Use when scripting Crossly in shell or CI, wiring the CLI into an agent, forwarding webhooks to localhost, or decoding a crossly exit code.
Как установить скилл Crossly CLI?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Crossly CLI запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic