Installation
Prerequisites
- macOS, Linux, or Windows
- Node.js 22.0.0 or higher (for npm installation or SDK usage)
Install via npm (Recommended)
Install the CLI globally using your preferred package manager:
bash
npm install -g @salesforce/b2c-clibash
pnpm add -g @salesforce/b2c-clibash
yarn global add @salesforce/b2c-cliInstall via Homebrew
On macOS or Linux, you can install via Homebrew:
bash
brew install salesforcecommercecloud/tools/b2c-cliOr tap the repository first:
bash
brew tap salesforcecommercecloud/tools
brew install b2c-cliInstall from GitHub Releases
Download the latest release tarball from GitHub Releases and install manually:
bash
npm install -g ./salesforce-b2c-cli-<version>.tgzVerify Installation
After installation, verify the CLI is available:
bash
b2c --versionInstall the SDK (Optional)
If you want to use the SDK library in your own projects:
bash
npm install @salesforce/b2c-tooling-sdkbash
pnpm add @salesforce/b2c-tooling-sdkbash
yarn add @salesforce/b2c-tooling-sdkNext Steps
- Configuration - Set up authentication and instance configuration