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

CLI Reference

The b2c CLI provides commands for managing Salesforce B2C Commerce instances.

Global Flags

These flags are available on all commands that interact with B2C instances:

Instance Flags

FlagEnvironment VariableDescription
--server, -sSFCC_SERVERB2C instance hostname
--webdav-serverSFCC_WEBDAV_SERVERSecure WebDAV hostname
--code-version, -vSFCC_CODE_VERSIONCode version

Authentication Flags

FlagEnvironment VariableDescription
--client-idSFCC_CLIENT_IDOAuth client ID
--client-secretSFCC_CLIENT_SECRETOAuth client secret
--username, -uSFCC_USERNAMEUsername for Basic Auth
--password, -pSFCC_PASSWORDPassword/access key for Basic Auth

Command Topics

Instance Operations

Services

  • ODS Commands - Create and manage On-Demand Sandboxes (ODS)
  • MRT Commands - Manage Managed Runtime (MRT) projects and deployments
  • SLAS Commands - Manage Shopper Login and Access Service (SLAS) API clients

Utilities

  • Auth Commands - Authentication and token management
  • Logging - Log levels, output formats, and environment variables

Getting Help

Get help for any command:

bash
b2c --help
b2c code --help
b2c code deploy --help

All rights reserved.