Skip to content

Commit 070bf6b

Browse files
committed
docs: fix inaccurate CLI flags in b2c-slas skill
The get, update, and delete commands use positional arguments for clientId, not --client-id flags. Also expanded update examples to show available flags (--name, --secret, --scopes, --replace, etc.).
1 parent fcb5d38 commit 070bf6b

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

skills/b2c-cli/skills/b2c-slas/SKILL.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ b2c slas client list --tenant-id abcd_123 --json
3535

3636
```bash
3737
# get details for a specific SLAS client
38-
b2c slas client get --tenant-id abcd_123 --client-id my-client-id
38+
b2c slas client get my-client-id --tenant-id abcd_123
3939
```
4040

4141
### Create SLAS Client
@@ -111,15 +111,27 @@ The `--slas-client-id` and `--slas-client-secret` can also be set via `SFCC_SLAS
111111
### Update SLAS Client
112112

113113
```bash
114-
# update an existing SLAS client
115-
b2c slas client update --tenant-id abcd_123 --client-id my-client-id
114+
# update the display name
115+
b2c slas client update my-client-id --tenant-id abcd_123 --name "New Name"
116+
117+
# rotate the client secret
118+
b2c slas client update my-client-id --tenant-id abcd_123 --secret new-secret-value
119+
120+
# add scopes (appends to existing by default)
121+
b2c slas client update my-client-id --tenant-id abcd_123 --scopes sfcc.shopper-baskets
122+
123+
# replace scopes instead of appending
124+
b2c slas client update my-client-id --tenant-id abcd_123 --scopes sfcc.shopper-baskets --replace
125+
126+
# replace channels
127+
b2c slas client update my-client-id --tenant-id abcd_123 --channels RefArch,SiteGenesis --replace
116128
```
117129

118130
### Delete SLAS Client
119131

120132
```bash
121133
# delete a SLAS client
122-
b2c slas client delete --tenant-id abcd_123 --client-id my-client-id
134+
b2c slas client delete my-client-id --tenant-id abcd_123
123135
```
124136

125137
### Configuration

0 commit comments

Comments
 (0)