b2c-ods

SalesforceCommerceCloud's avatarfrom SalesforceCommerceCloud

Salesforce B2C Commerce On-demand sandbox (ODS) management Skill

⭐4stars🔀2forks📁View on GitHub🕐Updated Jan 8, 2026

When & Why to Use This Skill

This Claude skill provides a streamlined interface for managing Salesforce B2C Commerce On-demand sandboxes (ODS) via the b2c CLI. It empowers developers and DevOps teams to automate environment provisioning, monitor sandbox statuses, and manage resource lifecycles through natural language, significantly reducing the complexity of Salesforce commerce infrastructure management.

Use Cases

  • Automated Provisioning: Quickly create new sandboxes with specific profiles (e.g., large) and Time-To-Live (TTL) settings for temporary development or testing branches.
  • Environment Auditing: List all active sandboxes within a specific realm and filter them by status or creator to maintain visibility over infrastructure usage.
  • Cost Optimization: Identify and delete stale or unnecessary sandboxes to prevent unwanted billing on the Salesforce B2C Commerce platform.
  • DevOps Troubleshooting: Retrieve detailed log traces and status updates during the sandbox creation process to debug deployment failures or timeouts.
nameb2c-ods
descriptionUsing the b2c CLI for on-demand sandbox (ODS) management

B2C ODS Skill

Use the b2c CLI plugin to manage Salesforce B2C Commerce On-demand sandboxes (ODS). Only create or delete a sandbox if explicitly asked as this may be a billable or destructible action.

Examples

List ODS Sandboxes

b2c ods list

# for realm zzpq with JSON output
b2c ods list --realm zzpq --json

# filter by status and those created by a specific user, only print the columns id,state,hostname
b2c ods list --filter-params 'state=started,creating&createdBy=clavery@salesforce.com' --realm zzpq --columns id,state,hostname

Create ODS Sandbox

Only create a sandbox if explicitly asked as this may be a billable action.

# create in realm zzpq with 4 hour TTL (0 = infinite); json output and wait for completion (this may take 5-10 minutes; timeout is 10 minutes)
b2c ods create --realm zzpq --ttl 4 --json --wait

# create in realm zzpq with large profile (medium is default)
b2c ods create --realm zzpq --profile large

# get full log trace output to debug
b2c ods create --realm zzpq --log-level trace

More Commands

See b2c ods --help for a full list of available commands and options in the ods topic.