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

Installation

Prerequisites

  • macOS, Linux, or Windows
  • Node.js 22.0.0 or higher (for npm installation or SDK usage)

Install the CLI globally using your preferred package manager:

bash
npm install -g @salesforce/b2c-cli
bash
pnpm add -g @salesforce/b2c-cli
bash
yarn global add @salesforce/b2c-cli

Install via Homebrew

On macOS or Linux, you can install via Homebrew:

bash
brew install salesforcecommercecloud/tools/b2c-cli

Or tap the repository first:

bash
brew tap salesforcecommercecloud/tools
brew install b2c-cli

Install from GitHub Releases

Download the latest release tarball from GitHub Releases and install manually:

bash
npm install -g ./salesforce-b2c-cli-<version>.tgz

Verify Installation

After installation, verify the CLI is available:

bash
b2c --version

Install the SDK (Optional)

If you want to use the SDK library in your own projects:

bash
npm install @salesforce/b2c-tooling-sdk
bash
pnpm add @salesforce/b2c-tooling-sdk
bash
yarn add @salesforce/b2c-tooling-sdk

Next Steps

Released under the Apache-2.0 License.