How to use On-Demand Salesforce Commerce Cloud Sandbox

city

On-Demand Salesforce Commerce Cloud boxes can be using sfcc-ci or native SFCC’s swagger. I am going to jot down steps using sfcc-ci

1. sfcc-ci is available in GitHub, https://github.com/SalesforceCommerceCloud/sfcc-ci

2. You could clone the repo or use npm to install.

3. Create dw.json in your visual studio code workspace and if you are trying to run behind the firewall, set “self-signed”: “true”

{     “client-id”: “xxxxxxxxxxxxxxx”,     “client-secret”: “”,     “self-signed”: “true”,     “hostname”: “”,     “username”: “”,     “password”: “”,     “realm”: “xxxx” }

You have successfully setup sfcc-ci and now good to use the command-line interface to access on-demand SFCC Sandbox.

I commonly use these CLI commands.

  1. To authenticate the realm

sfcc-ci auth:login

2. To list sandboxes in your realm

sfcc-ci sandbox:list

3. To start the sandbox

sfcc-ci sandbox:start -s <realmID>-<sandbox number>

eg.usuallyrealmID is 4 character and sandbox number starts from 001

4. To stop the sandbox

sfcc-ci sandbox:stop -s <realmID>-<sandbox number>

eg.usuallyrealmID is 4 character and sandbox number starts from 001

5. To restart sandbox

sfcc-ci sandbox:restart -s <realmID>-<sandbox number>

eg.usuallyrealmID is 4 character and sandbox number starts from 001

Share on

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Related Posts

LWC vs Aura

LWC LWC uses core Web Components standards (Native browser APIs) and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s

Marketing Cloud Basics

It enables you to know your customer, personalize with intelligence, and engage across the entire journey. It’s the only integrated customer engagement platform that enables

SFDX

Prerequisite: Enable “Dev Hub” in your Production Org. 1. Log in to the Dev Hub To authorize the Dev Hub, use the web login flow

Platform Events

Platform event is based on Event-driven architecture. Unlike request-response communication models, software architecture built on an event-driven model decouples event producers from event consumers, thereby