Sf setup

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Sf setup is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Set up a Salesforce Commerce development environment — sfcc-ci CLI for B2C, sf CLI for B2B, Business Manager access, sandbox management, dw.json configuration, .sfdx project setup, and project structures for SFRA, PWA Kit, and Lightning. Use when starting a new Salesforce Commerce project.

How to use this skill

Skill file

Salesforce Commerce Development Setup

Before Writing Code

Fetch live docs before setting up a project.

  1. Web-fetch: https://github.com/SalesforceCommerceCloud/sfcc-ci for sfcc-ci CLI commands
  2. Web-search: "site:developer.salesforce.com sf cli getting started 2026" for sf CLI setup
  3. Web-search: "site:developer.salesforce.com SFRA getting started 2026" for SFRA project setup
  4. Web-fetch: https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/api-doc.html for SFRA reference
  5. Web-search: "site:developer.salesforce.com commerce cloud b2c b2b documentation 2026"

Conceptual Architecture

Prerequisites

B2C Commerce (SFCC) requires:

B2B Commerce (Lightning) requires:

CLI Tools

| Tool | Platform | Install | Auth |

|---|---|---|---|

| sfcc-ci | B2C | npm install -g sfcc-ci | sfcc-ci client:auth (client ID + secret) |

| sf CLI | B2B | npm install -g @salesforce/cli | sf org login web or sf org login jwt |

Key sfcc-ci Commands:

Key sf CLI Commands:

Project Structures

B2C SFRA Cartridge Project:

sfra-project/
  cartridges/
    app_storefront_base/       # Base (never modify)
    app_custom_storefront/     # Custom overlay
      cartridge/
        controllers/, models/, scripts/
        templates/, client/ (js, scss)
  dw.json, package.json, webpack.config.js

B2C PWA Kit Project:

pwa-kit-project/
  app/
    components/, pages/, hooks/, utils/
    commerce-api/              # Commerce Cloud API client
  config/
    default.js, production.js
  package.json, .env

B2B Lightning Project:

b2b-lightning-project/
  force-app/main/default/
    lwc/, classes/, triggers/
    objects/, flexipages/
    experiences/, permissionsets/
  config/project-scratch-def.json
  sfdx-project.json, .forceignore

Configuration Files

dw.json (B2C):

sfdx-project.json (B2B):

.forceignore (B2B):

Key Configuration Fields

B2C dw.json fields:

B2B sfdx-project.json fields:

Sandbox and Org Types

| Type | Platform | Purpose |

|---|---|---|

| Development sandbox | B2C | Developer-specific feature work |

| Staging sandbox | B2C | Pre-production validation |

| On-demand sandbox | B2C | Temporary, via sfcc-ci sandbox:create |

| Scratch org | B2B | Short-lived, disposable dev org |

| Developer sandbox | B2B | Partial copy of production |

| Full sandbox | B2B | Full copy of production for UAT |

Environment Variables

Store credentials as environment variables, never in committed files.

B2C: SFCC_CLIENT_ID, SFCC_CLIENT_SECRET, SFCC_HOSTNAME, SFCC_USERNAME, SFCC_PASSWORD, SFCC_CODE_VERSION

B2B: SF_USERNAME, SF_ORG_ALIAS, SF_CLIENT_ID, SF_JWT_KEY_FILE (for CI/CD connected app auth)

Deprecated Technologies

| Deprecated | Replacement |

|---|---|

| dwupload | sfcc-ci |

| sfdx CLI (old) | sf CLI (unified) |

| Prophet Debugger | Official Salesforce VS Code extensions |

Best Practices

B2C Commerce

B2B Commerce

Both Platforms

Fetch the sfcc-ci documentation, SFRA getting-started guide, and sf CLI reference for exact commands and latest project structures before setting up.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.