Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

Setup Commands

Commands for viewing configuration and setting up the development environment.

b2c setup config

Display the resolved configuration from all sources, showing which values are set and where they came from. Useful for debugging configuration issues.

Usage

bash
b2c setup config [FLAGS]

Flags

FlagDescriptionDefault
--unmaskShow sensitive values unmasked (passwords, secrets, API keys)false
--jsonOutput results as JSONfalse

Examples

bash
# Display resolved configuration (sensitive values masked)
b2c setup config

# Display configuration with sensitive values unmasked
b2c setup config --unmask

# Output as JSON for scripting
b2c setup config --json

# Debug configuration with a specific instance
b2c setup config -i staging

Output

The command displays configuration organized by category:

  • Instance: hostname, webdavHostname, codeVersion
  • Authentication (Basic): username, password
  • Authentication (OAuth): clientId, clientSecret, scopes, authMethods, accountManagerHost
  • SCAPI: shortCode
  • Managed Runtime (MRT): mrtProject, mrtEnvironment, mrtApiKey, mrtOrigin
  • Metadata: instanceName
  • Sources: List of configuration sources that contributed values

Each value shows its source in brackets (e.g., [dw.json], [SFCC_CLIENT_ID], [~/.mobify]).

Example output:

Configuration
────────────────────────────────────────────────────────────

Instance
  hostname              my-sandbox.dx.commercecloud.salesforce.com  [DwJsonSource]
  webdavHostname        -
  codeVersion           version1                                     [DwJsonSource]

Authentication (Basic)
  username              admin                                        [DwJsonSource]
  password              admi...REDACTED                              [DwJsonSource]

Authentication (OAuth)
  clientId              my-client-id                                 [password-store]
  clientSecret          my-c...REDACTED                              [password-store]
  scopes                -
  authMethods           -
  accountManagerHost    -

SCAPI
  shortCode             abc123                                       [DwJsonSource]

Managed Runtime (MRT)
  mrtProject            my-project                                   [MobifySource]
  mrtApiKey             mrtk...REDACTED                              [MobifySource]

Sources
────────────────────────────────────────────────────────────
  1. DwJsonSource         /path/to/project/dw.json
  2. MobifySource         /Users/user/.mobify
  3. password-store       pass:b2c-cli/_default

Sensitive Values

By default, sensitive fields are masked to prevent accidental exposure:

  • password - Basic auth access key
  • clientSecret - OAuth client secret
  • mrtApiKey - MRT API key

Use --unmask to reveal the actual values when needed for debugging.

See Also

b2c setup skills

Install agent skills from the B2C Developer Tooling project to AI-powered IDEs.

This command downloads skills from GitHub releases and installs them to the configuration directories of supported IDEs. Skills teach AI assistants about B2C Commerce development, CLI commands, and best practices.

Usage

bash
b2c setup skills [SKILLSET]

Arguments

ArgumentDescriptionDefault
SKILLSETSkill set to install: b2c or b2c-cliPrompted interactively

Flags

FlagDescriptionDefault
--list, -lList available skills without installingfalse
--skillInstall specific skill(s) (can be repeated)
--ideTarget IDE(s): claude-code, cursor, windsurf, vscode, codex, opencode, manualAuto-detect
--global, -gInstall to user home directory (global scope)false
--update, -uUpdate existing skills (overwrite)false
--versionSpecific release versionlatest
--forceSkip confirmation prompts (non-interactive)false
--jsonOutput results as JSONfalse

Supported IDEs

IDE ValueIDE NameProject PathGlobal Path
claude-codeClaude Code.claude/skills/~/.claude/skills/
cursorCursor.cursor/skills/~/.cursor/skills/
windsurfWindsurf.windsurf/skills/~/.codeium/windsurf/skills/
vscodeVS Code / GitHub Copilot.github/skills/~/.copilot/skills/
codexOpenAI Codex CLI.codex/skills/~/.codex/skills/
opencodeOpenCode.opencode/skills/~/.config/opencode/skills/
manualManual.claude/skills/~/.claude/skills/

Use manual when you want to install to the Claude Code paths without marketplace recommendations.

Examples

bash
# Interactive mode (prompts for skillset and IDEs)
b2c setup skills

# List available skills in a skillset
b2c setup skills b2c --list
b2c setup skills b2c-cli --list

# Install b2c skills to Cursor (project scope)
b2c setup skills b2c --ide cursor

# Install b2c-cli skills to Cursor (global/user scope)
b2c setup skills b2c-cli --ide cursor --global

# Install to multiple IDEs
b2c setup skills b2c --ide cursor --ide windsurf

# Install specific skills only
b2c setup skills b2c-cli --skill b2c-code --skill b2c-webdav --ide cursor

# Update existing skills
b2c setup skills b2c --ide cursor --update

# Non-interactive mode (for CI/CD) - skillset required
b2c setup skills b2c-cli --ide cursor --global --force

# Install a specific version
b2c setup skills b2c --version v0.1.0 --ide cursor

# Output as JSON
b2c setup skills b2c --list --json

Interactive Mode

When run without --force, the command provides an interactive experience:

  1. Prompts you to select skill set(s) (if not provided as argument) - you can select both b2c and b2c-cli
  2. Downloads skills from the latest release (or specified version)
  3. Auto-detects installed IDEs
  4. Prompts you to select target IDEs
  5. Shows installation preview
  6. Confirms before installing
  7. Reports results

In non-interactive mode (--force), the skillset argument is required.

Claude Code Recommendation

For Claude Code users, we recommend using the plugin marketplace for automatic updates:

bash
claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
claude plugin install b2c-cli
claude plugin install b2c

The marketplace provides:

  • Automatic updates when new versions are released
  • Centralized plugin management
  • Version tracking

Use --ide manual if you prefer manual installation to the same paths.

Skill Sets

Skill SetDescription
b2cB2C Commerce development patterns and practices
b2c-cliB2C CLI commands and operations

Output

When installing, the command reports:

  • Successfully installed skills with paths
  • Skipped skills (already exist, use --update to overwrite)
  • Errors encountered during installation

Example output:

Downloading skills from release latest...
Detecting installed IDEs...
Installing 12 skills to Cursor (project)

Successfully installed 12 skill(s):
  - b2c-code → .cursor/skills/b2c-code/
  - b2c-webdav → .cursor/skills/b2c-webdav/
  ...

Environment

Skills are downloaded from the GitHub releases of the b2c-developer-tooling repository:

ArtifactContents
b2c-cli-skills.zipSkills for B2C CLI commands and operations
b2c-skills.zipSkills for B2C Commerce development patterns

Downloaded artifacts are cached locally at: ~/.cache/b2c-cli/skills/{version}/{skillset}/

See Also

Released under the Apache-2.0 License.