@contentstack/cli-cm-bulk-publish 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,8 +17,8 @@ It is Contentstack’s CLI plugin to perform bulk publish/unpublish operations o
17
17
  $ npm install -g @contentstack/cli-cm-bulk-publish
18
18
  $ csdx COMMAND
19
19
  running command...
20
- $ csdx (-v|--version|version)
21
- @contentstack/cli-cm-bulk-publish/1.0.4 linux-x64 node-v16.18.1
20
+ $ csdx (--version)
21
+ @contentstack/cli-cm-bulk-publish/1.2.0 linux-x64 node-v16.19.1
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -32,18 +32,28 @@ USAGE
32
32
  * [`csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmassetspublish--a-value---retry-failed-value--e-value---folder-uid-value---bulk-publish-value--c-value--y---locales-value---branch-value---delivery-token-value---source-env-value)
33
33
  * [`csdx cm:assets:unpublish`](#csdx-cmassetsunpublish)
34
34
  * [`csdx cm:bulk-publish`](#csdx-cmbulk-publish)
35
+ * [`csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`](#csdx-cmentriesupdate-and-publish--a-value---retry-failed-value---bulk-publish-value---content-types-value--t-value--e-value--c-value--y---locales-value---branch-value)
36
+ * [`csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmassetspublish--a-value---retry-failed-value--e-value---folder-uid-value---bulk-publish-value--c-value--y---locales-value---branch-value---delivery-token-value---source-env-value-1)
37
+ * [`csdx cm:bulk-publish:clear`](#csdx-cmbulk-publishclear)
38
+ * [`csdx cm:bulk-publish:configure`](#csdx-cmbulk-publishconfigure)
35
39
  * [`csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>] [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]`](#csdx-cmbulk-publishcross-publish--a-value---retry-failed-value---bulk-publish-value---content-type-value---locales-value---source-env-value---environments-value---delivery-token-value--c-value--y---branch-value---onlyassets---onlyentries)
36
40
  * [`csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmentriespublish--a-value---retry-failed-value---bulk-publish-value---publish-all-content-types---content-types-value---locales-value--e-value--c-value--y---branch-value---delivery-token-value---source-env-value)
37
41
  * [`csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-modified--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value---locales-value--e-value--c-value--y---branch-value)
38
42
  * [`csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-non-localized-fields--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value--e-value--c-value--y---branch-value)
43
+ * [`csdx cm:bulk-publish:revert`](#csdx-cmbulk-publishrevert)
44
+ * [`csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`](#csdx-csdx-cmstacksunpublish--a-value--e-value--c-value--y---locale-value---branch-value---retry-failed-value---bulk-unpublish-value---content-type-value---delivery-token-value---only-assets---only-entries)
39
45
  * [`csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-only-unpublished--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value---locales-value--e-value--c-value--y---branch-value)
46
+ * [`csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmentriespublish--a-value---retry-failed-value---bulk-publish-value---publish-all-content-types---content-types-value---locales-value--e-value--c-value--y---branch-value---delivery-token-value---source-env-value-1)
47
+ * [`csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-modified--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value---locales-value--e-value--c-value--y---branch-value-1)
48
+ * [`csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-non-localized-fields--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value--e-value--c-value--y---branch-value-1)
49
+ * [`csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`](#csdx-cmentriespublish-only-unpublished--a-value---retry-failed-value---bulk-publish-value---source-env-value---content-types-value---locales-value--e-value--c-value--y---branch-value-1)
40
50
  * [`csdx cm:entries:unpublish`](#csdx-cmentriesunpublish)
41
- * [`csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`](#csdx-cmentriesupdate-and-publish--a-value---retry-failed-value---bulk-publish-value---content-types-value--t-value--e-value--c-value--y---locales-value---branch-value)
51
+ * [`csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`](#csdx-cmentriesupdate-and-publish--a-value---retry-failed-value---bulk-publish-value---content-types-value--t-value--e-value--c-value--y---locales-value---branch-value-1)
42
52
  * [`csdx cm:stacks:publish`](#csdx-cmstackspublish)
43
53
  * [`csdx cm:stacks:publish-clear-logs`](#csdx-cmstackspublish-clear-logs)
44
54
  * [`csdx cm:stacks:publish-configure`](#csdx-cmstackspublish-configure)
45
55
  * [`csdx cm:stacks:publish-revert`](#csdx-cmstackspublish-revert)
46
- * [`csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`](#csdx-csdx-cmstacksunpublish--a-value--e-value--c-value--y---locale-value---branch-value---retry-failed-value---bulk-unpublish-value---content-type-value---delivery-token-value---only-assets---only-entries)
56
+ * [`csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`](#csdx-csdx-cmstacksunpublish--a-value--e-value--c-value--y---locale-value---branch-value---retry-failed-value---bulk-unpublish-value---content-type-value---delivery-token-value---only-assets---only-entries-1)
47
57
 
48
58
  ## `csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
49
59
 
@@ -51,373 +61,967 @@ Publish assets to the specified environments
51
61
 
52
62
  ```
53
63
  USAGE
54
- $ csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish
55
- <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]
64
+ $ csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish
65
+ <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]
66
+
67
+ FLAGS
68
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
69
+ selected)
70
+ -a, --alias=<value> Alias(name) for the management token
71
+ -c, --config=<value> Path to the config file
72
+ -e, --environments=<value>... Environments where assets will be published
73
+ -l, --locales=<value>... Locales to where assets will be published
74
+ -y, --yes Agree to process the command with the current configuration
75
+ --bulk-publish=<value> [default: true] By default this flag is set as true. It indicates that contentstack's
76
+ bulkpublish API will be used to publish the assets
77
+ --delivery-token=<value> Delivery token for source environment
78
+ --folder-uid=<value> [default: cs_root] Folder-uid from where the assets will be published
79
+ --retry-failed=<value> Retry publishing failed assets from the logfile (optional, will override all other
80
+ flags)
81
+ --source-env=<value> Source environment
82
+
83
+ DESCRIPTION
84
+ Publish assets to the specified environments
85
+ The assets command is used to publish assets from the specified stack, to the specified environments
86
+
87
+ Note: Environment(s) and Locale(s) are required to execute the command successfully
88
+ But, if retryFailed flag is set, then only a logfile is required
89
+
90
+
91
+ ALIASES
92
+ $ csdx cm:bulk-publish:assets
93
+
94
+ EXAMPLES
95
+ General Usage
96
+
97
+ $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS]
98
+
99
+
100
+
101
+ Using --config or -c flag
102
+
103
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
104
+
105
+ $ csdx cm:assets:publish --config [PATH TO CONFIG FILE]
106
+
107
+ $ csdx cm:assets:publish -c [PATH TO CONFIG FILE]
108
+
109
+
110
+
111
+ Using --retry-failed flag
112
+
113
+ $ csdx cm:assets:publish --retry-failed [LOG FILE NAME]
114
+
115
+
116
+
117
+ Using --branch flag
118
+
119
+ $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
120
+
121
+
122
+
123
+ Using --source-env
124
+
125
+ $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
126
+ ```
127
+
128
+ _See code: [src/commands/cm/assets/publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/publish.js)_
129
+
130
+ ## `csdx cm:assets:unpublish`
131
+
132
+ Unpublish assets from given environment
133
+
134
+ ```
135
+ USAGE
136
+ $ csdx cm:assets:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
137
+ [--retry-failed <value>] [--bulk-unpublish <value>] [--delivery-token <value>]
138
+
139
+ FLAGS
140
+ -a, --alias=<value> Alias(name) for the management token
141
+ -c, --config=<value> Path to the config file
142
+ -e, --environment=<value> Source Environment
143
+ -y, --yes Agree to process the command with the current configuration
144
+ --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
145
+ selected)
146
+ --bulk-unpublish=<value> [default: true] By default this flag is set as true. It indicates that contentstack's
147
+ bulkpublish API will be used to unpublish the assets
148
+ --delivery-token=<value> Delivery Token for source environment
149
+ --locale=<value> Locale filter
150
+ --retry-failed=<value> Retry unpublishing failed assets from the logfile
151
+
152
+ DESCRIPTION
153
+ Unpublish assets from given environment
154
+ The unpublish command is used for unpublishing assets from the given environment
155
+
156
+ Note: Environment (Source Environment) and Locale are required to execute the command successfully
157
+ But, if retry-failed flag is set, then only a logfile is required
158
+
159
+ EXAMPLES
160
+ General Usage
161
+
162
+ $ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
163
+
164
+
165
+
166
+ Using --config or -c flag
167
+
168
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
169
+
170
+ $ csdx cm:assets:unpublish --config [PATH TO CONFIG FILE]
171
+
172
+ $ csdx cm:assets:unpublish -c [PATH TO CONFIG FILE]
173
+
174
+
175
+
176
+ Using --retry-failed flag
177
+
178
+ $ csdx cm:assets:unpublish --retry-failed [LOG FILE NAME]
179
+
56
180
 
57
- OPTIONS
58
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
59
- is selected)
60
181
 
61
- -a, --alias=alias Alias(name) for the management token
182
+ Using --branch flag
62
183
 
63
- -c, --config=config Path to the config file
184
+ $ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
185
+ ```
64
186
 
65
- -e, --environments=environments Environments where assets will be published
187
+ _See code: [src/commands/cm/assets/unpublish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/unpublish.js)_
66
188
 
67
- -l, --locales=locales Locales to where assets will be published
189
+ ## `csdx cm:bulk-publish`
68
190
 
69
- -y, --yes Agree to process the command with the current configuration
191
+ Bulk Publish script for managing entries and assets
70
192
 
71
- --bulk-publish=bulk-publish [default: true] By default this flag is set as true. It indicates that contentstack's
72
- bulkpublish API will be used to publish the assets
193
+ ```
194
+ USAGE
195
+ $ csdx cm:bulk-publish
73
196
 
74
- --delivery-token=delivery-token Delivery token for source environment
197
+ DESCRIPTION
198
+ Bulk Publish script for managing entries and assets
199
+ ```
75
200
 
76
- --folder-uid=folder-uid [default: cs_root] Folder-uid from where the assets will be published
201
+ _See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
77
202
 
78
- --retry-failed=retry-failed Retry publishing failed assets from the logfile (optional, will override all other
79
- flags)
203
+ ## `csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`
80
204
 
81
- --source-env=source-env Source environment
205
+ Add fields from updated content types to their respective entries
206
+
207
+ ```
208
+ USAGE
209
+ $ csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types
210
+ <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]
211
+
212
+ FLAGS
213
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
214
+ selected)
215
+ -a, --alias=<value> Alias(name) for the management token
216
+ -c, --config=<value> Path to the config file
217
+ -e, --environments=<value>... Environments where entries will be published
218
+ -l, --locales=<value>... Locales where entries will be published
219
+ -t, --contentTypes=<value>... The Contenttypes from which entries will be published
220
+ -y, --yes Agree to process the command with the current configuration
221
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
222
+ bulkpublish API will be used to publish the entries
223
+ --content-types=<value>... The Contenttypes from which entries will be published
224
+ --force Update and publish all entries even if no fields have been added
225
+ --retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
82
226
 
83
227
  DESCRIPTION
228
+ Add fields from updated content types to their respective entries
229
+ The update-and-publish command is used to update existing entries with the updated schema of the respective content
230
+ type
231
+
232
+ Note: Content types, Environments and Locales are required to execute the command successfully
233
+ But, if retry-failed flag is set, then only a logfile is required
234
+
235
+
236
+ ALIASES
237
+ $ csdx cm:bulk-publish:add-fields
238
+
239
+ EXAMPLES
240
+ General Usage
241
+
242
+ $ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
243
+
244
+
245
+
246
+ Using --config or -c flag
247
+
248
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
249
+
250
+ $ csdx cm:entries:update-and-publish --config [PATH TO CONFIG FILE]
251
+
252
+ $ csdx cm:entries:update-and-publish -c [PATH TO CONFIG FILE]
253
+
254
+
255
+
256
+ Using --retry-failed
257
+
258
+ $ csdx cm:entries:update-and-publish --retry-failed [LOG FILE NAME]
259
+
260
+
261
+
262
+ Using --branch
263
+
264
+ $ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
265
+ ```
266
+
267
+ ## `csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
268
+
269
+ Publish assets to the specified environments
270
+
271
+ ```
272
+ USAGE
273
+ $ csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish
274
+ <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]
275
+
276
+ FLAGS
277
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
278
+ selected)
279
+ -a, --alias=<value> Alias(name) for the management token
280
+ -c, --config=<value> Path to the config file
281
+ -e, --environments=<value>... Environments where assets will be published
282
+ -l, --locales=<value>... Locales to where assets will be published
283
+ -y, --yes Agree to process the command with the current configuration
284
+ --bulk-publish=<value> [default: true] By default this flag is set as true. It indicates that contentstack's
285
+ bulkpublish API will be used to publish the assets
286
+ --delivery-token=<value> Delivery token for source environment
287
+ --folder-uid=<value> [default: cs_root] Folder-uid from where the assets will be published
288
+ --retry-failed=<value> Retry publishing failed assets from the logfile (optional, will override all other
289
+ flags)
290
+ --source-env=<value> Source environment
291
+
292
+ DESCRIPTION
293
+ Publish assets to the specified environments
84
294
  The assets command is used to publish assets from the specified stack, to the specified environments
85
295
 
86
296
  Note: Environment(s) and Locale(s) are required to execute the command successfully
87
297
  But, if retryFailed flag is set, then only a logfile is required
88
298
 
299
+
89
300
  ALIASES
90
301
  $ csdx cm:bulk-publish:assets
91
302
 
92
303
  EXAMPLES
93
304
  General Usage
94
- csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
95
- ALIAS]
305
+
306
+ $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS]
307
+
308
+
96
309
 
97
310
  Using --config or -c flag
311
+
98
312
  Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
99
- csdx cm:assets:publish --config [PATH TO CONFIG FILE]
100
- csdx cm:assets:publish -c [PATH TO CONFIG FILE]
313
+
314
+ $ csdx cm:assets:publish --config [PATH TO CONFIG FILE]
315
+
316
+ $ csdx cm:assets:publish -c [PATH TO CONFIG FILE]
317
+
318
+
101
319
 
102
320
  Using --retry-failed flag
103
- csdx cm:assets:publish --retry-failed [LOG FILE NAME]
321
+
322
+ $ csdx cm:assets:publish --retry-failed [LOG FILE NAME]
323
+
324
+
104
325
 
105
326
  Using --branch flag
106
- csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
107
- ALIAS] --branch [BRANCH NAME]
327
+
328
+ $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
329
+
330
+
108
331
 
109
332
  Using --source-env
110
- csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
111
- ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
333
+
334
+ $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
112
335
  ```
113
336
 
114
- _See code: [src/commands/cm/assets/publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/publish.js)_
337
+ ## `csdx cm:bulk-publish:clear`
338
+
339
+ Clear the log folder
340
+
341
+ ```
342
+ USAGE
343
+ $ csdx cm:bulk-publish:clear [--log-files-count] [-y]
344
+
345
+ FLAGS
346
+ -y, --yes Delete all files without asking for confirmation
347
+ --log-files-count List number of log files
348
+
349
+ DESCRIPTION
350
+ Clear the log folder
351
+
352
+ ALIASES
353
+ $ csdx cm:bulk-publish:clear
354
+
355
+ EXAMPLES
356
+ $ csdx cm:stacks:publish-clear-logs
357
+
358
+ $ csdx cm:stacks:publish-clear-logs --log-files-count
359
+
360
+ $ csdx cm:stacks:publish-clear-logs --yes
361
+
362
+ $ csdx cm:stacks:publish-clear-logs -y
363
+ ```
364
+
365
+ ## `csdx cm:bulk-publish:configure`
366
+
367
+ The configure command is used to generate a configuration file for publish scripts.
368
+
369
+ ```
370
+ USAGE
371
+ $ csdx cm:bulk-publish:configure [-a <value>]
372
+
373
+ FLAGS
374
+ -a, --alias=<value> Alias(name) for the management token
375
+
376
+ DESCRIPTION
377
+ The configure command is used to generate a configuration file for publish scripts.
378
+
379
+ ALIASES
380
+ $ csdx cm:bulk-publish:configure
381
+
382
+ EXAMPLES
383
+ $ csdx cm:stacks:publish-configure
384
+
385
+ $ csdx cm:stacks:publish-configure -a <management_token_alias>
386
+
387
+ $ csdx cm:stacks:publish-configure --alias <management_token_alias>
388
+ ```
389
+
390
+ ## `csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>] [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]`
391
+
392
+ Publish entries and assets from one environment to other environments
393
+
394
+ ```
395
+ USAGE
396
+ $ csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type
397
+ <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>]
398
+ [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]
399
+
400
+ FLAGS
401
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
402
+ selected)
403
+ -a, --alias=<value> Alias(name) for the management token
404
+ -c, --config=<value> Path to the config file
405
+ -y, --yes Agree to process the command with the current configuration
406
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
407
+ bulkpublish API will be used to publish the entries
408
+ --content-type=<value>... The Contenttypes from which entries will be published
409
+ --delivery-token=<value> Delivery token for source environment
410
+ --environments=<value>... Destination Environments
411
+ --locales=<value> Source locale
412
+ --onlyAssets Unpublish only assets
413
+ --onlyEntries Unpublish only entries
414
+ --retry-failed=<value> (optional) Retry publishing failed entries from the logfile (this flag overrides all other
415
+ flags)
416
+ --source-env=<value> Source Env
417
+
418
+ DESCRIPTION
419
+ Publish entries and assets from one environment to other environments
420
+ The cross-publish command is used to publish entries and assets from one environment to other environments
421
+
422
+ Note: Content Type, Environment, Destination Environment(s) and Locale are required to execute the command
423
+ successfully
424
+ But, if retryFailed flag is set, then only a logfile is required
425
+
426
+
427
+ EXAMPLES
428
+ General Usage
429
+
430
+ $ csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
431
+
432
+
433
+
434
+ Using --config or -c flag
435
+
436
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
437
+
438
+ $ csdx cm:bulk-publish:cross-publish --config [PATH TO CONFIG FILE]
439
+
440
+ $ csdx cm:bulk-publish:cross-publish -c [PATH TO CONFIG FILE]
441
+
442
+
443
+
444
+ Using --retry-failed flag
445
+
446
+ $ csdx cm:bulk-publish:cross-publish --retry-failed [LOG FILE NAME]
447
+
448
+ $ csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
449
+
450
+
451
+
452
+ Using --branch flag
453
+
454
+ $ csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
455
+ ```
456
+
457
+ _See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
458
+
459
+ ## `csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
460
+
461
+ Publish entries from multiple contenttypes to multiple environments and locales
462
+
463
+ ```
464
+ USAGE
465
+ $ csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
466
+ [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch
467
+ <value>] [--delivery-token <value>] [--source-env <value>]
468
+
469
+ FLAGS
470
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
471
+ selected)
472
+ -a, --alias=<value> Alias(name) for the management token
473
+ -c, --config=<value> Path for the external config file (A new config file can be generated at the current
474
+ working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
475
+ -e, --environments=<value>... Environments where entries will be published
476
+ -l, --locales=<value>... Locales where entries will be published
477
+ -y, --yes Agree to process the command with the current configuration
478
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
479
+ bulkpublish API will be used to publish the entries
480
+ --content-types=<value>... The Contenttypes from which entries need to be published
481
+ --delivery-token=<value> Delivery token for source environment
482
+ --publish-all-content-types (optional) Publish all contenttypes (cannot be set when contentTypes flag is set)
483
+ --retry-failed=<value> (optional) Retry failed entries from the logfile (overrides all other flags) This flag
484
+ is used to retry publishing entries that failed to publish in a previous attempt. A log
485
+ file for the previous session will be required for processing the failed entries
486
+ --source-env=<value> Source environment
487
+
488
+ DESCRIPTION
489
+ Publish entries from multiple contenttypes to multiple environments and locales
490
+ The publish command is used to publish entries from the specified content types, to the
491
+ specified environments and locales
492
+
493
+ Note: Content Types, Environments and Locales are required to execute the command successfully
494
+ But, if retry-failed flag is set, then only a logfile is required
495
+
496
+
497
+ ALIASES
498
+ $ csdx cm:bulk-publish:entries
499
+
500
+ EXAMPLES
501
+ General Usage
502
+
503
+ $ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
504
+
505
+
506
+
507
+ Using --config or -c flag
508
+
509
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
510
+
511
+ $ csdx cm:entries:publish --config [PATH TO CONFIG FILE]
512
+
513
+ $ csdx cm:entries:publish -c [PATH TO CONFIG FILE]
514
+
515
+
516
+
517
+ Using --retry-failed
518
+
519
+ $ csdx cm:entries:publish --retry-failed [LOG FILE NAME]
520
+
521
+ $ csdx cm:entries:publish -r [LOG FILE NAME]
522
+
523
+
524
+
525
+ Using --branch
526
+
527
+ $ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
528
+
529
+
530
+
531
+ Using --source-env
532
+
533
+ $ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
534
+ ```
535
+
536
+ ## `csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
537
+
538
+ Publish edited entries from a specified content type to the given locales and environments
539
+
540
+ ```
541
+ USAGE
542
+ $ csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env
543
+ <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
544
+
545
+ FLAGS
546
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
547
+ selected)
548
+ -a, --alias=<value> Alias(name) for the management token
549
+ -c, --config=<value> Path to the config file
550
+ -e, --environments=<value>... Destination environments
551
+ -l, --locales=<value>... Locales where edited entries will be published
552
+ -y, --yes Agree to process the command with the current configuration
553
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
554
+ bulkpublish API will be used to publish the entries
555
+ --content-types=<value>... The Contenttypes which will be checked for edited entries
556
+ --retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
557
+ --source-env=<value> Environment from which edited entries will be published
558
+
559
+ DESCRIPTION
560
+ Publish edited entries from a specified content type to the given locales and environments
561
+ The publish-modified command is used to publish entries from the specified content types, to the
562
+ specified environments and locales
563
+
564
+ Note: Content type(s), Source Environment, Destination Environment(s) and Locale(s) are required to execute the
565
+ command successfully
566
+ But, if retry-failed flag is set, then only a logfile is required
567
+
568
+
569
+ ALIASES
570
+ $ csdx cm:bulk-publish:entry-edits
571
+
572
+ EXAMPLES
573
+ General Usage
574
+
575
+ $ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
576
+
577
+
578
+
579
+ Using --config or -c flag
580
+
581
+ Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
582
+
583
+ $ csdx cm:entries:publish-modified --config [PATH TO CONFIG FILE]
584
+
585
+ $ csdx cm:entries:publish-modified -c [PATH TO CONFIG FILE]
586
+
587
+
588
+
589
+ Using --retry-failed
590
+
591
+ $ csdx cm:entries:publish-modified --retry-failed [LOG FILE NAME]
592
+
593
+ $ csdx cm:entries:publish-modified -r [LOG FILE NAME]
594
+
595
+
596
+
597
+ Using --branch
598
+
599
+ $ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
600
+ ```
601
+
602
+ ## `csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
603
+
604
+ Publish non-localized fields for the given content types, from a particular source environment to the specified environments
605
+
606
+ ```
607
+ USAGE
608
+ $ csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
609
+ [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
610
+
611
+ FLAGS
612
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
613
+ selected)
614
+ -a, --alias=<value> Alias(name) for the management token
615
+ -c, --config=<value> Path to the config file
616
+ -e, --environments=<value>... Destination environments
617
+ -y, --yes Agree to process the command with the current configuration
618
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
619
+ bulkpublish API will be used to publish the entries
620
+ --content-types=<value>... The Contenttypes from which entries will be published
621
+ --retry-failed=<value> Retry publishing failed entries from the logfile
622
+ --source-env=<value> Source Environment
623
+
624
+ DESCRIPTION
625
+ Publish non-localized fields for the given content types, from a particular source environment to the specified
626
+ environments
627
+ The non-localized field changes command is used to publish non-localized field changes from the given content types to
628
+ the specified environments
629
+
630
+ Note: Content types, Environments and Source Environment are required to execute this command successfully.
631
+ But, if retryFailed flag is set, then only a logfile is required
632
+
633
+ ALIASES
634
+ $ csdx cm:bulk-publish:nonlocalized-field-changes
635
+
636
+ EXAMPLES
637
+ General Usage
638
+
639
+ $ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV]
640
+
641
+
642
+
643
+ Using --config or -c flag
644
+
645
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
646
+
647
+ $ csdx cm:entries:publish-non-localized-fields --config [PATH TO CONFIG FILE]
648
+
649
+ $ csdx cm:entries:publish-non-localized-fields -c [PATH TO CONFIG FILE]
650
+
651
+
652
+
653
+ Using --retry-failed flag
654
+
655
+ $ csdx cm:entries:publish-non-localized-fields --retry-failed [LOG FILE NAME]
656
+
657
+
658
+
659
+ Using --branch flag
660
+
661
+ $ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV] --branch [BRANCH NAME]
662
+ ```
663
+
664
+ ## `csdx cm:bulk-publish:revert`
665
+
666
+ Revert publish operations by using a log file
667
+
668
+ ```
669
+ USAGE
670
+ $ csdx cm:bulk-publish:revert [--retry-failed <value>] [--log-file <value>]
671
+
672
+ FLAGS
673
+ --log-file=<value> logfile to be used to revert
674
+ --retry-failed=<value> retry publishing failed entries from the logfile
675
+
676
+ DESCRIPTION
677
+ Revert publish operations by using a log file
678
+ The revert command is used to revert all publish operations performed using bulk-publish script.
679
+ A log file name is required to execute revert command
680
+
681
+
682
+ ALIASES
683
+ $ csdx cm:bulk-publish:revert
684
+
685
+ EXAMPLES
686
+ Using --log-file
687
+
688
+ cm:bulk-publish:revert --log-file [LOG FILE NAME]
689
+
690
+
691
+
692
+ Using --retry-failed
693
+
694
+ cm:bulk-publish:revert --retry-failed [LOG FILE NAME]
695
+ ```
696
+
697
+ ## `csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`
698
+
699
+ Unpublish entries or assets of given content types from the specified environment
700
+
701
+ ```
702
+ USAGE
703
+ $ csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
704
+ [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>]
705
+ [--only-assets] [--only-entries]
706
+
707
+ FLAGS
708
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content from (default is main branch)
709
+ -a, --alias=<value> Alias(name) for the management token
710
+ -c, --config=<value> Path to the config file
711
+ -e, --environment=<value> Source Environment
712
+ -l, --locale=<value> Locale filter
713
+ -y, --yes Agree to process the command with the current configuration
714
+ --bulk-unpublish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
715
+ bulkpublish API will be used to unpublish the entries and assets
716
+ --content-type=<value> Content type filter
717
+ --delivery-token=<value> Delivery token for source environment
718
+ --retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
719
+
720
+ DESCRIPTION
721
+ Unpublish entries or assets of given content types from the specified environment
722
+ The unpublish command is used to unpublish entries or assets from given environment
723
+
724
+ Environment (Source Environment) and Locale are required to execute the command successfully
725
+ But, if retry-failed flag is set, then only a logfile is required
726
+
727
+ A content type can be specified for unpublishing entries, but if no content-type(s) is/are specified and --only-assets
728
+ is not used,
729
+ then all entries from all content types will be unpublished from the source environment
115
730
 
116
- ## `csdx cm:assets:unpublish`
731
+ Note: --only-assets can be used to unpublish only assets and --only-entries can be used to unpublish only entries.
732
+ (--only-assets and --only-entries cannot be used together at the same time)
117
733
 
118
- Unpublish assets from given environment
119
734
 
120
- ```
121
- USAGE
122
- $ csdx cm:assets:unpublish
735
+ ALIASES
736
+ $ csdx cm:bulk-publish:unpublish
123
737
 
124
- OPTIONS
125
- -a, --alias=alias Alias(name) for the management token
126
- -c, --config=config Path to the config file
127
- -e, --environment=environment Source Environment
128
- -y, --yes Agree to process the command with the current configuration
738
+ EXAMPLES
739
+ General Usage
129
740
 
130
- --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
131
- is selected)
741
+ $ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] ----delivery-token [DELIVERY TOKEN]
132
742
 
133
- --bulk-unpublish=bulk-unpublish [default: true] By default this flag is set as true. It indicates that contentstack's
134
- bulkpublish API will be used to unpublish the assets
135
743
 
136
- --delivery-token=delivery-token Delivery Token for source environment
137
744
 
138
- --locale=locale Locale filter
745
+ Using --config or -c flag
139
746
 
140
- --retry-failed=retry-failed Retry unpublishing failed assets from the logfile
747
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
141
748
 
142
- DESCRIPTION
143
- The unpublish command is used for unpublishing assets from the given environment
749
+ $ csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
144
750
 
145
- Note: Environment (Source Environment) and Locale are required to execute the command successfully
146
- But, if retry-failed flag is set, then only a logfile is required
751
+ $ csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
147
752
 
148
- EXAMPLES
149
- General Usage
150
- csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN
151
- ALIAS] --delivery-token [DELIVERY TOKEN]
152
753
 
153
- Using --config or -c flag
154
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
155
- csdx cm:assets:unpublish --config [PATH TO CONFIG FILE]
156
- csdx cm:assets:unpublish -c [PATH TO CONFIG FILE]
157
754
 
158
755
  Using --retry-failed flag
159
- csdx cm:assets:unpublish --retry-failed [LOG FILE NAME]
160
756
 
161
- Using --branch flag
162
- csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN
163
- ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
164
- ```
165
-
166
- _See code: [src/commands/cm/assets/unpublish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/unpublish.js)_
757
+ $ csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
167
758
 
168
- ## `csdx cm:bulk-publish`
169
759
 
170
- Bulk Publish script for managing entries and assets
171
760
 
172
- ```
173
- USAGE
174
- $ csdx cm:bulk-publish
175
- ```
761
+ No content type
176
762
 
177
- _See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
763
+ $ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all content types and assets from the source environment)
178
764
 
179
- ## `csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>] [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]`
180
765
 
181
- Publish entries and assets from one environment to other environments
182
766
 
183
- ```
184
- USAGE
185
- $ csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type
186
- <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>]
187
- [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]
767
+ Using --only-assets
188
768
 
189
- OPTIONS
190
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
191
- is selected)
769
+ $ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-assets (Will unpublish only assets from the source environment)
192
770
 
193
- -a, --alias=alias Alias(name) for the management token
194
771
 
195
- -c, --config=config Path to the config file
196
772
 
197
- -y, --yes Agree to process the command with the current configuration
773
+ Using --only-entries
198
774
 
199
- --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
200
- bulkpublish API will be used to publish the entries
775
+ $ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-entries (Will unpublish only entries, all entries, from the source environment)
201
776
 
202
- --content-type=content-type The Contenttypes from which entries will be published
777
+ $ csdx cm:stacks:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --only-entries (Will unpublish only entries, (from CONTENT TYPE) from the source environment)
203
778
 
204
- --delivery-token=delivery-token Delivery token for source environment
205
779
 
206
- --environments=environments Destination Environments
207
780
 
208
- --locales=locales Source locale
781
+ Using --branch flag
209
782
 
210
- --onlyAssets Unpublish only assets
783
+ $ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
784
+ ```
211
785
 
212
- --onlyEntries Unpublish only entries
786
+ ## `csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
213
787
 
214
- --retry-failed=retry-failed (optional) Retry publishing failed entries from the logfile (this flag overrides all
215
- other flags)
788
+ Publish unpublished entries from the source environment, to other environments and locales
216
789
 
217
- --source-env=source-env Source Env
790
+ ```
791
+ USAGE
792
+ $ csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
793
+ [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch
794
+ <value>]
795
+
796
+ FLAGS
797
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
798
+ selected)
799
+ -a, --alias=<value> Alias(name) for the management token
800
+ -b, --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
801
+ bulkpublish API will be used to publish the entries
802
+ -c, --config=<value> Path to the config file
803
+ -e, --environments=<value>... Destination environments
804
+ -y, --yes Agree to process the command with the current configuration
805
+ --content-types=<value>... The Contenttypes from which entries will be published
806
+ --locales=<value> Source locale
807
+ --retry-failed=<value> Retry publishing failed entries from the logfile
808
+ --source-env=<value> Source Env
218
809
 
219
810
  DESCRIPTION
220
- The cross-publish command is used to publish entries and assets from one environment to other environments
811
+ Publish unpublished entries from the source environment, to other environments and locales
812
+ The publish-only-unpublished command is used to publish unpublished entries from the source environment, to other
813
+ environments and locales
221
814
 
222
- Note: Content Type, Environment, Destination Environment(s) and Locale are required to execute the command
223
- successfully
224
- But, if retryFailed flag is set, then only a logfile is required
815
+ Note: Content type(s), Source Environment, Destination Environment(s) and Source Locale are required to execute the
816
+ command successfully
817
+ But, if retry-failed flag is set, then only a logfile is required
818
+
819
+
820
+ ALIASES
821
+ $ csdx cm:bulk-publish:unpublished-entries
225
822
 
226
823
  EXAMPLES
227
824
  General Usage
228
- csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION
229
- ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
230
-
231
- Using --config or -c flag
232
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
233
- csdx cm:bulk-publish:cross-publish --config [PATH TO CONFIG FILE]
234
- csdx cm:bulk-publish:cross-publish -c [PATH TO CONFIG FILE]
235
825
 
236
- Using --retry-failed flag
237
- csdx cm:bulk-publish:cross-publish --retry-failed [LOG FILE NAME]
238
- csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
826
+ $ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] -source-env [SOURCE ENV]
239
827
 
240
- Using --branch flag
241
- csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION
242
- ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
243
- ```
244
828
 
245
- _See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
246
829
 
247
- ## `csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
830
+ Using --config or -c flag
248
831
 
249
- Publish entries from multiple contenttypes to multiple environments and locales
832
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
250
833
 
251
- ```
252
- USAGE
253
- $ csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types]
254
- [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token
255
- <value>] [--source-env <value>]
834
+ $ csdx cm:entries:publish-only-unpublished --config [PATH TO CONFIG FILE]
256
835
 
257
- OPTIONS
258
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
259
- is selected)
836
+ $ csdx cm:entries:publish-only-unpublished -c [PATH TO CONFIG FILE]
260
837
 
261
- -a, --alias=alias Alias(name) for the management token
262
838
 
263
- -c, --config=config Path for the external config file (A new config file can be generated at the current
264
- working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
265
839
 
266
- -e, --environments=environments Environments where entries will be published
840
+ Using --retry-failed
267
841
 
268
- -l, --locales=locales Locales where entries will be published
842
+ $ csdx cm:entries:publish-only-unpublished --retry-failed [LOG FILE NAME]
269
843
 
270
- -y, --yes Agree to process the command with the current configuration
271
844
 
272
- --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
273
- bulkpublish API will be used to publish the entries
274
845
 
275
- --content-types=content-types The Contenttypes from which entries need to be published
846
+ Using --branch
276
847
 
277
- --delivery-token=delivery-token Delivery token for source environment
848
+ $ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME] -source-env [SOURCE ENV]
849
+ ```
278
850
 
279
- --publish-all-content-types (optional) Publish all contenttypes (cannot be set when contentTypes flag is set)
851
+ ## `csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
280
852
 
281
- --retry-failed=retry-failed (optional) Retry failed entries from the logfile (overrides all other flags) This
282
- flag is used to retry publishing entries that failed to publish in a previous
283
- attempt. A log file for the previous session will be required for processing the
284
- failed entries
853
+ Publish entries from multiple contenttypes to multiple environments and locales
285
854
 
286
- --source-env=source-env Source environment
855
+ ```
856
+ USAGE
857
+ $ csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
858
+ [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch
859
+ <value>] [--delivery-token <value>] [--source-env <value>]
860
+
861
+ FLAGS
862
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
863
+ selected)
864
+ -a, --alias=<value> Alias(name) for the management token
865
+ -c, --config=<value> Path for the external config file (A new config file can be generated at the current
866
+ working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
867
+ -e, --environments=<value>... Environments where entries will be published
868
+ -l, --locales=<value>... Locales where entries will be published
869
+ -y, --yes Agree to process the command with the current configuration
870
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
871
+ bulkpublish API will be used to publish the entries
872
+ --content-types=<value>... The Contenttypes from which entries need to be published
873
+ --delivery-token=<value> Delivery token for source environment
874
+ --publish-all-content-types (optional) Publish all contenttypes (cannot be set when contentTypes flag is set)
875
+ --retry-failed=<value> (optional) Retry failed entries from the logfile (overrides all other flags) This flag
876
+ is used to retry publishing entries that failed to publish in a previous attempt. A log
877
+ file for the previous session will be required for processing the failed entries
878
+ --source-env=<value> Source environment
287
879
 
288
880
  DESCRIPTION
881
+ Publish entries from multiple contenttypes to multiple environments and locales
289
882
  The publish command is used to publish entries from the specified content types, to the
290
- specified environments and locales
883
+ specified environments and locales
291
884
 
292
885
  Note: Content Types, Environments and Locales are required to execute the command successfully
293
886
  But, if retry-failed flag is set, then only a logfile is required
294
887
 
888
+
295
889
  ALIASES
296
890
  $ csdx cm:bulk-publish:entries
297
891
 
298
892
  EXAMPLES
299
893
  General Usage
300
- csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales
301
- [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
894
+
895
+ $ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
896
+
897
+
302
898
 
303
899
  Using --config or -c flag
900
+
304
901
  Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
305
- csdx cm:entries:publish --config [PATH TO CONFIG FILE]
306
- csdx cm:entries:publish -c [PATH TO CONFIG FILE]
307
902
 
308
- Using --retry-failed
309
- csdx cm:entries:publish --retry-failed [LOG FILE NAME]
310
- csdx cm:entries:publish -r [LOG FILE NAME]
903
+ $ csdx cm:entries:publish --config [PATH TO CONFIG FILE]
311
904
 
312
- Using --branch
313
- csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales
314
- [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
905
+ $ csdx cm:entries:publish -c [PATH TO CONFIG FILE]
315
906
 
316
- Using --source-env
317
- csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales
318
- [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
319
- ```
320
907
 
321
- _See code: [src/commands/cm/entries/publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js)_
322
908
 
323
- ## `csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
909
+ Using --retry-failed
910
+
911
+ $ csdx cm:entries:publish --retry-failed [LOG FILE NAME]
912
+
913
+ $ csdx cm:entries:publish -r [LOG FILE NAME]
324
914
 
325
- Publish edited entries from a specified content type to the given locales and environments
326
915
 
327
- ```
328
- USAGE
329
- $ csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env
330
- <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
331
916
 
332
- OPTIONS
333
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
334
- is selected)
917
+ Using --branch
335
918
 
336
- -a, --alias=alias Alias(name) for the management token
919
+ $ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
337
920
 
338
- -c, --config=config Path to the config file
339
921
 
340
- -e, --environments=environments Destination environments
341
922
 
342
- -l, --locales=locales Locales where edited entries will be published
923
+ Using --source-env
343
924
 
344
- -y, --yes Agree to process the command with the current configuration
925
+ $ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
926
+ ```
345
927
 
346
- --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
347
- bulkpublish API will be used to publish the entries
928
+ _See code: [src/commands/cm/entries/publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js)_
348
929
 
349
- --content-types=content-types The Contenttypes which will be checked for edited entries
930
+ ## `csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
350
931
 
351
- --retry-failed=retry-failed Retry publishing failed entries from the logfile (optional, overrides all other
352
- flags)
932
+ Publish edited entries from a specified content type to the given locales and environments
353
933
 
354
- --source-env=source-env Environment from which edited entries will be published
934
+ ```
935
+ USAGE
936
+ $ csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env
937
+ <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
938
+
939
+ FLAGS
940
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
941
+ selected)
942
+ -a, --alias=<value> Alias(name) for the management token
943
+ -c, --config=<value> Path to the config file
944
+ -e, --environments=<value>... Destination environments
945
+ -l, --locales=<value>... Locales where edited entries will be published
946
+ -y, --yes Agree to process the command with the current configuration
947
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
948
+ bulkpublish API will be used to publish the entries
949
+ --content-types=<value>... The Contenttypes which will be checked for edited entries
950
+ --retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
951
+ --source-env=<value> Environment from which edited entries will be published
355
952
 
356
953
  DESCRIPTION
954
+ Publish edited entries from a specified content type to the given locales and environments
357
955
  The publish-modified command is used to publish entries from the specified content types, to the
358
956
  specified environments and locales
359
957
 
360
- Note: Content type(s), Source Environment, Destination Environment(s) and Locale(s) are required to execute the
958
+ Note: Content type(s), Source Environment, Destination Environment(s) and Locale(s) are required to execute the
361
959
  command successfully
362
960
  But, if retry-failed flag is set, then only a logfile is required
363
961
 
962
+
364
963
  ALIASES
365
964
  $ csdx cm:bulk-publish:entry-edits
366
965
 
367
966
  EXAMPLES
368
967
  General Usage
369
- csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e
370
- [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
968
+
969
+ $ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
970
+
971
+
371
972
 
372
973
  Using --config or -c flag
974
+
373
975
  Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
374
- csdx cm:entries:publish-modified --config [PATH TO CONFIG FILE]
375
- csdx cm:entries:publish-modified -c [PATH TO CONFIG FILE]
376
976
 
377
- Using --retry-failed
378
- csdx cm:entries:publish-modified --retry-failed [LOG FILE NAME]
379
- csdx cm:entries:publish-modified -r [LOG FILE NAME]
977
+ $ csdx cm:entries:publish-modified --config [PATH TO CONFIG FILE]
380
978
 
381
- Using --branch
382
- csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e
383
- [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
384
- ```
979
+ $ csdx cm:entries:publish-modified -c [PATH TO CONFIG FILE]
385
980
 
386
- _See code: [src/commands/cm/entries/publish-modified.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-modified.js)_
387
981
 
388
- ## `csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
389
982
 
390
- Publish non-localized fields for the given content types, from a particular source environment to the specified environments
983
+ Using --retry-failed
391
984
 
392
- ```
393
- USAGE
394
- $ csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
395
- [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
985
+ $ csdx cm:entries:publish-modified --retry-failed [LOG FILE NAME]
396
986
 
397
- OPTIONS
398
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
399
- is selected)
987
+ $ csdx cm:entries:publish-modified -r [LOG FILE NAME]
400
988
 
401
- -a, --alias=alias Alias(name) for the management token
402
989
 
403
- -c, --config=config Path to the config file
404
990
 
405
- -e, --environments=environments Destination environments
991
+ Using --branch
406
992
 
407
- -y, --yes Agree to process the command with the current configuration
993
+ $ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
994
+ ```
408
995
 
409
- --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
410
- bulkpublish API will be used to publish the entries
996
+ _See code: [src/commands/cm/entries/publish-modified.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-modified.js)_
411
997
 
412
- --content-types=content-types The Contenttypes from which entries will be published
998
+ ## `csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
413
999
 
414
- --retry-failed=retry-failed Retry publishing failed entries from the logfile
1000
+ Publish non-localized fields for the given content types, from a particular source environment to the specified environments
415
1001
 
416
- --source-env=source-env Source Environment
1002
+ ```
1003
+ USAGE
1004
+ $ csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
1005
+ [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
1006
+
1007
+ FLAGS
1008
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
1009
+ selected)
1010
+ -a, --alias=<value> Alias(name) for the management token
1011
+ -c, --config=<value> Path to the config file
1012
+ -e, --environments=<value>... Destination environments
1013
+ -y, --yes Agree to process the command with the current configuration
1014
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
1015
+ bulkpublish API will be used to publish the entries
1016
+ --content-types=<value>... The Contenttypes from which entries will be published
1017
+ --retry-failed=<value> Retry publishing failed entries from the logfile
1018
+ --source-env=<value> Source Environment
417
1019
 
418
1020
  DESCRIPTION
1021
+ Publish non-localized fields for the given content types, from a particular source environment to the specified
1022
+ environments
419
1023
  The non-localized field changes command is used to publish non-localized field changes from the given content types to
420
- the specified environments
1024
+ the specified environments
421
1025
 
422
1026
  Note: Content types, Environments and Source Environment are required to execute this command successfully.
423
1027
  But, if retryFailed flag is set, then only a logfile is required
@@ -427,83 +1031,97 @@ ALIASES
427
1031
 
428
1032
  EXAMPLES
429
1033
  General Usage
430
- csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments
431
- [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV]
432
1034
 
433
- Using --config or -c flag
434
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
435
- csdx cm:entries:publish-non-localized-fields --config [PATH TO CONFIG FILE]
436
- csdx cm:entries:publish-non-localized-fields -c [PATH TO CONFIG FILE]
1035
+ $ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV]
437
1036
 
438
- Using --retry-failed flag
439
- csdx cm:entries:publish-non-localized-fields --retry-failed [LOG FILE NAME]
440
1037
 
441
- Using --branch flag
442
- csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments
443
- [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV] --branch [BRANCH NAME]
444
- ```
445
1038
 
446
- _See code: [src/commands/cm/entries/publish-non-localized-fields.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-non-localized-fields.js)_
1039
+ Using --config or -c flag
447
1040
 
448
- ## `csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
1041
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
449
1042
 
450
- Publish unpublished entries from the source environment, to other environments and locales
1043
+ $ csdx cm:entries:publish-non-localized-fields --config [PATH TO CONFIG FILE]
1044
+
1045
+ $ csdx cm:entries:publish-non-localized-fields -c [PATH TO CONFIG FILE]
451
1046
 
452
- ```
453
- USAGE
454
- $ csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
455
- [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]
456
1047
 
457
- OPTIONS
458
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
459
- is selected)
460
1048
 
461
- -a, --alias=alias Alias(name) for the management token
1049
+ Using --retry-failed flag
1050
+
1051
+ $ csdx cm:entries:publish-non-localized-fields --retry-failed [LOG FILE NAME]
462
1052
 
463
- -b, --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
464
- bulkpublish API will be used to publish the entries
465
1053
 
466
- -c, --config=config Path to the config file
467
1054
 
468
- -e, --environments=environments Destination environments
1055
+ Using --branch flag
469
1056
 
470
- -y, --yes Agree to process the command with the current configuration
1057
+ $ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV] --branch [BRANCH NAME]
1058
+ ```
471
1059
 
472
- --content-types=content-types The Contenttypes from which entries will be published
1060
+ _See code: [src/commands/cm/entries/publish-non-localized-fields.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-non-localized-fields.js)_
473
1061
 
474
- --locales=locales Source locale
1062
+ ## `csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
475
1063
 
476
- --retry-failed=retry-failed Retry publishing failed entries from the logfile
1064
+ Publish unpublished entries from the source environment, to other environments and locales
477
1065
 
478
- --source-env=source-env Source Env
1066
+ ```
1067
+ USAGE
1068
+ $ csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>]
1069
+ [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch
1070
+ <value>]
1071
+
1072
+ FLAGS
1073
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
1074
+ selected)
1075
+ -a, --alias=<value> Alias(name) for the management token
1076
+ -b, --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
1077
+ bulkpublish API will be used to publish the entries
1078
+ -c, --config=<value> Path to the config file
1079
+ -e, --environments=<value>... Destination environments
1080
+ -y, --yes Agree to process the command with the current configuration
1081
+ --content-types=<value>... The Contenttypes from which entries will be published
1082
+ --locales=<value> Source locale
1083
+ --retry-failed=<value> Retry publishing failed entries from the logfile
1084
+ --source-env=<value> Source Env
479
1085
 
480
1086
  DESCRIPTION
481
- The publish-only-unpublished command is used to publish unpublished entries from the source environment, to other
1087
+ Publish unpublished entries from the source environment, to other environments and locales
1088
+ The publish-only-unpublished command is used to publish unpublished entries from the source environment, to other
482
1089
  environments and locales
483
1090
 
484
- Note: Content type(s), Source Environment, Destination Environment(s) and Source Locale are required to execute the
1091
+ Note: Content type(s), Source Environment, Destination Environment(s) and Source Locale are required to execute the
485
1092
  command successfully
486
1093
  But, if retry-failed flag is set, then only a logfile is required
487
1094
 
1095
+
488
1096
  ALIASES
489
1097
  $ csdx cm:bulk-publish:unpublished-entries
490
1098
 
491
1099
  EXAMPLES
492
1100
  General Usage
493
- csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a
494
- [MANAGEMENT TOKEN ALIAS] -source-env [SOURCE ENV]
1101
+
1102
+ $ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] -source-env [SOURCE ENV]
1103
+
1104
+
495
1105
 
496
1106
  Using --config or -c flag
1107
+
497
1108
  Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
498
- csdx cm:entries:publish-only-unpublished --config [PATH TO CONFIG FILE]
499
- csdx cm:entries:publish-only-unpublished -c [PATH TO CONFIG FILE]
1109
+
1110
+ $ csdx cm:entries:publish-only-unpublished --config [PATH TO CONFIG FILE]
1111
+
1112
+ $ csdx cm:entries:publish-only-unpublished -c [PATH TO CONFIG FILE]
1113
+
1114
+
500
1115
 
501
1116
  Using --retry-failed
502
- csdx cm:entries:publish-only-unpublished --retry-failed [LOG FILE NAME]
1117
+
1118
+ $ csdx cm:entries:publish-only-unpublished --retry-failed [LOG FILE NAME]
1119
+
1120
+
503
1121
 
504
1122
  Using --branch
505
- csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a
506
- [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME] -source-env [SOURCE ENV]
1123
+
1124
+ $ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME] -source-env [SOURCE ENV]
507
1125
  ```
508
1126
 
509
1127
  _See code: [src/commands/cm/entries/publish-only-unpublished.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-only-unpublished.js)_
@@ -514,29 +1132,25 @@ Unpublish entries from the given environment
514
1132
 
515
1133
  ```
516
1134
  USAGE
517
- $ csdx cm:entries:unpublish
518
-
519
- OPTIONS
520
- -a, --alias=alias Alias(name) for the management token
521
- -c, --config=config Path to the config file
522
- -e, --environment=environment Source Environment
523
- -y, --yes Agree to process the command with the current configuration
524
-
525
- --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
526
- is selected)
527
-
528
- --bulk-unpublish=bulk-unpublish [default: true] This flag is set to true by default. It indicates that contentstack's
529
- bulkpublish API will be used to unpublish the entries
530
-
531
- --content-type=content-type Content type filter
532
-
533
- --delivery-token=delivery-token Delivery token for source environment
534
-
535
- --locale=locale Locale filter
536
-
537
- --retry-failed=retry-failed Retry publishing failed entries from the logfile
1135
+ $ csdx cm:entries:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
1136
+ [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>]
1137
+
1138
+ FLAGS
1139
+ -a, --alias=<value> Alias(name) for the management token
1140
+ -c, --config=<value> Path to the config file
1141
+ -e, --environment=<value> Source Environment
1142
+ -y, --yes Agree to process the command with the current configuration
1143
+ --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
1144
+ selected)
1145
+ --bulk-unpublish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
1146
+ bulkpublish API will be used to unpublish the entries
1147
+ --content-type=<value> Content type filter
1148
+ --delivery-token=<value> Delivery token for source environment
1149
+ --locale=<value> Locale filter
1150
+ --retry-failed=<value> Retry publishing failed entries from the logfile
538
1151
 
539
1152
  DESCRIPTION
1153
+ Unpublish entries from the given environment
540
1154
  The unpublish command is used to unpublish entries from the given environment
541
1155
 
542
1156
  Note: Environment (Source Environment) and Locale are required to execute the command successfully
@@ -544,86 +1158,98 @@ DESCRIPTION
544
1158
 
545
1159
  EXAMPLES
546
1160
  General Usage
547
- csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
548
- --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
549
1161
 
550
- Using --config or -c flag
551
- Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
552
- csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
553
- csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
1162
+ $ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN]
554
1163
 
555
- Using --retry-failed flag
556
- csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
557
1164
 
558
1165
 
559
- Using --branch flag
560
- csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
561
- --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
562
- ```
1166
+ Using --config or -c flag
563
1167
 
564
- _See code: [src/commands/cm/entries/unpublish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/unpublish.js)_
1168
+ Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
565
1169
 
566
- ## `csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`
1170
+ $ csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
1171
+
1172
+ $ csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
567
1173
 
568
- Add fields from updated content types to their respective entries
569
1174
 
570
- ```
571
- USAGE
572
- $ csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types
573
- <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]
574
1175
 
575
- OPTIONS
576
- -B, --branch=branch [default: main] Specify the branch to fetch the content (by default the main branch
577
- is selected)
1176
+ Using --retry-failed flag
1177
+
1178
+ $ csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
578
1179
 
579
- -a, --alias=alias Alias(name) for the management token
580
1180
 
581
- -c, --config=config Path to the config file
582
1181
 
583
- -e, --environments=environments Environments where entries will be published
584
1182
 
585
- -l, --locales=locales Locales where entries will be published
586
1183
 
587
- -t, --contentTypes=contentTypes The Contenttypes from which entries will be published
1184
+ Using --branch flag
588
1185
 
589
- -y, --yes Agree to process the command with the current configuration
1186
+ $ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
1187
+ ```
590
1188
 
591
- --bulk-publish=bulk-publish [default: true] This flag is set to true by default. It indicates that contentstack's
592
- bulkpublish API will be used to publish the entries
1189
+ _See code: [src/commands/cm/entries/unpublish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/unpublish.js)_
593
1190
 
594
- --content-types=content-types The Contenttypes from which entries will be published
1191
+ ## `csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`
595
1192
 
596
- --force Update and publish all entries even if no fields have been added
1193
+ Add fields from updated content types to their respective entries
597
1194
 
598
- --retry-failed=retry-failed Retry publishing failed entries from the logfile (optional, overrides all other
599
- flags)
1195
+ ```
1196
+ USAGE
1197
+ $ csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types
1198
+ <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]
1199
+
1200
+ FLAGS
1201
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
1202
+ selected)
1203
+ -a, --alias=<value> Alias(name) for the management token
1204
+ -c, --config=<value> Path to the config file
1205
+ -e, --environments=<value>... Environments where entries will be published
1206
+ -l, --locales=<value>... Locales where entries will be published
1207
+ -t, --contentTypes=<value>... The Contenttypes from which entries will be published
1208
+ -y, --yes Agree to process the command with the current configuration
1209
+ --bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
1210
+ bulkpublish API will be used to publish the entries
1211
+ --content-types=<value>... The Contenttypes from which entries will be published
1212
+ --force Update and publish all entries even if no fields have been added
1213
+ --retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
600
1214
 
601
1215
  DESCRIPTION
602
- The update-and-publish command is used to update existing entries with the updated schema of the respective content
1216
+ Add fields from updated content types to their respective entries
1217
+ The update-and-publish command is used to update existing entries with the updated schema of the respective content
603
1218
  type
604
1219
 
605
1220
  Note: Content types, Environments and Locales are required to execute the command successfully
606
1221
  But, if retry-failed flag is set, then only a logfile is required
607
1222
 
1223
+
608
1224
  ALIASES
609
1225
  $ csdx cm:bulk-publish:add-fields
610
1226
 
611
1227
  EXAMPLES
612
1228
  General Usage
613
- csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
614
- 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
1229
+
1230
+ $ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
1231
+
1232
+
615
1233
 
616
1234
  Using --config or -c flag
1235
+
617
1236
  Generate a config file at the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
618
- csdx cm:entries:update-and-publish --config [PATH TO CONFIG FILE]
619
- csdx cm:entries:update-and-publish -c [PATH TO CONFIG FILE]
1237
+
1238
+ $ csdx cm:entries:update-and-publish --config [PATH TO CONFIG FILE]
1239
+
1240
+ $ csdx cm:entries:update-and-publish -c [PATH TO CONFIG FILE]
1241
+
1242
+
620
1243
 
621
1244
  Using --retry-failed
622
- csdx cm:entries:update-and-publish --retry-failed [LOG FILE NAME]
1245
+
1246
+ $ csdx cm:entries:update-and-publish --retry-failed [LOG FILE NAME]
1247
+
1248
+
623
1249
 
624
1250
  Using --branch
625
- csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
626
- 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
1251
+
1252
+ $ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
627
1253
  ```
628
1254
 
629
1255
  _See code: [src/commands/cm/entries/update-and-publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/update-and-publish.js)_
@@ -637,6 +1263,7 @@ USAGE
637
1263
  $ csdx cm:stacks:publish
638
1264
 
639
1265
  DESCRIPTION
1266
+ Publish entries and assets to multiple environments and locales
640
1267
  The publish command is used to publish entries and assets, to the specified environments and locales.
641
1268
 
642
1269
  Note: Content types, Environments and Locales are required to execute the publish entries command successfully.
@@ -645,20 +1272,30 @@ DESCRIPTION
645
1272
 
646
1273
  EXAMPLES
647
1274
  General Usage
648
- csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
649
- ALIAS]
1275
+
1276
+ $ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS]
1277
+
1278
+
650
1279
 
651
1280
  Using --config or -c flag
1281
+
652
1282
  Generate a config file in the current working directory using `csdx cm:stacks:publish-configure -a [ALIAS]`
653
- csdx cm:stacks:publish --config [PATH TO CONFIG FILE]
654
- csdx cm:stacks:publish -c [PATH TO CONFIG FILE]
1283
+
1284
+ $ csdx cm:stacks:publish --config [PATH TO CONFIG FILE]
1285
+
1286
+ $ csdx cm:stacks:publish -c [PATH TO CONFIG FILE]
1287
+
1288
+
655
1289
 
656
1290
  Using --retry-failed flag
657
- csdx cm:stacks:publish --retry-failed [LOG FILE NAME]
1291
+
1292
+ $ csdx cm:stacks:publish --retry-failed [LOG FILE NAME]
1293
+
1294
+
658
1295
 
659
1296
  Using --branch flag
660
- csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN
661
- ALIAS] --branch [BRANCH NAME]
1297
+
1298
+ $ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
662
1299
  ```
663
1300
 
664
1301
  _See code: [src/commands/cm/stacks/publish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish.js)_
@@ -669,20 +1306,26 @@ Clear the log folder
669
1306
 
670
1307
  ```
671
1308
  USAGE
672
- $ csdx cm:stacks:publish-clear-logs
1309
+ $ csdx cm:stacks:publish-clear-logs [--log-files-count] [-y]
673
1310
 
674
- OPTIONS
1311
+ FLAGS
675
1312
  -y, --yes Delete all files without asking for confirmation
676
1313
  --log-files-count List number of log files
677
1314
 
1315
+ DESCRIPTION
1316
+ Clear the log folder
1317
+
678
1318
  ALIASES
679
1319
  $ csdx cm:bulk-publish:clear
680
1320
 
681
1321
  EXAMPLES
682
- csdx cm:stacks:publish-clear-logs
683
- csdx cm:stacks:publish-clear-logs --log-files-count
684
- csdx cm:stacks:publish-clear-logs --yes
685
- csdx cm:stacks:publish-clear-logs -y
1322
+ $ csdx cm:stacks:publish-clear-logs
1323
+
1324
+ $ csdx cm:stacks:publish-clear-logs --log-files-count
1325
+
1326
+ $ csdx cm:stacks:publish-clear-logs --yes
1327
+
1328
+ $ csdx cm:stacks:publish-clear-logs -y
686
1329
  ```
687
1330
 
688
1331
  _See code: [src/commands/cm/stacks/publish-clear-logs.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-clear-logs.js)_
@@ -693,18 +1336,23 @@ The configure command is used to generate a configuration file for publish scrip
693
1336
 
694
1337
  ```
695
1338
  USAGE
696
- $ csdx cm:stacks:publish-configure
1339
+ $ csdx cm:stacks:publish-configure [-a <value>]
697
1340
 
698
- OPTIONS
699
- -a, --alias=alias Alias(name) for the management token
1341
+ FLAGS
1342
+ -a, --alias=<value> Alias(name) for the management token
1343
+
1344
+ DESCRIPTION
1345
+ The configure command is used to generate a configuration file for publish scripts.
700
1346
 
701
1347
  ALIASES
702
1348
  $ csdx cm:bulk-publish:configure
703
1349
 
704
1350
  EXAMPLES
705
- csdx cm:stacks:publish-configure
706
- csdx cm:stacks:publish-configure -a <management_token_alias>
707
- csdx cm:stacks:publish-configure --alias <management_token_alias>
1351
+ $ csdx cm:stacks:publish-configure
1352
+
1353
+ $ csdx cm:stacks:publish-configure -a <management_token_alias>
1354
+
1355
+ $ csdx cm:stacks:publish-configure --alias <management_token_alias>
708
1356
  ```
709
1357
 
710
1358
  _See code: [src/commands/cm/stacks/publish-configure.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-configure.js)_
@@ -715,24 +1363,30 @@ Revert publish operations by using a log file
715
1363
 
716
1364
  ```
717
1365
  USAGE
718
- $ csdx cm:stacks:publish-revert
1366
+ $ csdx cm:stacks:publish-revert [--retry-failed <value>] [--log-file <value>]
719
1367
 
720
- OPTIONS
721
- --log-file=log-file logfile to be used to revert
722
- --retry-failed=retry-failed retry publishing failed entries from the logfile
1368
+ FLAGS
1369
+ --log-file=<value> logfile to be used to revert
1370
+ --retry-failed=<value> retry publishing failed entries from the logfile
723
1371
 
724
1372
  DESCRIPTION
1373
+ Revert publish operations by using a log file
725
1374
  The revert command is used to revert all publish operations performed using bulk-publish script.
726
1375
  A log file name is required to execute revert command
727
1376
 
1377
+
728
1378
  ALIASES
729
1379
  $ csdx cm:bulk-publish:revert
730
1380
 
731
1381
  EXAMPLES
732
1382
  Using --log-file
1383
+
733
1384
  cm:bulk-publish:revert --log-file [LOG FILE NAME]
734
1385
 
1386
+
1387
+
735
1388
  Using --retry-failed
1389
+
736
1390
  cm:bulk-publish:revert --retry-failed [LOG FILE NAME]
737
1391
  ```
738
1392
 
@@ -744,74 +1398,87 @@ Unpublish entries or assets of given content types from the specified environmen
744
1398
 
745
1399
  ```
746
1400
  USAGE
747
- $ csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
748
- [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>]
749
- [--only-assets] [--only-entries]
750
-
751
- OPTIONS
752
- -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
753
- -a, --alias=alias Alias(name) for the management token
754
- -c, --config=config Path to the config file
755
- -e, --environment=environment Source Environment
756
- -l, --locale=locale Locale filter
757
- -y, --yes Agree to process the command with the current configuration
758
-
759
- --bulk-unpublish=bulk-unpublish [default: true] This flag is set to true by default. It indicates that contentstack's
760
- bulkpublish API will be used to unpublish the entries and assets
761
-
762
- --content-type=content-type Content type filter
763
-
764
- --delivery-token=delivery-token Delivery token for source environment
765
-
766
- --retry-failed=retry-failed Retry publishing failed entries from the logfile (optional, overrides all other
767
- flags)
1401
+ $ csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
1402
+ [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>]
1403
+ [--only-assets] [--only-entries]
1404
+
1405
+ FLAGS
1406
+ -B, --branch=<value> [default: main] Specify the branch to fetch the content from (default is main branch)
1407
+ -a, --alias=<value> Alias(name) for the management token
1408
+ -c, --config=<value> Path to the config file
1409
+ -e, --environment=<value> Source Environment
1410
+ -l, --locale=<value> Locale filter
1411
+ -y, --yes Agree to process the command with the current configuration
1412
+ --bulk-unpublish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
1413
+ bulkpublish API will be used to unpublish the entries and assets
1414
+ --content-type=<value> Content type filter
1415
+ --delivery-token=<value> Delivery token for source environment
1416
+ --retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
768
1417
 
769
1418
  DESCRIPTION
1419
+ Unpublish entries or assets of given content types from the specified environment
770
1420
  The unpublish command is used to unpublish entries or assets from given environment
771
1421
 
772
1422
  Environment (Source Environment) and Locale are required to execute the command successfully
773
1423
  But, if retry-failed flag is set, then only a logfile is required
774
1424
 
775
1425
  A content type can be specified for unpublishing entries, but if no content-type(s) is/are specified and --only-assets
776
- is not used,
1426
+ is not used,
777
1427
  then all entries from all content types will be unpublished from the source environment
778
1428
 
779
1429
  Note: --only-assets can be used to unpublish only assets and --only-entries can be used to unpublish only entries.
780
1430
  (--only-assets and --only-entries cannot be used together at the same time)
781
1431
 
1432
+
782
1433
  ALIASES
783
1434
  $ csdx cm:bulk-publish:unpublish
784
1435
 
785
1436
  EXAMPLES
786
1437
  General Usage
787
- csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
788
- --alias [MANAGEMENT TOKEN ALIAS] ----delivery-token [DELIVERY TOKEN]
1438
+
1439
+ $ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] ----delivery-token [DELIVERY TOKEN]
1440
+
1441
+
789
1442
 
790
1443
  Using --config or -c flag
1444
+
791
1445
  Generate a config file at the current working directory using `csdx cm:bulk-publish:configure --alias [ALIAS]`
792
- csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
793
- csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
1446
+
1447
+ $ csdx cm:stacks:unpublish --config [PATH TO CONFIG FILE]
1448
+
1449
+ $ csdx cm:stacks:unpublish -c [PATH TO CONFIG FILE]
1450
+
1451
+
794
1452
 
795
1453
  Using --retry-failed flag
796
- csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
1454
+
1455
+ $ csdx cm:stacks:unpublish --retry-failed [LOG FILE NAME]
1456
+
1457
+
797
1458
 
798
1459
  No content type
799
- csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all content
800
- types and assets from the source environment)
1460
+
1461
+ $ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all content types and assets from the source environment)
1462
+
1463
+
801
1464
 
802
1465
  Using --only-assets
803
- csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-assets (Will unpublish only assets from
804
- the source environment)
1466
+
1467
+ $ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-assets (Will unpublish only assets from the source environment)
1468
+
1469
+
805
1470
 
806
1471
  Using --only-entries
807
- csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-entries (Will unpublish only entries, all
808
- entries, from the source environment)
809
- csdx cm:stacks:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --only-entries
810
- (Will unpublish only entries, (from CONTENT TYPE) from the source environment)
1472
+
1473
+ $ csdx cm:stacks:unpublish --environment [SOURCE ENV] --locale [LOCALE] --only-entries (Will unpublish only entries, all entries, from the source environment)
1474
+
1475
+ $ csdx cm:stacks:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --only-entries (Will unpublish only entries, (from CONTENT TYPE) from the source environment)
1476
+
1477
+
811
1478
 
812
1479
  Using --branch flag
813
- csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE]
814
- --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
1480
+
1481
+ $ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
815
1482
  ```
816
1483
 
817
1484
  _See code: [src/commands/cm/stacks/unpublish.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/unpublish.js)_