@salesforce/b2c-cli
v2.10.0
Published
A Salesforce B2C Commerce CLI
Readme
Salesforce B2C Commerce CLI
Develop, deploy, and administer Salesforce B2C Commerce from your terminal or CI/CD pipeline.
Documentation · Command reference · Configuration

Install
Requires Node.js 22.16 or later.
npm install -g @salesforce/b2c-cli
b2c --helpSee configuration to connect your B2C Commerce instances.
What you can do
b2c code deploy # Deploy cartridges
b2c job run my-job --wait # Run a job
b2c sandbox create --realm abcd # Create an on-demand sandbox
b2c mrt bundle deploy --project my-storefront # Deploy a Managed Runtime storefront
b2c logs tail # Stream instance logs| Task | Commands | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Develop and debug cartridges | Code, Scaffold, Debug | | Deploy and automate | Jobs, MRT, CI/CD | | Manage environments and data | Sandbox, Sites, WebDAV | | Investigate operations | Logs, CIP Analytics | | Manage access | Account Manager, Business Manager, SLAS |
Other ways to work
Use the B2C MCP server to bring B2C Commerce tools and skills to your AI assistant, or the IDE extension for editor workflows.
License
Apache License 2.0. See license.txt.
