You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ODS operations (requires `Sandbox API User` role)
109
+
- SLAS operations (requires `SLAS Organization Administrator` or `Sandbox API User` role)
105
110
106
111
### Basic Auth (WebDAV)
107
112
108
-
WebDAV operations support Basic Auth for better performance:
113
+
WebDAV operations support Basic Auth using your Business Manager username and WebDAV access key:
109
114
110
115
```bash
111
116
export SFCC_USERNAME=my-user
112
-
export SFCC_PASSWORD=my-access-key
117
+
export SFCC_PASSWORD=my-webdav-access-key
113
118
```
114
119
115
120
Used by:
116
121
-`code deploy` (file upload)
117
122
-`code watch` (file upload)
118
123
-`webdav` commands
119
124
125
+
### MRT API Key
126
+
127
+
Managed Runtime commands use a separate API key obtained from the MRT dashboard:
128
+
129
+
```bash
130
+
export SFCC_MRT_API_KEY=your-mrt-api-key
131
+
```
132
+
133
+
See [MRT Commands](./mrt#authentication) for details.
134
+
120
135
### Mixed Authentication
121
136
122
-
Some commands (like `code deploy`) require both OAuth and WebDAV access. You can provide both:
137
+
Some commands (like `code deploy` with `--reload`) require both OAuth and WebDAV access:
123
138
124
139
```bash
125
140
export SFCC_CLIENT_ID=my-client
@@ -131,7 +146,7 @@ b2c code deploy --reload
131
146
132
147
### Configuration File
133
148
134
-
Credentials can also be stored in a `dw.json` file:
149
+
Credentials can be stored in a `dw.json` file:
135
150
136
151
```json
137
152
{
@@ -143,3 +158,7 @@ Credentials can also be stored in a `dw.json` file:
143
158
```
144
159
145
160
Use `--config` to specify a custom config file path, or `--instance` to select a named instance configuration.
161
+
162
+
### Tenant Scope
163
+
164
+
For ODS and SLAS operations, your API client must have tenant scope configured for the realm/organization you wish to manage. This is set up in Account Manager when creating or editing the API client.
Copy file name to clipboardExpand all lines: docs/cli/ods.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,34 @@ These flags are available on all ODS commands:
10
10
|------|---------------------|-------------|
11
11
|`--sandbox-api-host`|`SFCC_SANDBOX_API_HOST`| ODS API hostname (default: admin.dx.commercecloud.salesforce.com) |
12
12
13
-
###Authentication
13
+
## Authentication
14
14
15
-
ODS commands require OAuth authentication. Provide `--client-id` and `--client-secret` or set the corresponding environment variables.
15
+
ODS commands require an Account Manager API Client with appropriate roles.
16
+
17
+
### Required Roles
18
+
19
+
| Auth Method | Role | Description |
20
+
|-------------|------|-------------|
21
+
| User Authentication |`Sandbox API User`| For interactive/browser-based authentication |
22
+
| Client Credentials |`Sandbox API User`| For automated/service authentication |
23
+
24
+
### Tenant Scope
25
+
26
+
The API client must have tenant scope configured for the realm(s) you wish to manage. This is configured in Account Manager when setting up the API client.
27
+
28
+
### Configuration
29
+
30
+
Provide credentials via flags or environment variables:
Copy file name to clipboardExpand all lines: docs/cli/slas.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,34 @@ These flags are available on all SLAS commands:
10
10
|------|---------------------|-------------|
11
11
|`--tenant-id`|`SFCC_TENANT_ID`| (Required) SLAS tenant ID (organization ID) |
12
12
13
-
###Authentication
13
+
## Authentication
14
14
15
-
SLAS commands require OAuth authentication. Provide `--client-id` and `--client-secret` or set the corresponding environment variables.
15
+
SLAS commands require an Account Manager API Client with appropriate roles.
16
+
17
+
### Required Roles
18
+
19
+
| Auth Method | Role | Description |
20
+
|-------------|------|-------------|
21
+
| User Authentication |`SLAS Organization Administrator`| For interactive/browser-based authentication |
22
+
| Client Credentials |`Sandbox API User`| For automated/service authentication |
23
+
24
+
### Tenant Scope
25
+
26
+
The API client must have tenant scope configured for the realm/organization you wish to manage. This is configured in Account Manager when setting up the API client.
27
+
28
+
### Configuration
29
+
30
+
Provide credentials via flags or environment variables:
31
+
32
+
```bash
33
+
# Client Credentials
34
+
export SFCC_CLIENT_ID=my-client
35
+
export SFCC_CLIENT_SECRET=my-secret
36
+
b2c slas client list --tenant-id abcd_123
37
+
38
+
# Or via flags
39
+
b2c slas client list --tenant-id abcd_123 --client-id xxx --client-secret yyy
0 commit comments