| description |
|---|
Commands for creating, updating, and managing Shopper Login and API Access Service (SLAS) clients. |
Commands for managing Shopper Login and API Security (SLAS) clients.
These flags are available on all SLAS commands:
| Flag | Environment Variable | Description |
|---|---|---|
--tenant-id |
SFCC_TENANT_ID |
(Required) SLAS tenant ID (organization ID) |
SLAS commands work out of the box using the CLI's built-in public client, which authenticates via browser login (implicit flow). No API client configuration is required for interactive use.
For automation or CI/CD, you can provide your own API client credentials.
| Auth Method | Role | Configured On |
|---|---|---|
| Built-in client (default) | SLAS Organization Administrator |
Your user account |
| User Authentication | SLAS Organization Administrator |
Your user account |
| Client Credentials | Sandbox API User |
The API client |
The role must have a tenant filter configured for the organization you wish to manage.
# No configuration needed — opens browser for login
b2c slas client list --tenant-id abcd_123
# Or provide your own client ID
b2c slas client list --tenant-id abcd_123 --client-id xxx
# Client Credentials (for automation)
export SFCC_CLIENT_ID=my-client
export SFCC_CLIENT_SECRET=my-secret
b2c slas client list --tenant-id abcd_123For complete setup instructions, see the Authentication Guide.
List SLAS clients for a tenant.
b2c slas client list --tenant-id <TENANT_ID>| Flag | Description | Required |
|---|---|---|
--tenant-id |
SLAS tenant ID (organization ID) | Yes |
# List all SLAS clients for a tenant
b2c slas client list --tenant-id abcd_123
# Output as JSON
b2c slas client list --tenant-id abcd_123 --json
# Using environment variables
export SFCC_TENANT_ID=abcd_123
b2c slas client listDisplays a list of SLAS clients with:
- Client ID
- Name
- Type (public/private)
- Channels
Create a new SLAS client.
b2c slas client create [CLIENTID] --tenant-id <TENANT_ID> --channels <CHANNELS> --redirect-uri <URI>| Argument | Description | Required |
|---|---|---|
CLIENTID |
SLAS client ID (generates UUID if omitted) | No |
| Flag | Description | Default |
|---|---|---|
--tenant-id |
SLAS tenant ID (organization ID) | Required |
--channels |
Site IDs/channels (comma-separated) | Required |
--redirect-uri |
Redirect URIs (comma-separated) | Required |
--name |
Display name for the client | Auto-generated |
--scopes |
OAuth scopes for the client (comma-separated) | |
--default-scopes |
Use default shopper scopes | false |
--callback-uri |
Callback URIs for passwordless login | |
--secret |
Client secret (generated if omitted) | Auto-generated |
--public |
Create a public client (default is private) | false |
--[no-]create-tenant |
Automatically create tenant if it doesn't exist | true |
# Create a private client with specific scopes
b2c slas client create --tenant-id abcd_123 \
--channels RefArch \
--scopes sfcc.shopper-products,sfcc.shopper-search \
--redirect-uri http://localhost:3000/callback
# Create a named client with custom ID
b2c slas client create my-client-id --tenant-id abcd_123 \
--name "My Application" \
--channels RefArch \
--scopes sfcc.shopper-products \
--redirect-uri http://localhost:3000/callback
# Create a public client
b2c slas client create --tenant-id abcd_123 \
--channels RefArch \
--default-scopes \
--redirect-uri http://localhost:3000/callback \
--public
# Output as JSON (useful for capturing the generated secret)
b2c slas client create --tenant-id abcd_123 \
--channels RefArch \
--default-scopes \
--redirect-uri http://localhost:3000/callback \
--json- If
--secretis not provided for a private client, one will be generated - The generated secret is only shown once during creation
- Use
--default-scopesfor common shopper API access scopes - By default, the tenant is automatically created if it doesn't exist. Use
--no-create-tenantto disable this behavior if you prefer to manage tenants separately
Get details of a SLAS client.
b2c slas client get <CLIENTID> --tenant-id <TENANT_ID>| Argument | Description | Required |
|---|---|---|
CLIENTID |
SLAS client ID to retrieve | Yes |
# Get client details
b2c slas client get my-client-id --tenant-id abcd_123
# Output as JSON
b2c slas client get my-client-id --tenant-id abcd_123 --jsonDisplays detailed information about the client including:
- Client ID and name
- Type (public/private)
- Channels
- Scopes
- Redirect URIs
- Callback URIs
Update an existing SLAS client.
b2c slas client update <CLIENTID> --tenant-id <TENANT_ID> [FLAGS]| Argument | Description | Required |
|---|---|---|
CLIENTID |
SLAS client ID to update | Yes |
| Flag | Description |
|---|---|
--tenant-id |
(Required) SLAS tenant ID |
--name |
Update display name |
--secret |
Rotate client secret |
--channels |
Update channels (comma-separated) |
--scopes |
Update scopes (comma-separated) |
--redirect-uri |
Update redirect URIs (comma-separated) |
--callback-uri |
Update callback URIs (comma-separated) |
--replace |
Replace list values instead of appending |
# Update client name
b2c slas client update my-client-id --tenant-id abcd_123 --name "New Name"
# Rotate client secret
b2c slas client update my-client-id --tenant-id abcd_123 --secret new-secret-value
# Add scopes (appends to existing)
b2c slas client update my-client-id --tenant-id abcd_123 --scopes sfcc.shopper-baskets
# Replace all scopes
b2c slas client update my-client-id --tenant-id abcd_123 \
--scopes sfcc.shopper-products,sfcc.shopper-baskets \
--replace
# Replace all channels
b2c slas client update my-client-id --tenant-id abcd_123 \
--channels RefArch,SiteGenesis \
--replace- By default, list values (channels, scopes, URIs) are appended to existing values
- Use
--replaceto replace all values instead of appending - Secret rotation takes effect immediately
Delete a SLAS client.
b2c slas client delete <CLIENTID> --tenant-id <TENANT_ID>| Argument | Description | Required |
|---|---|---|
CLIENTID |
SLAS client ID to delete | Yes |
# Delete a client
b2c slas client delete my-client-id --tenant-id abcd_123
# Output as JSON
b2c slas client delete my-client-id --tenant-id abcd_123 --json- Deletion is permanent and cannot be undone
- Active sessions using this client will be invalidated