Command Palette

Search for a command to run...

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

b2c-mrt

БесплатноБез исполняемых скриптовНе проверен

Deploy and manage Managed Runtime (MRT) storefronts using the b2c CLI. Use this skill whenever the user needs to deploy a PWA Kit bundle, manage MRT…

SalesforceCommerceCloudот SalesforceCommerceCloud★ 58 звёзд на GitHub

Об этом скилле

B2C MRT Skill

Use the b2c CLI to manage Managed Runtime (MRT) projects, environments, bundles, and deployments for PWA Kit storefronts.

Tip: If b2c is not installed globally, use npx @salesforce/b2c-cli instead (e.g., npx @salesforce/b2c-cli mrt bundle deploy).

Configuration & Authentication

The CLI resolves the MRT API key from MRT_API_KEY (or SFCC_MRT_API_KEY), dw.json, ~/.mobify, or configuration plugins. Project and environment defaults can also come from package.json under b2c (mrtProject, mrtEnvironment) or environment variables. package.json cannot supply API keys or other secrets. Flags like --api-key, -p, and -e are usually unnecessary when defaults are configured — only pass them to override.

Run b2c setup inspect to see the resolved configuration and which source provided each value (use --json for scripting; keep secrets masked unless the user explicitly requests their values). For precedence rules and troubleshooting, see the b2c-cli:b2c-config skill.

MRT Backends (legacy vs SCAPI)

Most MRT commands run against the legacy MRT Cloud API (API key). Several commands can also run over the SCAPI MRT backend: mrt bundle history, mrt bundle list, mrt bundle deploy (both the local-build push and deploying an existing <bundleId>), the mrt env var family (list / set / push / delete), the mrt env redirect family (list / create / get / update / delete / clone), the mrt env access-control family (list / create / get / delete), and the mrt project family (list / create / get / update / delete). Choose with --mrt-backend (MRT_BACKEND / SFCC_MRT_BACKEND, or mrtBackend in dw.json):

  • legacy (default) — always the MRT Cloud API.
  • auto — use SCAPI when it's configured (--short-code + --tenant-id + client-credentials or JWT Bearer auth), otherwise legacy. Falls back to legacy on safe pre-execution errors. Each command requests its own scopes: bundle commands use sfcc.storefront.deployments[.rw]; env var, redirect, and access-control commands use sfcc.storefront.environments[.rw]; project commands use sfcc.storefront.storefronts[.rw] (reads accept either tier, writes require .rw).
  • scapi — always SCAPI, with no fallback; errors if prerequisites are missing. Also errors on unsupported commands (every MRT command except the bundle, env var, redirect, access-control, and project commands above — note mrt project member and mrt project notification remain legacy-only).

Notes:

  • Under --json, these commands emit the serving backend's native shape (e.g. bundle history is legacy {count, next, previous, deployments} vs SCAPI {limit, offset, total, data}; env var list is legacy {count, variables} vs the SCAPI native environment-variables map). The human table is normalized; --json is not. Pin legacy or scapi when a script needs a stable shape.
  • Env vars over SCAPI use the Storefront Environments API. set and delete apply a merge-PATCH (only the keys you pass change; delete sends the key with a null value); values are always masked by both backends. push resolves the backend once from its initial read and pins every write to it, so a single push never crosses backends.
  • Access-control headers over SCAPI also use the Storefront Environments API. get and delete key on the header UUID; create takes the header value as a positional argument (201 Created returns the full masked header). Header values are always masked by both backends — the CLI never displays or reconstructs the plaintext value.
  • Redirects over SCAPI also use the Storefront Environments API. The two backends identify a redirect differently — legacy keys on the source path (from_path), SCAPI keys on a redirect ID (UUID) — so get / update / delete take a neutral identifier positional (source path on legacy, UUID on SCAPI). update is a partial update (only the fields you pass change; the source path cannot be changed); clone copies all redirects from a distinct source environment and rejects a same-source clone.
  • Projects over SCAPI use the Storefront Storefronts API (a project is a storefront; the storefront ID is the project slug, the org is fixed by --tenant-id). Backend-specific flags: create legacy needs --organization, SCAPI needs ≥1 --site (--type defaults to storefront_next); update cannot rename over SCAPI (no --name/--url) and its --site fully replaces the assigned-sites set (not incremental); SCAPI create/delete return 202 and complete asynchronously. mrt project member / notification stay legacy-only and reject --mrt-backend scapi.
  • Legacy-only flags (--api-key, --cloud-origin / -u, --credentials-file / -c) are ignored — with a warning — when SCAPI serves the request.
  • --storefront (long) and -s (short) are aliases of --project / -p — the SCAPI storefront ID is the project slug, so all
Полный SKILL.md на GitHub

Установить b2c-mrt в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/trigger-evals.jsonreferences/BUNDLE-COMMANDS.mdreferences/ENVIRONMENT-COMMANDS.mdreferences/PROJECT-COMMANDS.md

FAQ

Что делает скилл b2c-mrt?

Deploy and manage Managed Runtime (MRT) storefronts using the b2c CLI. Use this skill whenever the user needs to deploy a PWA Kit bundle, manage MRT environments and projects, set environment variables, configure URL redirects, or manage organization connections — even if they just say "deploy my PWA" or "set up a staging environment".

Как установить скилл b2c-mrt?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл b2c-mrt запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить b2c-mrt с