b2c-job_skill

This skill lets you run and monitor existing B2C jobs with the b2c CLI, streamlining batch processing and log retrieval.
  • TypeScript

20

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill salesforcecommercecloud/b2c-developer-tooling --skill b2c-job

  • SKILL.md3.0 KB

Overview

This skill runs and monitors existing Salesforce B2C Commerce (Demandware/SFCC) jobs using the b2c CLI and handles import/export of site archives (IMPEX). It focuses on executing batch/system jobs, checking status, viewing logs, and moving site data between local and instance storage. Use this for operational tasks; for authoring new job step code use the custom-job-steps skill.

How this skill works

The skill invokes the b2c CLI commands to run jobs, optionally waiting for completion, passing parameters, or supplying raw JSON request bodies for system jobs. It uses the job import/export commands to push or pull IMPEX site archives and provides helpers to search executions, wait on execution IDs, and show logs when failures occur. If the b2c CLI is not globally installed, it supports running via npx.

When to use it

  • Run an existing batch job or system job (e.g., search indexing).
  • Import a local site archive directory or zip into a B2C instance.
  • Export site data from an instance to create an archive.
  • Check job execution status, search job history, and retrieve logs on failures.
  • Wait programmatically for job completion before continuing a deployment or pipeline.

Best practices

  • Use --wait and --timeout for long-running jobs to avoid orphaned executions.
  • Provide parameters with -P for standard jobs; use --body only for jobs that require raw JSON (they are mutually exclusive).
  • Use --show-log when runs fail to capture error details for troubleshooting.
  • Keep archives on the instance only when necessary (use --keep-archive sparingly).
  • Run the CLI via npx if the global b2c plugin is not installed to ensure consistent tooling version.

Example use cases

  • Run a nightly product indexing job and wait for completion before switching search traffic.
  • Import storefront content from a local export prior to a functional test run in a sandbox.
  • Export an instance archive to capture current site data before a major deployment.
  • Search recent job executions to diagnose intermittent failures and view their logs.
  • Trigger a system job (search index) with a custom site_scope JSON body for targeted reindexing.

FAQ

Yes. Prefix commands with npx @salesforce/b2c-cli (for example npx @salesforce/b2c-cli job run) to run without a global install.

When should I use --body vs -P parameters?

Use -P for standard job parameters. Use --body only when the job expects a raw JSON request schema (system jobs like search indexing). They cannot be used together.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
b2c-job skill by salesforcecommercecloud/b2c-developer-tooling | VeilStrat