Command Palette

Search for a command to run...

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

b2c-import-set-migrations

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

Create and apply ordered, idempotent B2C Commerce site import/export archives from discovered cartridge metadata and project migrations using `b2c job…

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

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

Import Set Migrations Skill

Use b2c job import-set to apply site import/export archives from discovered cartridge metadata/ directories followed by project migrations. Each archive is applied once per instance and skipped on later runs. Re-running the command is the intended workflow for local setup, developer onboarding, and CI/CD.

[!IMPORTANT] This is an optional, opt-in, project-level approach — not a default workflow. A project adopts it deliberately by keeping import-set sources with its code and running b2c job import-set from setup scripts or CI. Follow an existing project's conventions. If a project only uses occasional one-off site imports, use the b2c-cli:b2c-site-import-export skill instead.

Tip: If b2c is not installed globally, use npx @salesforce/b2c-cli instead (e.g., npx @salesforce/b2c-cli job import-set).

Configuration & Authentication

The CLI auto-discovers the target instance and credentials from SFCC_* environment variables (including project .env), the selected project-local or shared dw.json, and configuration plugins. package.json supplies only non-sensitive defaults. Flags like --server, --client-id, --client-secret, --username, and --password are usually unnecessary — only pass them to override what's auto-detected.

job import-set requires both OAuth and WebDAV credentials. Run b2c setup inspect to confirm the resolved configuration; see the b2c-cli:b2c-config skill for precedence rules and troubleshooting.

Import Sources and Order

The command considers cartridge metadata first, followed by the project migrations directory (./migrations by default). Discovered cartridges are ordered by name, and archives within each source are ordered lexically.

A cartridge metadata/ directory can use either layout:

  • If it resembles a standard site import/export archive, the entire metadata/ directory is one archive.
  • Otherwise, each immediate child directory or .zip file is one archive, matching the migrations-directory behavior.

Keep each cartridge in one form rather than mixing an archive layout with ordered children. Directory-based archives must contain at least one file.

The project migrations directory contains immediate child directories and .zip files as archives. Hidden entries and other loose files are ignored:

migrations/
├── 20260801T140000-add-preferences/
│   ├── README.md                   # post-import note for THIS archive (see below)
│   ├── meta/
│   │   └── system-objecttype-extensions.xml
│   └── sites/
│       └── RefArch/
│           └── preferences.xml
├── 20260802T091500-seed-content.zip
└── README.md                       # top-level README is not an archive

Each archive directory (or the contents of each zip) uses the standard site import/export archive layout that b2c job import accepts. For archive structure and metadata XML patterns, see the b2c-cli:b2c-site-import-export skill.

Naming convention

Name every ordered child archive YYYYMMDDTHHmmss-description, e.g. 20260801T140000-add-preferences. Use UTC so ordering is stable across time zones. Names identify applied archives, so never edit or reuse a name after it has been applied; add a new, later-sorting archive instead.

Commands

# Preview: show pending vs. already-applied archives; writes nothing to the instance
b2c job import-set --dry-run

# Apply the default ./migrations directory (safe to repeat)
b2c job import-set

# Apply a different directory
b2c job import-set ./data-migrations

# Import project migrations without discovered cartridge metadata
b2c job import-set --no-cartridge-metadata

# Exclude project-relative source trees recursively
b2c job import-set --import-set-exclude fixtures --import-set-exclude test/integration

# Keep each uploaded archive on the instance after import (for inspection)
b2c job import-set --keep-archive

Flags

Flag Description Default
--dry-run Show pending and applied archives without locking, importing, or writing state false
--keep-archive, -k Keep each uploaded archive on the instance after import false
--[no-]cartridge-metadata Include imports from discovered cartridge metadata/ directories true
--import-set-exclude Exclude a project-relative directory recursively from source discovery; repeatable
--set-id Name an independent import history migrations
--break-lock Recover an interrupted import-set run immediately false
Полный SKILL.md на GitHub

Установить b2c-import-set-migrations в Claude Code и Claude Desktop

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

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

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

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

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

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

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

evals/trigger-evals.json

FAQ

Что делает скилл b2c-import-set-migrations?

Create and apply ordered, idempotent B2C Commerce site import/export archives from discovered cartridge metadata and project migrations using `b2c job import-set`. Use this opt-in project workflow for migrations built from focused instance exports, repeatable setup, onboarding, and CI/CD imports that apply once per instance. Also covers source exclusions, post-import README notes, resetting history, and recovering an interrupted run.

Как установить скилл b2c-import-set-migrations?

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

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

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

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

Сравнить b2c-import-set-migrations с