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
| Flag | Environment Variable | Description |
|---|---|---|
--server, -s | SFCC_SERVER | B2C instance hostname |
--webdav-server | SFCC_WEBDAV_SERVER | Secure WebDAV hostname |
--code-version, -v | SFCC_CODE_VERSION | Code version |
Authentication Flags
| Flag | 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 |
Command Topics
Instance Operations
- Code Commands - Deploy cartridges and manage code versions
- Job Commands - Execute and monitor jobs, import/export site archives
- Sites Commands - List and manage sites
- WebDAV Commands - File operations on instance WebDAV
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