Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

crosslyот 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

  1. Create a free Crossly account: https://crossly.net/register
  2. 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.
  3. Export it as CROSSLY_PAT and send it as Authorization: Bearer $CROSSLY_PAT to https://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, no DISPLAY/WAYLAND_DISPLAY, CI).
  • crossly login asks for openid offline_access plus a fixed set of 44 API scopes (inventory, listings, orders, sales, accounts, analytics, inbox, messages, automation, customers, webhooks, integrations, …). It does not include storefronts:*, team:* or apps:*: for those commands use a PAT that holds them via CROSSLY_PAT.
  • The session is refreshed automatically; a revoked or expired one exits 4 with session_expired.

Credential precedence:

  1. CROSSLY_PAT (env): CI, containers, secret managers. Never written to disk, never refreshed.
  2. ~/.crossly/auth.json, written by crossly login, mode 0600 (not the OS keychain). CROSSLY_CONFIG_DIR moves 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 --list prints every tool; crossly api --list --json prints each with its JSON Schema inputSchema.
  • Flags are kebab-case of the schema's camelCase properties (--tracking-number → trackingNumber). An unknown flag is an error (exit 2) and the message lists the accepted flags; a missing required flag is also exit 2. Positional arguments are refused with a hint (Did you mean --id abc?).
  • Store-scoped tools take --storefront-id (sent as X-Storefront-Id; see crossly-team-stores) and write tools take --idempotency-key where 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
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Crossly CLI с