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
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
- TypeDoc and vitepress will generate documentation from these comments in the `./docs/api` folder
17
17
- module level jsdocs will be used for organization; for example packages/b2c-tooling/src/auth/index.ts barrel file has the module level docs for the `auth` module
18
18
- see the typedoc.json file for configuration options including the entry points for documentation generation
19
+
- update the docs/ markdown files (non-generated) for user guides and CLI reference when updating major CLI functionalty or adding new commands
This command requires OAuth authentication. Provide `--client-id` and `--client-secret` or set the corresponding `SFCC_CLIENT_ID` and `SFCC_CLIENT_SECRET` environment variables.
58
+
59
+
---
60
+
5
61
## b2c code deploy
6
62
7
63
Deploy cartridges to a B2C Commerce instance.
8
64
65
+
This command finds cartridges in the specified directory (by looking for `.project` files), creates a zip archive, uploads it via WebDAV, and optionally reloads the code version.
Cartridges are discovered by searching for `.project` files (Eclipse project markers commonly used in SFCC development). The directory containing the `.project` file is considered a cartridge.
125
+
126
+
### Authentication
127
+
128
+
This command requires both WebDAV and OAuth authentication:
129
+
130
+
-**WebDAV** (for file upload): Basic Auth (`--username`/`--password`) or OAuth
131
+
-**OAuth** (for code version reload): `--client-id` and `--client-secret`
132
+
133
+
Basic authentication is recommended for WebDAV operations due to better performance.
134
+
135
+
---
136
+
137
+
## b2c code activate
138
+
139
+
Activate a code version on a B2C Commerce instance, or reload the current active version.
140
+
141
+
### Usage
142
+
143
+
```bash
144
+
b2c code activate [CODEVERSION]
145
+
```
146
+
147
+
### Arguments
148
+
149
+
| Argument | Description | Required |
150
+
|----------|-------------|----------|
151
+
|`CODEVERSION`| Code version ID to activate | No (required unless `--reload`) |
152
+
153
+
### Flags
154
+
155
+
In addition to [global flags](./index#global-flags):
156
+
157
+
| Flag | Short | Description | Default |
158
+
|------|-------|-------------|---------|
159
+
|`--reload`|`-r`| Reload the code version (toggle activation to force reload) |`false`|
0 commit comments