The b2c CLI provides commands for managing Salesforce B2C Commerce instances.
These flags are available on all commands that interact with B2C instances:
| Flag | Short | Environment Variable | Description |
|---|---|---|---|
--server |
-s |
SFCC_SERVER |
B2C instance hostname |
--webdav-server |
SFCC_WEBDAV_SERVER |
Separate WebDAV hostname (if different) | |
--code-version |
-v |
SFCC_CODE_VERSION |
Code version |
| Flag | Short | Environment Variable | Description |
|---|---|---|---|
--client-id |
SFCC_CLIENT_ID |
OAuth client ID | |
--client-secret |
SFCC_CLIENT_SECRET |
OAuth client secret | |
--username |
-u |
SFCC_USERNAME |
Username for Basic Auth |
--password |
-p |
SFCC_PASSWORD |
Password/access key for Basic Auth |
- Code Commands - Deploy cartridges and manage code versions
- Sites Commands - List and manage sites
- Sandbox Commands - Create and manage sandboxes
- MRT Commands - Manage Managed Runtime environments
- Logging - Log levels, output formats, and environment variables
Get help for any command:
b2c --help
b2c code --help
b2c code deploy --help