@contentstack/cli-cm-bulk-publish 0.1.1-beta.3 → 0.1.1-beta.4

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
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (-v|--version|version)
21
- @contentstack/cli-cm-bulk-publish/0.1.1-beta.3 darwin-x64 node-v14.16.0
21
+ @contentstack/cli-cm-bulk-publish/0.1.1-beta.4 linux-x64 node-v12.18.4
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -51,7 +51,7 @@ USAGE
51
51
  $ csdx cm:bulk-publish
52
52
  ```
53
53
 
54
- _See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
54
+ _See code: [src/commands/cm/bulk-publish/index.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
55
55
 
56
56
  ## `csdx cm:bulk-publish:add-fields`
57
57
 
@@ -62,6 +62,7 @@ USAGE
62
62
  $ csdx cm:bulk-publish:add-fields
63
63
 
64
64
  OPTIONS
65
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
65
66
  -a, --alias=alias Alias for the management token to be used
66
67
 
67
68
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
@@ -100,9 +101,13 @@ EXAMPLES
100
101
  Using --retryFailed or -r flag
101
102
  csdx cm:bulk-publish:add-fields --retryFailed [LOG FILE NAME]
102
103
  csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]
104
+
105
+ Using --branch or -B flag
106
+ csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
107
+ [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
103
108
  ```
104
109
 
105
- _See code: [src/commands/cm/bulk-publish/add-fields.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/add-fields.js)_
110
+ _See code: [src/commands/cm/bulk-publish/add-fields.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/add-fields.js)_
106
111
 
107
112
  ## `csdx cm:bulk-publish:assets`
108
113
 
@@ -113,6 +118,7 @@ USAGE
113
118
  $ csdx cm:bulk-publish:assets
114
119
 
115
120
  OPTIONS
121
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
116
122
  -a, --alias=alias Alias for the management token to be used
117
123
 
118
124
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
@@ -149,9 +155,13 @@ EXAMPLES
149
155
  Using --retryFailed or -r flag
150
156
  csdx cm:bulk-publish:assets --retryFailed [LOG FILE NAME]
151
157
  csdx cm:bulk-publish:assets -r [LOG FILE NAME]
158
+
159
+ Using --branch or -B flag
160
+ csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH
161
+ NAME]
152
162
  ```
153
163
 
154
- _See code: [src/commands/cm/bulk-publish/assets.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/assets.js)_
164
+ _See code: [src/commands/cm/bulk-publish/assets.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/assets.js)_
155
165
 
156
166
  ## `csdx cm:bulk-publish:clear`
157
167
 
@@ -166,7 +176,7 @@ OPTIONS
166
176
  -y, --yes Delete all files without asking for confirmation
167
177
  ```
168
178
 
169
- _See code: [src/commands/cm/bulk-publish/clear.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/clear.js)_
179
+ _See code: [src/commands/cm/bulk-publish/clear.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/clear.js)_
170
180
 
171
181
  ## `csdx cm:bulk-publish:configure`
172
182
 
@@ -191,7 +201,7 @@ DESCRIPTION
191
201
  EXAMPLE : cm:bulk-publish:configure -a [MANAGEMENT TOKEN Alias]
192
202
  ```
193
203
 
194
- _See code: [src/commands/cm/bulk-publish/configure.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/configure.js)_
204
+ _See code: [src/commands/cm/bulk-publish/configure.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/configure.js)_
195
205
 
196
206
  ## `csdx cm:bulk-publish:cross-publish`
197
207
 
@@ -202,6 +212,9 @@ USAGE
202
212
  $ csdx cm:bulk-publish:cross-publish
203
213
 
204
214
  OPTIONS
215
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main
216
+ branch)
217
+
205
218
  -a, --alias=alias Alias for the management token to be used
206
219
 
207
220
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that
@@ -247,9 +260,13 @@ EXAMPLES
247
260
  Using --retryFailed or -r flag
248
261
  csdx cm:bulk-publish:cross-publish --retryFailed [LOG FILE NAME]
249
262
  csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
263
+
264
+ Using --branch or -B flag
265
+ csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a
266
+ [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN] -B [BRANCH NAME]
250
267
  ```
251
268
 
252
- _See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
269
+ _See code: [src/commands/cm/bulk-publish/cross-publish.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
253
270
 
254
271
  ## `csdx cm:bulk-publish:entries`
255
272
 
@@ -260,6 +277,7 @@ USAGE
260
277
  $ csdx cm:bulk-publish:entries
261
278
 
262
279
  OPTIONS
280
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
263
281
  -a, --alias=alias Alias for the management token to be used
264
282
 
265
283
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
@@ -302,9 +320,13 @@ EXAMPLES
302
320
  Using --retryFailed or -r flag
303
321
  csdx cm:bulk-publish:entries --retryFailed [LOG FILE NAME]
304
322
  csdx cm:bulk-publish:entries -r [LOG FILE NAME]
323
+
324
+ Using --branch or -B flag
325
+ csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
326
+ [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
305
327
  ```
306
328
 
307
- _See code: [src/commands/cm/bulk-publish/entries.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entries.js)_
329
+ _See code: [src/commands/cm/bulk-publish/entries.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entries.js)_
308
330
 
309
331
  ## `csdx cm:bulk-publish:entry-edits`
310
332
 
@@ -315,6 +337,7 @@ USAGE
315
337
  $ csdx cm:bulk-publish:entry-edits
316
338
 
317
339
  OPTIONS
340
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
318
341
  -a, --alias=alias Alias for the management token to be used
319
342
 
320
343
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
@@ -356,9 +379,13 @@ EXAMPLES
356
379
  Using --retryFailed or -r flag
357
380
  csdx cm:bulk-publish:entry-edits --retryFailed [LOG FILE NAME]
358
381
  csdx cm:bulk-publish:entry-edits -r [LOG FILE NAME]
382
+
383
+ Using --branch or -B flag
384
+ csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT
385
+ 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
359
386
  ```
360
387
 
361
- _See code: [src/commands/cm/bulk-publish/entry-edits.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entry-edits.js)_
388
+ _See code: [src/commands/cm/bulk-publish/entry-edits.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entry-edits.js)_
362
389
 
363
390
  ## `csdx cm:bulk-publish:nonlocalized-field-changes`
364
391
 
@@ -369,6 +396,7 @@ USAGE
369
396
  $ csdx cm:bulk-publish:nonlocalized-field-changes
370
397
 
371
398
  OPTIONS
399
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
372
400
  -a, --alias=alias Alias for the management token to be used
373
401
 
374
402
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
@@ -397,7 +425,7 @@ DESCRIPTION
397
425
  EXAMPLES
398
426
  General Usage
399
427
  csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
400
- 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
428
+ 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -s [SOURCE ENV]
401
429
 
402
430
  Using --config or -c flag
403
431
  Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
@@ -407,9 +435,13 @@ EXAMPLES
407
435
  Using --retryFailed or -r flag
408
436
  csdx cm:bulk-publish:nonlocalized-field-changes --retryFailed [LOG FILE NAME]
409
437
  csdx cm:bulk-publish:nonlocalized-field-changes -r [LOG FILE NAME]
438
+
439
+ Using --branch or -B flag
440
+ csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
441
+ 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME] -s [SOURCE ENV]
410
442
  ```
411
443
 
412
- _See code: [src/commands/cm/bulk-publish/nonlocalized-field-changes.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/nonlocalized-field-changes.js)_
444
+ _See code: [src/commands/cm/bulk-publish/nonlocalized-field-changes.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/nonlocalized-field-changes.js)_
413
445
 
414
446
  ## `csdx cm:bulk-publish:revert`
415
447
 
@@ -437,7 +469,7 @@ EXAMPLES
437
469
  cm:bulk-publish:revert -r [LOG FILE NAME]
438
470
  ```
439
471
 
440
- _See code: [src/commands/cm/bulk-publish/revert.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/revert.js)_
472
+ _See code: [src/commands/cm/bulk-publish/revert.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/revert.js)_
441
473
 
442
474
  ## `csdx cm:bulk-publish:unpublish`
443
475
 
@@ -448,6 +480,9 @@ USAGE
448
480
  $ csdx cm:bulk-publish:unpublish
449
481
 
450
482
  OPTIONS
483
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main
484
+ branch)
485
+
451
486
  -a, --alias=alias Alias for the management token to be used
452
487
 
453
488
  -b, --bulkUnpublish=bulkUnpublish [default: true] This flag is set to true by default. It indicates that
@@ -511,9 +546,13 @@ EXAMPLES
511
546
  entries, all entries, from the source environment)
512
547
  csdx cm:bulk-publish:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries
513
548
  (Will unpublish only entries, (from CONTENT TYPE) from the source environment)
549
+
550
+ Using --branch or -B flag
551
+ csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x
552
+ [DELIVERY TOKEN] -B [BRANCH NAME]
514
553
  ```
515
554
 
516
- _See code: [src/commands/cm/bulk-publish/unpublish.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublish.js)_
555
+ _See code: [src/commands/cm/bulk-publish/unpublish.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublish.js)_
517
556
 
518
557
  ## `csdx cm:bulk-publish:unpublished-entries`
519
558
 
@@ -524,6 +563,7 @@ USAGE
524
563
  $ csdx cm:bulk-publish:unpublished-entries
525
564
 
526
565
  OPTIONS
566
+ -B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
527
567
  -a, --alias=alias Alias for the management token to be used
528
568
 
529
569
  -b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
@@ -553,7 +593,8 @@ DESCRIPTION
553
593
 
554
594
  EXAMPLES
555
595
  General Usage
556
- csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
596
+ csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
597
+ -s [SOURCE ENV]
557
598
 
558
599
  Using --config or -c flag
559
600
  Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
@@ -563,7 +604,11 @@ EXAMPLES
563
604
  Using --retryFailed or -r flag
564
605
  csdx cm:bulk-publish:unpublished-entries --retryFailed [LOG FILE NAME]
565
606
  csdx cm:bulk-publish:unpublished-entries -r [LOG FILE NAME]
607
+
608
+ Using --branch or -B flag
609
+ csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
610
+ -B [BRANCH NAME] -s [SOURCE ENV]
566
611
  ```
567
612
 
568
- _See code: [src/commands/cm/bulk-publish/unpublished-entries.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.3/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublished-entries.js)_
613
+ _See code: [src/commands/cm/bulk-publish/unpublished-entries.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.4/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublished-entries.js)_
569
614
  <!-- commandsstop -->
@@ -1 +1 @@
1
- {"version":"0.1.1-beta.3","commands":{"cm:bulk-publish:add-fields":{"id":"cm:bulk-publish:add-fields","description":"Add fields from updated content types to their respective entries\nThe add-fields command is used for updating already existing entries with the updated schema of their respective Content Type\n\nContent Types, Environments and Locales are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:add-fields --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:add-fields -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:add-fields --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile (optional, overrides all other flags)"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types from which entries need to be published"},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Environments to which entries need to be published"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false}},"args":[]},"cm:bulk-publish:assets":{"id":"cm:bulk-publish:assets","description":"Publish assets to specified environments\nThe assets command is used for publishing assets from the specified stack, to the specified environments\n\nEnvironment(s) and Locale(s) are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:assets --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:assets -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:assets --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:assets -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed assets from the logfile (optional, will override all other flags)"},"environments":{"name":"environments","type":"option","char":"e","description":"Environments to which assets need to be published"},"folderUid":{"name":"folderUid","type":"option","char":"u","description":"[default: cs_root] Folder-uid from which the assets need to be published"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which assets need to be published"}},"args":[]},"cm:bulk-publish:clear":{"id":"cm:bulk-publish:clear","description":"Clear the log folder\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"flags":{"list":{"name":"list","type":"boolean","char":"l","description":"List number of log files","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Delete all files without asking for confirmation","allowNo":false}},"args":[]},"cm:bulk-publish:configure":{"id":"cm:bulk-publish:configure","description":"Generate configuration template\nThe configure command is used for generating a configuration file for bulk-publish script.\n\nHere is a detailed description for all the available flags\n\n-----------------------------------------------------------------------------------------------------------\n--alias or -a : Management token Alias for the stack in use.\n\nEXAMPLE : cm:bulk-publish:configure --alias [MANAGEMENT TOKEN Alias]\nEXAMPLE : cm:bulk-publish:configure -a [MANAGEMENT TOKEN Alias]\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Management token alias for the stack"}},"args":[]},"cm:bulk-publish:cross-publish":{"id":"cm:bulk-publish:cross-publish","description":"Publish entries and assets from one environment to other environments\nThe cross-publish command is used for publishing entries and assets from one evironment to other environments\n\nContent Type, Environment, Destination Environment(s) and Locale are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:cross-publish --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:cross-publish -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:cross-publish --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile (optional, overrides all other flags)"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"contentType":{"name":"contentType","type":"option","char":"t","description":"Content-Type filter"},"locale":{"name":"locale","type":"option","char":"l","description":"Locale filter"},"environment":{"name":"environment","type":"option","char":"e","description":"Source Environment"},"deliveryToken":{"name":"deliveryToken","type":"option","char":"x","description":"Delivery Token for source environment"},"destEnv":{"name":"destEnv","type":"option","char":"d","description":"Destination Environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"onlyAssets":{"name":"onlyAssets","type":"boolean","description":"Unpublish only assets","allowNo":false},"onlyEntries":{"name":"onlyEntries","type":"boolean","description":"Unpublish only entries","allowNo":false}},"args":[]},"cm:bulk-publish:entries":{"id":"cm:bulk-publish:entries","description":"Publish entries from multiple content-types to multiple environments and locales\nThe entries command is used for publishing entries from the specified content types, to the\nspecified environments and locales \n\nContent Types, Environments and Locales are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:entries --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:entries -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:entries --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:entries -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry failed entries from the logfile (optional, overrides all other flags) This flag is used to retry publishing entries that failed to publish in a previous attempt. A log file for the previous session will be required for processing the failed entries"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"publishAllContentTypes":{"name":"publishAllContentTypes","type":"boolean","char":"o","description":"Publish all content-types (optional, cannot be set when contentTypes flag is set)","allowNo":false},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-types from which entries need to be published"},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Environments to which entries need to be published"},"config":{"name":"config","type":"option","char":"c","description":"Path for the external config file to be used (A new config file can be generated at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false}},"args":[]},"cm:bulk-publish:entry-edits":{"id":"cm:bulk-publish:entry-edits","description":"Publish edited entries from a specified Content Type to given locales and environments\nThe entry-edits command is used for publishing entries from the specified content types, to the\nspecified environments and locales\n\nContent Type(s), Source Environment, Destination Environment(s) and Locale(s) are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:entry-edits --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:entry-edits -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:entry-edits --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:entry-edits -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile (optional, overrides all other flags)"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"sourceEnv":{"name":"sourceEnv","type":"option","char":"s","description":"Environment from which edited entries will be published"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types which will be checked for edited entries"},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which edited entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Destination environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false}},"args":[]},"cm:bulk-publish":{"id":"cm:bulk-publish","description":"Bulk Publish script for managing entries and assets\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"flags":{},"args":[]},"cm:bulk-publish:nonlocalized-field-changes":{"id":"cm:bulk-publish:nonlocalized-field-changes","description":"Publish non-localized-fields for given Content Types, from a particular source environment to specified environments\nThe nonlocalized-field-changes command is used for publishing nonlocalized field changes from the given Content Types to\nthe specified Environments\n\nContent Types, Environments and Source Environment are required for executing this command successfully.\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:nonlocalized-field-changes --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:nonlocalized-field-changes -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:nonlocalized-field-changes --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:nonlocalized-field-changes -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"sourceEnv":{"name":"sourceEnv","type":"option","char":"s","description":"Source Environment"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types from which entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Destination environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false}},"args":[]},"cm:bulk-publish:revert":{"id":"cm:bulk-publish:revert","description":"Revert publish operations by using a log file\nThe revert command is used for reverting all publish operations performed using bulk-publish script.\nA log file name is required to execute revert command\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["Using --logFile","cm:bulk-publish:revert --logFile [LOG FILE NAME]","cm:bulk-publish:revert -l [LOG FILE NAME]","","Using --retryFailed","cm:bulk-publish:revert --retryFailed [LOG FILE NAME]","cm:bulk-publish:revert -r [LOG FILE NAME]"],"flags":{"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"retry publishing failed entries from the logfile"},"logFile":{"name":"logFile","type":"option","char":"l","description":"logfile to be used to revert"}},"args":[]},"cm:bulk-publish:unpublish":{"id":"cm:bulk-publish:unpublish","description":"Unpublish entries of given Content Types from given environment\nThe unpublish command is used for unpublishing entries from given environment\n\nEnvironment (Source Environment) and Locale are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n\nA Content Type can be specified for publishing entries, but if no content-type(s) is/are specified and --onlyAssets is not used,\nthen all entries from all content types will be unpublished from the source environment\n\n--onlyAssets can be used to unpublish only assets and --onlyEntries can be used to unpublish only entries.\n(--onlyAssets and --onlyEntries cannot be used together at the same time)\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:unpublish --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:unpublish -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:unpublish --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:unpublish -r [LOG FILE NAME]","","No content type","csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all content types and assets from the source environment)","","Using --onlyAssets","csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] --onlyAssets (Will unpublish only assets from the source environment)","","Using --onlyEntries","csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries (Will unpublish only entries, all entries, from the source environment)","csdx cm:bulk-publish:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries (Will unpublish only entries, (from CONTENT TYPE) from the source environment)"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile"},"bulkUnpublish":{"name":"bulkUnpublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"contentType":{"name":"contentType","type":"option","char":"t","description":"Content Type filter"},"locale":{"name":"locale","type":"option","char":"l","description":"Locale filter"},"environment":{"name":"environment","type":"option","char":"e","description":"Source Environment"},"deliveryToken":{"name":"deliveryToken","type":"option","char":"x","description":"Delivery Token for source environment"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"onlyAssets":{"name":"onlyAssets","type":"boolean","description":"Unpublish only assets","allowNo":false},"onlyEntries":{"name":"onlyEntries","type":"boolean","description":"Unpublish only entries","allowNo":false}},"args":[]},"cm:bulk-publish:unpublished-entries":{"id":"cm:bulk-publish:unpublished-entries","description":"Publish unpublished entries from the source environment, to other environments and locales\nThe unpublished-entries command is used for publishing unpublished entries from the source environment, to other environments and locales\n\nContent Type(s), Source Environment, Destination Environment(s) and Source Locale are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:unpublished-entries --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:unpublished-entries -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:unpublished-entries --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:unpublished-entries -r [LOG FILE NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"sourceEnv":{"name":"sourceEnv","type":"option","char":"s","description":"Source Env"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types from which entries need to be published"},"locale":{"name":"locale","type":"option","char":"l","description":"Source locale"},"environments":{"name":"environments","type":"option","char":"e","description":"Destination environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false}},"args":[]}}}
1
+ {"version":"0.1.1-beta.4","commands":{"cm:bulk-publish:add-fields":{"id":"cm:bulk-publish:add-fields","description":"Add fields from updated content types to their respective entries\nThe add-fields command is used for updating already existing entries with the updated schema of their respective Content Type\n\nContent Types, Environments and Locales are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:add-fields --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:add-fields -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:add-fields --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile (optional, overrides all other flags)"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types from which entries need to be published"},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Environments to which entries need to be published"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]},"cm:bulk-publish:assets":{"id":"cm:bulk-publish:assets","description":"Publish assets to specified environments\nThe assets command is used for publishing assets from the specified stack, to the specified environments\n\nEnvironment(s) and Locale(s) are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:assets --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:assets -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:assets --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:assets -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed assets from the logfile (optional, will override all other flags)"},"environments":{"name":"environments","type":"option","char":"e","description":"Environments to which assets need to be published"},"folderUid":{"name":"folderUid","type":"option","char":"u","description":"[default: cs_root] Folder-uid from which the assets need to be published"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which assets need to be published"},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]},"cm:bulk-publish:clear":{"id":"cm:bulk-publish:clear","description":"Clear the log folder\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"flags":{"list":{"name":"list","type":"boolean","char":"l","description":"List number of log files","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Delete all files without asking for confirmation","allowNo":false}},"args":[]},"cm:bulk-publish:configure":{"id":"cm:bulk-publish:configure","description":"Generate configuration template\nThe configure command is used for generating a configuration file for bulk-publish script.\n\nHere is a detailed description for all the available flags\n\n-----------------------------------------------------------------------------------------------------------\n--alias or -a : Management token Alias for the stack in use.\n\nEXAMPLE : cm:bulk-publish:configure --alias [MANAGEMENT TOKEN Alias]\nEXAMPLE : cm:bulk-publish:configure -a [MANAGEMENT TOKEN Alias]\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Management token alias for the stack"}},"args":[]},"cm:bulk-publish:cross-publish":{"id":"cm:bulk-publish:cross-publish","description":"Publish entries and assets from one environment to other environments\nThe cross-publish command is used for publishing entries and assets from one evironment to other environments\n\nContent Type, Environment, Destination Environment(s) and Locale are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:cross-publish --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:cross-publish -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:cross-publish --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN] -B [BRANCH NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile (optional, overrides all other flags)"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"contentType":{"name":"contentType","type":"option","char":"t","description":"Content-Type filter"},"locale":{"name":"locale","type":"option","char":"l","description":"Locale filter"},"environment":{"name":"environment","type":"option","char":"e","description":"Source Environment"},"deliveryToken":{"name":"deliveryToken","type":"option","char":"x","description":"Delivery Token for source environment"},"destEnv":{"name":"destEnv","type":"option","char":"d","description":"Destination Environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"},"onlyAssets":{"name":"onlyAssets","type":"boolean","description":"Unpublish only assets","allowNo":false},"onlyEntries":{"name":"onlyEntries","type":"boolean","description":"Unpublish only entries","allowNo":false}},"args":[]},"cm:bulk-publish:entries":{"id":"cm:bulk-publish:entries","description":"Publish entries from multiple content-types to multiple environments and locales\nThe entries command is used for publishing entries from the specified content types, to the\nspecified environments and locales \n\nContent Types, Environments and Locales are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:entries --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:entries -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:entries --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:entries -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry failed entries from the logfile (optional, overrides all other flags) This flag is used to retry publishing entries that failed to publish in a previous attempt. A log file for the previous session will be required for processing the failed entries"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"publishAllContentTypes":{"name":"publishAllContentTypes","type":"boolean","char":"o","description":"Publish all content-types (optional, cannot be set when contentTypes flag is set)","allowNo":false},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-types from which entries need to be published"},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Environments to which entries need to be published"},"config":{"name":"config","type":"option","char":"c","description":"Path for the external config file to be used (A new config file can be generated at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]},"cm:bulk-publish:entry-edits":{"id":"cm:bulk-publish:entry-edits","description":"Publish edited entries from a specified Content Type to given locales and environments\nThe entry-edits command is used for publishing entries from the specified content types, to the\nspecified environments and locales\n\nContent Type(s), Source Environment, Destination Environment(s) and Locale(s) are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:entry-edits --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:entry-edits -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:entry-edits --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:entry-edits -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile (optional, overrides all other flags)"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"sourceEnv":{"name":"sourceEnv","type":"option","char":"s","description":"Environment from which edited entries will be published"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types which will be checked for edited entries"},"locales":{"name":"locales","type":"option","char":"l","description":"Locales to which edited entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Destination environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]},"cm:bulk-publish":{"id":"cm:bulk-publish","description":"Bulk Publish script for managing entries and assets\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"flags":{},"args":[]},"cm:bulk-publish:nonlocalized-field-changes":{"id":"cm:bulk-publish:nonlocalized-field-changes","description":"Publish non-localized-fields for given Content Types, from a particular source environment to specified environments\nThe nonlocalized-field-changes command is used for publishing nonlocalized field changes from the given Content Types to\nthe specified Environments\n\nContent Types, Environments and Source Environment are required for executing this command successfully.\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -s [SOURCE ENV]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:nonlocalized-field-changes --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:nonlocalized-field-changes -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:nonlocalized-field-changes --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:nonlocalized-field-changes -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME] -s [SOURCE ENV]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"sourceEnv":{"name":"sourceEnv","type":"option","char":"s","description":"Source Environment"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types from which entries need to be published"},"environments":{"name":"environments","type":"option","char":"e","description":"Destination environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]},"cm:bulk-publish:revert":{"id":"cm:bulk-publish:revert","description":"Revert publish operations by using a log file\nThe revert command is used for reverting all publish operations performed using bulk-publish script.\nA log file name is required to execute revert command\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["Using --logFile","cm:bulk-publish:revert --logFile [LOG FILE NAME]","cm:bulk-publish:revert -l [LOG FILE NAME]","","Using --retryFailed","cm:bulk-publish:revert --retryFailed [LOG FILE NAME]","cm:bulk-publish:revert -r [LOG FILE NAME]"],"flags":{"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"retry publishing failed entries from the logfile"},"logFile":{"name":"logFile","type":"option","char":"l","description":"logfile to be used to revert"}},"args":[]},"cm:bulk-publish:unpublish":{"id":"cm:bulk-publish:unpublish","description":"Unpublish entries of given Content Types from given environment\nThe unpublish command is used for unpublishing entries from given environment\n\nEnvironment (Source Environment) and Locale are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n\nA Content Type can be specified for publishing entries, but if no content-type(s) is/are specified and --onlyAssets is not used,\nthen all entries from all content types will be unpublished from the source environment\n\n--onlyAssets can be used to unpublish only assets and --onlyEntries can be used to unpublish only entries.\n(--onlyAssets and --onlyEntries cannot be used together at the same time)\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:unpublish --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:unpublish -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:unpublish --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:unpublish -r [LOG FILE NAME]","","No content type","csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] (Will unpublish all entries from all content types and assets from the source environment)","","Using --onlyAssets","csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] --onlyAssets (Will unpublish only assets from the source environment)","","Using --onlyEntries","csdx cm:bulk-publish:unpublish --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries (Will unpublish only entries, all entries, from the source environment)","csdx cm:bulk-publish:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries (Will unpublish only entries, (from CONTENT TYPE) from the source environment)","","Using --branch or -B flag","csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN] -B [BRANCH NAME]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile"},"bulkUnpublish":{"name":"bulkUnpublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"contentType":{"name":"contentType","type":"option","char":"t","description":"Content Type filter"},"locale":{"name":"locale","type":"option","char":"l","description":"Locale filter"},"environment":{"name":"environment","type":"option","char":"e","description":"Source Environment"},"deliveryToken":{"name":"deliveryToken","type":"option","char":"x","description":"Delivery Token for source environment"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"onlyAssets":{"name":"onlyAssets","type":"boolean","description":"Unpublish only assets","allowNo":false},"onlyEntries":{"name":"onlyEntries","type":"boolean","description":"Unpublish only entries","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]},"cm:bulk-publish:unpublished-entries":{"id":"cm:bulk-publish:unpublished-entries","description":"Publish unpublished entries from the source environment, to other environments and locales\nThe unpublished-entries command is used for publishing unpublished entries from the source environment, to other environments and locales\n\nContent Type(s), Source Environment, Destination Environment(s) and Source Locale are required for executing the command successfully\nBut, if retryFailed flag is set, then only a logfile is required\n","pluginName":"@contentstack/cli-cm-bulk-publish","pluginType":"core","aliases":[],"examples":["General Usage","csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS] -s [SOURCE ENV]","","Using --config or -c flag","Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`","csdx cm:bulk-publish:unpublished-entries --config [PATH TO CONFIG FILE]","csdx cm:bulk-publish:unpublished-entries -c [PATH TO CONFIG FILE]","","Using --retryFailed or -r flag","csdx cm:bulk-publish:unpublished-entries --retryFailed [LOG FILE NAME]","csdx cm:bulk-publish:unpublished-entries -r [LOG FILE NAME]","","Using --branch or -B flag","csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME] -s [SOURCE ENV]"],"flags":{"alias":{"name":"alias","type":"option","char":"a","description":"Alias for the management token to be used"},"retryFailed":{"name":"retryFailed","type":"option","char":"r","description":"Retry publishing failed entries from the logfile"},"bulkPublish":{"name":"bulkPublish","type":"option","char":"b","description":"This flag is set to true by default. It indicates that contentstack's bulkpublish API will be used for publishing the entries","default":"true"},"sourceEnv":{"name":"sourceEnv","type":"option","char":"s","description":"Source Env"},"contentTypes":{"name":"contentTypes","type":"option","char":"t","description":"The Content-Types from which entries need to be published"},"locale":{"name":"locale","type":"option","char":"l","description":"Source locale"},"environments":{"name":"environments","type":"option","char":"e","description":"Destination environments"},"config":{"name":"config","type":"option","char":"c","description":"Path to config file to be used"},"yes":{"name":"yes","type":"boolean","char":"y","description":"Agree to process the command with the current configuration","allowNo":false},"branch":{"name":"branch","type":"option","char":"B","description":"Specify the branch to fetch the content from (default is main branch)","default":"main"}},"args":[]}}}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-bulk-publish",
3
3
  "description": "Contentstack CLI plugin for bulk publish actions",
4
- "version": "0.1.1-beta.3",
4
+ "version": "0.1.1-beta.4",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
8
  "@contentstack/cli-command": "0.1.1-beta.1",
9
- "@contentstack/management": "1.1.2",
9
+ "@contentstack/management": "github:contentstack/contentstack-management-javascript#65e8588",
10
10
  "@oclif/command": "^1.7.0",
11
11
  "@oclif/config": "^1.16.0",
12
12
  "bluebird": "^3.7.2",
@@ -3,30 +3,31 @@ const {start} = require('../../../producer/add-fields')
3
3
  const store = require('../../../util/store.js')
4
4
  const {cli} = require('cli-ux')
5
5
  const configKey = 'addFields'
6
- const { prettyPrint, formatError } = require('../../../util')
7
- const { getStack } = require('../../../util/client.js')
6
+ const {prettyPrint, formatError} = require('../../../util')
7
+ const {getStack} = require('../../../util/client.js')
8
8
  let config
9
9
 
10
10
  class AddFieldsCommand extends Command {
11
11
  async run() {
12
- const {flags} = this.parse(AddFieldsCommand)
12
+ const addFieldsFlags = this.parse(AddFieldsCommand).flags
13
13
  let updatedFlags
14
14
  try {
15
- updatedFlags = (flags.config) ? store.updateMissing(configKey, flags) : flags
16
- } catch(error) {
15
+ updatedFlags = (addFieldsFlags.config) ? store.updateMissing(configKey, addFieldsFlags) : addFieldsFlags
16
+ } catch (error) {
17
17
  this.error(error.message, {exit: 2})
18
18
  }
19
19
  if (this.validate(updatedFlags)) {
20
20
  let stack
21
21
  if (!updatedFlags.retryFailed) {
22
- if(!updatedFlags.alias) {
22
+ if (!updatedFlags.alias) {
23
23
  updatedFlags.alias = await cli.prompt('Please enter the management token alias to be used')
24
24
  }
25
25
  updatedFlags.bulkPublish = (updatedFlags.bulkPublish === 'false') ? false : true
26
26
  await this.config.runHook('validateManagementTokenAlias', {alias: updatedFlags.alias})
27
- config = {
27
+ config = {
28
28
  alias: updatedFlags.alias,
29
- host: this.config.userConfig.getRegion().cma
29
+ host: this.config.userConfig.getRegion().cma,
30
+ branch: addFieldsFlags.branch,
30
31
  }
31
32
  stack = getStack(config)
32
33
  }
@@ -72,9 +73,9 @@ class AddFieldsCommand extends Command {
72
73
  }
73
74
  }
74
75
 
75
- async confirmFlags(flags) {
76
- prettyPrint(flags)
77
- if(flags.yes) {
76
+ async confirmFlags(data) {
77
+ prettyPrint(data)
78
+ if (data.yes) {
78
79
  return true
79
80
  }
80
81
  const confirmation = await cli.confirm('Do you want to continue with this configuration ? [yes or no]')
@@ -97,7 +98,8 @@ AddFieldsCommand.flags = {
97
98
  locales: flags.string({char: 'l', description: 'Locales to which entries need to be published', multiple: true}),
98
99
  environments: flags.string({char: 'e', description: 'Environments to which entries need to be published', multiple: true}),
99
100
  config: flags.string({char: 'c', description: 'Path to config file to be used'}),
100
- yes: flags.boolean({char: 'y', description: 'Agree to process the command with the current configuration' }),
101
+ yes: flags.boolean({char: 'y', description: 'Agree to process the command with the current configuration'}),
102
+ branch: flags.string({char: 'B', default: 'main', description: 'Specify the branch to fetch the content from (default is main branch)'}),
101
103
  }
102
104
 
103
105
  AddFieldsCommand.examples = [
@@ -111,7 +113,10 @@ AddFieldsCommand.examples = [
111
113
  '',
112
114
  'Using --retryFailed or -r flag',
113
115
  'csdx cm:bulk-publish:add-fields --retryFailed [LOG FILE NAME]',
114
- 'csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]'
116
+ 'csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]',
117
+ '',
118
+ 'Using --branch or -B flag',
119
+ 'csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]',
115
120
  ]
116
121
 
117
122
  module.exports = AddFieldsCommand
@@ -9,10 +9,10 @@ let config
9
9
 
10
10
  class AssetsCommand extends Command {
11
11
  async run() {
12
- const {flags} = this.parse(AssetsCommand)
12
+ const assetsFlags = this.parse(AssetsCommand).flags
13
13
  let updatedFlags
14
14
  try {
15
- updatedFlags = (flags.config) ? store.updateMissing(configKey, flags) : flags
15
+ updatedFlags = (assetsFlags.config) ? store.updateMissing(configKey, assetsFlags) : assetsFlags
16
16
  } catch(error) {
17
17
  this.error(error.message, {exit: 2})
18
18
  }
@@ -28,9 +28,10 @@ class AssetsCommand extends Command {
28
28
  updatedFlags.folderUid = 'cs_root'
29
29
  }
30
30
  await this.config.runHook('validateManagementTokenAlias', {alias: updatedFlags.alias})
31
- config = {
31
+ config = {
32
32
  alias: updatedFlags.alias,
33
- host: this.config.userConfig.getRegion().cma
33
+ host: this.config.userConfig.getRegion().cma,
34
+ branch: assetsFlags.branch,
34
35
  }
35
36
  stack = getStack(config)
36
37
  }
@@ -72,9 +73,9 @@ class AssetsCommand extends Command {
72
73
  }
73
74
  }
74
75
 
75
- async confirmFlags(flags) {
76
- prettyPrint(flags)
77
- if(flags.yes) {
76
+ async confirmFlags(data) {
77
+ prettyPrint(data)
78
+ if(data.yes) {
78
79
  return true
79
80
  }
80
81
  const confirmation = await cli.confirm('Do you want to continue with this configuration ? [yes or no]')
@@ -96,8 +97,9 @@ AssetsCommand.flags = {
96
97
  folderUid: flags.string({char: 'u', description: '[default: cs_root] Folder-uid from which the assets need to be published'}),
97
98
  bulkPublish: flags.string({char: 'b', description: 'This flag is set to true by default. It indicates that contentstack\'s bulkpublish API will be used for publishing the entries', default: 'true'}),
98
99
  config: flags.string({char: 'c', description: 'Path to config file to be used'}),
99
- yes: flags.boolean({char: 'y', description: 'Agree to process the command with the current configuration' }),
100
- locales: flags.string({char: 'l', description: 'Locales to which assets need to be published', multiple: true }),
100
+ yes: flags.boolean({char: 'y', description: 'Agree to process the command with the current configuration'}),
101
+ locales: flags.string({char: 'l', description: 'Locales to which assets need to be published', multiple: true}),
102
+ branch: flags.string({char: 'B', default: 'main', description: 'Specify the branch to fetch the content from (default is main branch)'}),
101
103
  }
102
104
 
103
105
  AssetsCommand.examples = [
@@ -111,7 +113,10 @@ AssetsCommand.examples = [
111
113
  '',
112
114
  'Using --retryFailed or -r flag',
113
115
  'csdx cm:bulk-publish:assets --retryFailed [LOG FILE NAME]',
114
- 'csdx cm:bulk-publish:assets -r [LOG FILE NAME]'
116
+ 'csdx cm:bulk-publish:assets -r [LOG FILE NAME]',
117
+ '',
118
+ 'Using --branch or -B flag',
119
+ 'csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]',
115
120
  ]
116
121
 
117
122
  module.exports = AssetsCommand
@@ -5,11 +5,11 @@ const {getLogsDirPath} = require('../../../util/logger.js')
5
5
 
6
6
  class ClearCommand extends Command {
7
7
  async run() {
8
- const {flags} = this.parse(ClearCommand)
8
+ const clearFlags = this.parse(ClearCommand).flags
9
9
  let dirPath = getLogsDirPath()
10
- if (flags.list) {
10
+ if (clearFlags.list) {
11
11
  this.listFiles(dirPath)
12
- } else if (flags.yes) {
12
+ } else if (clearFlags.yes) {
13
13
  this.rmDir(dirPath, false)
14
14
  } else {
15
15
  const confirmation = await cli.prompt('Proceed to delete all log files (y/n)?')
@@ -21,8 +21,9 @@ class ClearCommand extends Command {
21
21
 
22
22
  rmDir(dirPath, removeSelf) {
23
23
  if (fs.existsSync(dirPath)) {
24
- if (removeSelf === undefined)
24
+ if (removeSelf === undefined) {
25
25
  removeSelf = true;
26
+ }
26
27
  try { var files = fs.readdirSync(dirPath); }
27
28
  catch(e) { return; }
28
29
  if (files.length > 0)
@@ -33,13 +34,14 @@ class ClearCommand extends Command {
33
34
  else
34
35
  rmDir(filePath);
35
36
  }
36
- if (removeSelf)
37
+ if (removeSelf) {
37
38
  fs.rmdirSync(dirPath);
39
+ }
38
40
  this.log('Log files have been cleared')
39
41
  } else {
40
42
  this.error(`The log directory doesn't exist.`)
41
43
  }
42
- };
44
+ }
43
45
 
44
46
  listFiles(dirPath) {
45
47
  if (fs.existsSync(dirPath)) {
@@ -2,21 +2,19 @@ const {Command, flags} = require('@oclif/command')
2
2
  const {cli} = require('cli-ux')
3
3
  const fs = require('fs')
4
4
  const path = require('path')
5
- const defaults = require('../../../config/defaults.json')
6
- const store = require('../../../util/store.js')
7
5
  let config = require('../../../config/index.js')
8
6
 
9
7
  class ConfigureCommand extends Command {
10
8
 
11
9
  async run() {
12
- const {flags} = this.parse(ConfigureCommand)
10
+ const configureFlags = this.parse(ConfigureCommand).flags
13
11
 
14
- if (!flags.alias) {
15
- flags.alias = await cli.prompt('Please enter the management token alias to be used')
12
+ if (!configureFlags.alias) {
13
+ configureFlags.alias = await cli.prompt('Please enter the management token alias to be used')
16
14
  }
17
15
 
18
- await this.config.runHook('validateManagementTokenAlias', {alias: flags.alias})
19
- this.setConfig(flags)
16
+ await this.config.runHook('validateManagementTokenAlias', {alias: configureFlags.alias})
17
+ this.setConfig(configureFlags)
20
18
  this.log('The configuration has been saved successfully.')
21
19
  }
22
20