Sites Commands
Commands for managing sites on B2C Commerce instances.
b2c sites list
List sites on a B2C Commerce instance.
Usage
bash
b2c sites listFlags
Uses global instance and authentication flags.
Examples
bash
# List sites on an instance
b2c sites list --server my-sandbox.demandware.net --client-id xxx --client-secret yyy
# Using environment variables
export SFCC_SERVER=my-sandbox.demandware.net
export SFCC_CLIENT_ID=your-client-id
export SFCC_CLIENT_SECRET=your-client-secret
b2c sites listOutput
The command displays a list of sites with their:
- Site ID
- Display name
- Status
Example output:
Found 2 site(s):
RefArch
Display Name: Reference Architecture
Status: online
SiteGenesis
Display Name: Site Genesis
Status: onlineAuthentication
This command requires OAuth authentication. Provide --client-id and --client-secret or set the corresponding SFCC_CLIENT_ID and SFCC_CLIENT_SECRET environment variables.