b2c-replication
БесплатноБез исполняемых скриптовНе проверенAutomate code and data replication from a B2C Commerce staging instance to production or development with the b2c CLI, using a custom job built on the…
от SalesforceCommerceCloud★ 58 звёзд на GitHubОб этом скилле
B2C Replication Skill
Replicate code and data from a staging instance to its production or development instance by importing a custom job that uses the platform's replication job steps, then running it with b2c job run. Run every command against the staging instance.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (for example,npx @salesforce/b2c-cli job run Replicate-Global --wait).
To publish individual products, price tables, or content assets instead of whole task groups, use granular replications (b2c scapi replications).
Choose a Step
| Step type | Replicates | Availability |
|---|---|---|
ExecuteCodeReplication |
A code version (transfer, activate, or both) | B2C Commerce 26.11+ |
ExecuteDataReplication |
Global and per-site data task groups | All current releases |
Both steps take one ReplicationConfiguration parameter: a JSON string that describes the process and its tasks. Nothing needs to be set up in Business Manager first. Both run in the organization context (<context site-id="Sites"/>).
The ExecutePreconfiguredCodeReplicationProcess and ExecutePreconfiguredDataReplicationProcess steps instead run a replication process already defined in Business Manager. Use them when the process should stay editable there.
Define the Jobs
Put the job definitions in jobs.xml at the archive root. For the full jobs.xml format, see b2c:b2c-custom-job-steps. Ready-to-use definitions: job definitions.
<job job-id="Replicate-Code">
<description>Transfer and activate the active code version</description>
<parameters/>
<flow>
<context site-id="Sites"/>
<step step-id="ReplicateCode" type="ExecuteCodeReplication" enforce-restart="false">
<description/>
<parameters>
<parameter name="ReplicationConfiguration">{"code_replication_configuration":{"target":"production","type":"transfer_and_activation","code_version":{"selection":"active"}}}</parameter>
</parameters>
</step>
</flow>
<rules/>
<triggers>
<run-once enabled="false">
<date>2026-01-01Z</date>
<time>00:00:00.000Z</time>
</run-once>
</triggers>
</job>
Validate the archive, then import it on staging:
b2c validate ./replication-jobs
b2c job import ./replication-jobs --show-log
Run
b2c job run Replicate-Code --wait --show-log
b2c job run Replicate-Global --wait --show-log
b2c job run Replicate-MySite --wait --show-log
Each run transfers the selected data (or code) and, for transfer_and_publish / transfer_and_activation, makes it live on the target. Runs take minutes. Replications run one at a time, so start the next job after the previous one finishes.
To change what a run replicates, re-import the job with an updated configuration. Keep one job per configuration you run (for example, a code job, a global-data job, and one per site) rather than editing a single job.
<triggers> is required. The disabled run-once trigger registers the job for on-demand runs. To schedule replication, use a <run-recurring> trigger that lists every weekday the job should run (a trigger without <day-of-week> never fires; see b2c:b2c-custom-job-steps), or run b2c job run from a scheduled CI pipeline.
Configuration
Code replication (code_replication_configuration):
| Field | Values |
|---|---|
target |
production or development (required) |
type |
transfer, activation, transfer_and_activation, or undo (required) |
code_version |
{"selection":"active"} or {"selection":"specific","id":"<version>"}; required for transfer and transfer_and_activation, not allowed otherwise |
description |
Optional label for the process |
Data replication (data_replication_configuration):
| Field | Values |
|---|---|
target |
production or development (required) |
Установить b2c-replication в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл b2c-replication?
Automate code and data replication from a B2C Commerce staging instance to production or development with the b2c CLI, using a custom job built on the ExecuteCodeReplication and ExecuteDataReplication job steps. Use this skill whenever the user wants to script or schedule replication, replicate from CI, choose replication tasks, or troubleshoot a failed replication job — even if they just say "push staging to production" or "replicate my site data".
Как установить скилл b2c-replication?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл b2c-replication запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic