@contentstack/cli 0.1.1-beta.21 → 0.1.1-beta.24
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 +120 -36
- package/oclif.manifest.json +1 -1
- package/package.json +17 -15
- package/src/util/analytics.js +1 -2
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (-v|--version|version)
|
|
21
|
-
@contentstack/cli/0.1.1-beta.
|
|
21
|
+
@contentstack/cli/0.1.1-beta.24 linux-x64 node-v12.22.7
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -52,6 +52,7 @@ USAGE
|
|
|
52
52
|
* [`csdx cm:export-to-csv`](#csdx-cmexport-to-csv)
|
|
53
53
|
* [`csdx cm:import`](#csdx-cmimport)
|
|
54
54
|
* [`csdx cm:migrate-rte`](#csdx-cmmigrate-rte)
|
|
55
|
+
* [`csdx cm:migration`](#csdx-cmmigration)
|
|
55
56
|
* [`csdx cm:seed`](#csdx-cmseed)
|
|
56
57
|
* [`csdx cm:stack-clone`](#csdx-cmstack-clone)
|
|
57
58
|
* [`csdx config:get:region`](#csdx-configgetregion)
|
|
@@ -82,7 +83,7 @@ ALIASES
|
|
|
82
83
|
$ csdx login
|
|
83
84
|
```
|
|
84
85
|
|
|
85
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
86
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.2/packages/auth/src/commands/auth/login.js)_
|
|
86
87
|
|
|
87
88
|
## `csdx auth:logout`
|
|
88
89
|
|
|
@@ -101,7 +102,7 @@ ALIASES
|
|
|
101
102
|
$ csdx logout
|
|
102
103
|
```
|
|
103
104
|
|
|
104
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
105
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.2/packages/auth/src/commands/auth/logout.js)_
|
|
105
106
|
|
|
106
107
|
## `csdx auth:tokens`
|
|
107
108
|
|
|
@@ -128,7 +129,7 @@ ALIASES
|
|
|
128
129
|
$ csdx tokens
|
|
129
130
|
```
|
|
130
131
|
|
|
131
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
132
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.2/packages/auth/src/commands/auth/tokens/index.js)_
|
|
132
133
|
|
|
133
134
|
## `csdx auth:tokens:add`
|
|
134
135
|
|
|
@@ -159,7 +160,7 @@ ALIASES
|
|
|
159
160
|
$ csdx tokens:add
|
|
160
161
|
```
|
|
161
162
|
|
|
162
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
163
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.2/packages/auth/src/commands/auth/tokens/add.js)_
|
|
163
164
|
|
|
164
165
|
## `csdx auth:tokens:remove`
|
|
165
166
|
|
|
@@ -181,7 +182,7 @@ ALIASES
|
|
|
181
182
|
$ csdx tokens:remove
|
|
182
183
|
```
|
|
183
184
|
|
|
184
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
185
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.2/packages/auth/src/commands/auth/tokens/remove.js)_
|
|
185
186
|
|
|
186
187
|
## `csdx auth:whoami`
|
|
187
188
|
|
|
@@ -198,7 +199,7 @@ ALIASES
|
|
|
198
199
|
$ csdx whoami
|
|
199
200
|
```
|
|
200
201
|
|
|
201
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
202
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v0.1.1-beta.2/packages/auth/src/commands/auth/whoami.js)_
|
|
202
203
|
|
|
203
204
|
## `csdx cm:bootstrap`
|
|
204
205
|
|
|
@@ -226,7 +227,7 @@ EXAMPLES
|
|
|
226
227
|
$ csdx cm:bootstrap -t <github access token>
|
|
227
228
|
```
|
|
228
229
|
|
|
229
|
-
_See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/v1.0.
|
|
230
|
+
_See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/v1.0.4/src/commands/cm/bootstrap.ts)_
|
|
230
231
|
|
|
231
232
|
## `csdx cm:bulk-publish`
|
|
232
233
|
|
|
@@ -240,7 +241,7 @@ USAGE
|
|
|
240
241
|
$ csdx cm:bulk-publish
|
|
241
242
|
```
|
|
242
243
|
|
|
243
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
244
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
|
|
244
245
|
|
|
245
246
|
## `csdx cm:bulk-publish:add-fields`
|
|
246
247
|
|
|
@@ -258,6 +259,7 @@ USAGE
|
|
|
258
259
|
$ csdx cm:bulk-publish:add-fields
|
|
259
260
|
|
|
260
261
|
OPTIONS
|
|
262
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
261
263
|
-a, --alias=alias Alias for the management token to be used
|
|
262
264
|
|
|
263
265
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -296,9 +298,13 @@ EXAMPLES
|
|
|
296
298
|
Using --retryFailed or -r flag
|
|
297
299
|
csdx cm:bulk-publish:add-fields --retryFailed [LOG FILE NAME]
|
|
298
300
|
csdx cm:bulk-publish:add-fields -r [LOG FILE NAME]
|
|
301
|
+
|
|
302
|
+
Using --branch or -B flag
|
|
303
|
+
csdx cm:bulk-publish:add-fields -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
|
|
304
|
+
[LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
|
|
299
305
|
```
|
|
300
306
|
|
|
301
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
307
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/add-fields.js)_
|
|
302
308
|
|
|
303
309
|
## `csdx cm:bulk-publish:assets`
|
|
304
310
|
|
|
@@ -316,6 +322,7 @@ USAGE
|
|
|
316
322
|
$ csdx cm:bulk-publish:assets
|
|
317
323
|
|
|
318
324
|
OPTIONS
|
|
325
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
319
326
|
-a, --alias=alias Alias for the management token to be used
|
|
320
327
|
|
|
321
328
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -352,9 +359,13 @@ EXAMPLES
|
|
|
352
359
|
Using --retryFailed or -r flag
|
|
353
360
|
csdx cm:bulk-publish:assets --retryFailed [LOG FILE NAME]
|
|
354
361
|
csdx cm:bulk-publish:assets -r [LOG FILE NAME]
|
|
362
|
+
|
|
363
|
+
Using --branch or -B flag
|
|
364
|
+
csdx cm:bulk-publish:assets -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH
|
|
365
|
+
NAME]
|
|
355
366
|
```
|
|
356
367
|
|
|
357
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
368
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/assets.js)_
|
|
358
369
|
|
|
359
370
|
## `csdx cm:bulk-publish:clear`
|
|
360
371
|
|
|
@@ -372,7 +383,7 @@ OPTIONS
|
|
|
372
383
|
-y, --yes Delete all files without asking for confirmation
|
|
373
384
|
```
|
|
374
385
|
|
|
375
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
386
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/clear.js)_
|
|
376
387
|
|
|
377
388
|
## `csdx cm:bulk-publish:configure`
|
|
378
389
|
|
|
@@ -409,7 +420,7 @@ DESCRIPTION
|
|
|
409
420
|
EXAMPLE : cm:bulk-publish:configure -a [MANAGEMENT TOKEN Alias]
|
|
410
421
|
```
|
|
411
422
|
|
|
412
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
423
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/configure.js)_
|
|
413
424
|
|
|
414
425
|
## `csdx cm:bulk-publish:cross-publish`
|
|
415
426
|
|
|
@@ -427,6 +438,9 @@ USAGE
|
|
|
427
438
|
$ csdx cm:bulk-publish:cross-publish
|
|
428
439
|
|
|
429
440
|
OPTIONS
|
|
441
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main
|
|
442
|
+
branch)
|
|
443
|
+
|
|
430
444
|
-a, --alias=alias Alias for the management token to be used
|
|
431
445
|
|
|
432
446
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that
|
|
@@ -472,9 +486,13 @@ EXAMPLES
|
|
|
472
486
|
Using --retryFailed or -r flag
|
|
473
487
|
csdx cm:bulk-publish:cross-publish --retryFailed [LOG FILE NAME]
|
|
474
488
|
csdx cm:bulk-publish:cross-publish -r [LOG FILE NAME]
|
|
489
|
+
|
|
490
|
+
Using --branch or -B flag
|
|
491
|
+
csdx cm:bulk-publish:cross-publish -t [CONTENT TYPE] -e [SOURCE ENV] -d [DESTINATION ENVIRONMENT] -l [LOCALE] -a
|
|
492
|
+
[MANAGEMENT TOKEN ALIAS] -x [DELIVERY TOKEN] -B [BRANCH NAME]
|
|
475
493
|
```
|
|
476
494
|
|
|
477
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
495
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
|
|
478
496
|
|
|
479
497
|
## `csdx cm:bulk-publish:entries`
|
|
480
498
|
|
|
@@ -493,6 +511,7 @@ USAGE
|
|
|
493
511
|
$ csdx cm:bulk-publish:entries
|
|
494
512
|
|
|
495
513
|
OPTIONS
|
|
514
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
496
515
|
-a, --alias=alias Alias for the management token to be used
|
|
497
516
|
|
|
498
517
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -535,9 +554,13 @@ EXAMPLES
|
|
|
535
554
|
Using --retryFailed or -r flag
|
|
536
555
|
csdx cm:bulk-publish:entries --retryFailed [LOG FILE NAME]
|
|
537
556
|
csdx cm:bulk-publish:entries -r [LOG FILE NAME]
|
|
557
|
+
|
|
558
|
+
Using --branch or -B flag
|
|
559
|
+
csdx cm:bulk-publish:entries -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] -l [LOCALE 1]
|
|
560
|
+
[LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
|
|
538
561
|
```
|
|
539
562
|
|
|
540
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
563
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entries.js)_
|
|
541
564
|
|
|
542
565
|
## `csdx cm:bulk-publish:entry-edits`
|
|
543
566
|
|
|
@@ -556,6 +579,7 @@ USAGE
|
|
|
556
579
|
$ csdx cm:bulk-publish:entry-edits
|
|
557
580
|
|
|
558
581
|
OPTIONS
|
|
582
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
559
583
|
-a, --alias=alias Alias for the management token to be used
|
|
560
584
|
|
|
561
585
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -597,9 +621,13 @@ EXAMPLES
|
|
|
597
621
|
Using --retryFailed or -r flag
|
|
598
622
|
csdx cm:bulk-publish:entry-edits --retryFailed [LOG FILE NAME]
|
|
599
623
|
csdx cm:bulk-publish:entry-edits -r [LOG FILE NAME]
|
|
624
|
+
|
|
625
|
+
Using --branch or -B flag
|
|
626
|
+
csdx cm:bulk-publish:entry-edits -t [CONTENT TYPE 1] [CONTENT TYPE 2] -s [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT
|
|
627
|
+
2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME]
|
|
600
628
|
```
|
|
601
629
|
|
|
602
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
630
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/entry-edits.js)_
|
|
603
631
|
|
|
604
632
|
## `csdx cm:bulk-publish:nonlocalized-field-changes`
|
|
605
633
|
|
|
@@ -618,6 +646,7 @@ USAGE
|
|
|
618
646
|
$ csdx cm:bulk-publish:nonlocalized-field-changes
|
|
619
647
|
|
|
620
648
|
OPTIONS
|
|
649
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
621
650
|
-a, --alias=alias Alias for the management token to be used
|
|
622
651
|
|
|
623
652
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -646,7 +675,7 @@ DESCRIPTION
|
|
|
646
675
|
EXAMPLES
|
|
647
676
|
General Usage
|
|
648
677
|
csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
|
|
649
|
-
2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
|
|
678
|
+
2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -s [SOURCE ENV]
|
|
650
679
|
|
|
651
680
|
Using --config or -c flag
|
|
652
681
|
Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
|
|
@@ -656,9 +685,13 @@ EXAMPLES
|
|
|
656
685
|
Using --retryFailed or -r flag
|
|
657
686
|
csdx cm:bulk-publish:nonlocalized-field-changes --retryFailed [LOG FILE NAME]
|
|
658
687
|
csdx cm:bulk-publish:nonlocalized-field-changes -r [LOG FILE NAME]
|
|
688
|
+
|
|
689
|
+
Using --branch or -B flag
|
|
690
|
+
csdx cm:bulk-publish:nonlocalized-field-changes -t [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT
|
|
691
|
+
2] -l [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] -B [BRANCH NAME] -s [SOURCE ENV]
|
|
659
692
|
```
|
|
660
693
|
|
|
661
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
694
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/nonlocalized-field-changes.js)_
|
|
662
695
|
|
|
663
696
|
## `csdx cm:bulk-publish:revert`
|
|
664
697
|
|
|
@@ -691,7 +724,7 @@ EXAMPLES
|
|
|
691
724
|
cm:bulk-publish:revert -r [LOG FILE NAME]
|
|
692
725
|
```
|
|
693
726
|
|
|
694
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
727
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/revert.js)_
|
|
695
728
|
|
|
696
729
|
## `csdx cm:bulk-publish:unpublish`
|
|
697
730
|
|
|
@@ -715,6 +748,9 @@ USAGE
|
|
|
715
748
|
$ csdx cm:bulk-publish:unpublish
|
|
716
749
|
|
|
717
750
|
OPTIONS
|
|
751
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main
|
|
752
|
+
branch)
|
|
753
|
+
|
|
718
754
|
-a, --alias=alias Alias for the management token to be used
|
|
719
755
|
|
|
720
756
|
-b, --bulkUnpublish=bulkUnpublish [default: true] This flag is set to true by default. It indicates that
|
|
@@ -778,9 +814,13 @@ EXAMPLES
|
|
|
778
814
|
entries, all entries, from the source environment)
|
|
779
815
|
csdx cm:bulk-publish:unpublish --contentType [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --onlyEntries
|
|
780
816
|
(Will unpublish only entries, (from CONTENT TYPE) from the source environment)
|
|
817
|
+
|
|
818
|
+
Using --branch or -B flag
|
|
819
|
+
csdx cm:bulk-publish:unpublish -b -t [CONTENT TYPE] -e [SOURCE ENV] -l [LOCALE] -a [MANAGEMENT TOKEN ALIAS] -x
|
|
820
|
+
[DELIVERY TOKEN] -B [BRANCH NAME]
|
|
781
821
|
```
|
|
782
822
|
|
|
783
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
823
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublish.js)_
|
|
784
824
|
|
|
785
825
|
## `csdx cm:bulk-publish:unpublished-entries`
|
|
786
826
|
|
|
@@ -798,6 +838,7 @@ USAGE
|
|
|
798
838
|
$ csdx cm:bulk-publish:unpublished-entries
|
|
799
839
|
|
|
800
840
|
OPTIONS
|
|
841
|
+
-B, --branch=branch [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
801
842
|
-a, --alias=alias Alias for the management token to be used
|
|
802
843
|
|
|
803
844
|
-b, --bulkPublish=bulkPublish [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -827,7 +868,8 @@ DESCRIPTION
|
|
|
827
868
|
|
|
828
869
|
EXAMPLES
|
|
829
870
|
General Usage
|
|
830
|
-
csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
|
|
871
|
+
csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
|
|
872
|
+
-s [SOURCE ENV]
|
|
831
873
|
|
|
832
874
|
Using --config or -c flag
|
|
833
875
|
Generate a config file at the current working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`
|
|
@@ -837,9 +879,13 @@ EXAMPLES
|
|
|
837
879
|
Using --retryFailed or -r flag
|
|
838
880
|
csdx cm:bulk-publish:unpublished-entries --retryFailed [LOG FILE NAME]
|
|
839
881
|
csdx cm:bulk-publish:unpublished-entries -r [LOG FILE NAME]
|
|
882
|
+
|
|
883
|
+
Using --branch or -B flag
|
|
884
|
+
csdx cm:bulk-publish:unpublished-entries -b -t [CONTENT TYPES] -e [ENVIRONMENTS] -l LOCALE -a [MANAGEMENT TOKEN ALIAS]
|
|
885
|
+
-B [BRANCH NAME] -s [SOURCE ENV]
|
|
840
886
|
```
|
|
841
887
|
|
|
842
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
888
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v0.1.1-beta.5/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/unpublished-entries.js)_
|
|
843
889
|
|
|
844
890
|
## `csdx cm:export`
|
|
845
891
|
|
|
@@ -856,11 +902,13 @@ USAGE
|
|
|
856
902
|
|
|
857
903
|
OPTIONS
|
|
858
904
|
-A, --auth-token to use auth token
|
|
905
|
+
-B, --branch=branch [optional] branch name
|
|
859
906
|
-a, --management-token-alias=management-token-alias alias of the management token
|
|
860
907
|
-c, --config=config [optional] path of the config
|
|
861
908
|
-d, --data=data path or location to store the data
|
|
862
909
|
-m, --module=module [optional] specific module name
|
|
863
910
|
-s, --stack-uid=stack-uid API key of the source stack
|
|
911
|
+
-t, --content-type=content-type [optional] content type
|
|
864
912
|
--secured-assets [optional] use when assets are secured
|
|
865
913
|
|
|
866
914
|
DESCRIPTION
|
|
@@ -876,9 +924,12 @@ EXAMPLES
|
|
|
876
924
|
csdx cm:export -a <management_token_alias>
|
|
877
925
|
csdx cm:export -a <management_token_alias> -d <path/to/export/destination/dir>
|
|
878
926
|
csdx cm:export -a <management_token_alias> -c <path/to/config/file>
|
|
927
|
+
csdx cm:export -A -m <single module name>
|
|
928
|
+
csdx cm:export -A -m <single module name> -t <content type>
|
|
929
|
+
csdx cm:export -A -B [optional] branch name
|
|
879
930
|
```
|
|
880
931
|
|
|
881
|
-
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
932
|
+
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/v0.1.1-beta.10/packages/contentstack-export/src/commands/cm/export.js)_
|
|
882
933
|
|
|
883
934
|
## `csdx cm:export-to-csv`
|
|
884
935
|
|
|
@@ -892,7 +943,7 @@ USAGE
|
|
|
892
943
|
$ csdx cm:export-to-csv
|
|
893
944
|
```
|
|
894
945
|
|
|
895
|
-
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/v0.1.0-beta.
|
|
946
|
+
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/v0.1.0-beta.2/src/commands/cm/export-to-csv.js)_
|
|
896
947
|
|
|
897
948
|
## `csdx cm:import`
|
|
898
949
|
|
|
@@ -909,6 +960,7 @@ USAGE
|
|
|
909
960
|
|
|
910
961
|
OPTIONS
|
|
911
962
|
-A, --auth-token to use auth token
|
|
963
|
+
-B, --branch=branch [optional] branch name
|
|
912
964
|
-a, --management-token-alias=management-token-alias alias of the management token
|
|
913
965
|
-b, --backup-dir=backup-dir [optional] backup directory name when using specific module
|
|
914
966
|
-c, --config=config [optional] path of config file
|
|
@@ -929,9 +981,11 @@ EXAMPLES
|
|
|
929
981
|
csdx cm:import -a <management_token_alias>
|
|
930
982
|
csdx cm:import -a <management_token_alias> -d <path/of/export/destination/dir>
|
|
931
983
|
csdx cm:import -a <management_token_alias> -c <path/of/config/file>
|
|
984
|
+
csdx cm:import -A -m <single module name>
|
|
985
|
+
csdx cm:import -A -B <branch name>
|
|
932
986
|
```
|
|
933
987
|
|
|
934
|
-
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
988
|
+
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/v0.1.1-beta.13/packages/contentstack-import/src/commands/cm/import.js)_
|
|
935
989
|
|
|
936
990
|
## `csdx cm:migrate-rte`
|
|
937
991
|
|
|
@@ -976,7 +1030,37 @@ EXAMPLES
|
|
|
976
1030
|
csdx cm:migrate-rte -a alias -c global_field_uid -g -h htmlPath -j jsonPath
|
|
977
1031
|
```
|
|
978
1032
|
|
|
979
|
-
_See code: [@contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli/blob/v1.0.
|
|
1033
|
+
_See code: [@contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli/blob/v1.0.4/src/commands/cm/migrate-rte/index.js)_
|
|
1034
|
+
|
|
1035
|
+
## `csdx cm:migration`
|
|
1036
|
+
|
|
1037
|
+
Contentstack migration script.
|
|
1038
|
+
|
|
1039
|
+
```
|
|
1040
|
+
Contentstack migration script.
|
|
1041
|
+
|
|
1042
|
+
USAGE
|
|
1043
|
+
$ csdx cm:migration
|
|
1044
|
+
|
|
1045
|
+
OPTIONS
|
|
1046
|
+
-A, --authtoken Use this flag to use the auth token of the current session. After
|
|
1047
|
+
logging in CLI, an auth token is generated for each new session.
|
|
1048
|
+
|
|
1049
|
+
-B, --branch=branch Use this flag to add the branch name where you want to perform
|
|
1050
|
+
the migration.
|
|
1051
|
+
|
|
1052
|
+
-a, --management-token-alias=management-token-alias Use this flag to add the management token alias.
|
|
1053
|
+
|
|
1054
|
+
-k, --api-key=api-key With this flag add the API key of your stack.
|
|
1055
|
+
|
|
1056
|
+
-n, --filePath=filePath Use this flag to provide the path of the file of the migration
|
|
1057
|
+
script provided by the user.
|
|
1058
|
+
|
|
1059
|
+
--multi This flag helps you to migrate multiple content files in a single
|
|
1060
|
+
instance.
|
|
1061
|
+
```
|
|
1062
|
+
|
|
1063
|
+
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/v0.1.1-beta.2/src/commands/cm/migration.js)_
|
|
980
1064
|
|
|
981
1065
|
## `csdx cm:seed`
|
|
982
1066
|
|
|
@@ -1002,7 +1086,7 @@ EXAMPLES
|
|
|
1002
1086
|
$ csdx cm:seed -r "account/repository" -o "your-org-uid" -n "stack-name" //create a new stack in given org uid
|
|
1003
1087
|
```
|
|
1004
1088
|
|
|
1005
|
-
_See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/v1.0.
|
|
1089
|
+
_See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/v1.0.9/src/commands/cm/seed.ts)_
|
|
1006
1090
|
|
|
1007
1091
|
## `csdx cm:stack-clone`
|
|
1008
1092
|
|
|
@@ -1023,7 +1107,7 @@ EXAMPLE
|
|
|
1023
1107
|
csdx cm:stack-clone
|
|
1024
1108
|
```
|
|
1025
1109
|
|
|
1026
|
-
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/v0.1.0-beta.
|
|
1110
|
+
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/v0.1.0-beta.3/src/commands/cm/stack-clone.js)_
|
|
1027
1111
|
|
|
1028
1112
|
## `csdx config:get:region`
|
|
1029
1113
|
|
|
@@ -1037,7 +1121,7 @@ USAGE
|
|
|
1037
1121
|
$ csdx config:get:region
|
|
1038
1122
|
```
|
|
1039
1123
|
|
|
1040
|
-
_See code: [src/commands/config/get/region.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
1124
|
+
_See code: [src/commands/config/get/region.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.24/src/commands/config/get/region.js)_
|
|
1041
1125
|
|
|
1042
1126
|
## `csdx config:set:region [REGION]`
|
|
1043
1127
|
|
|
@@ -1069,7 +1153,7 @@ EXAMPLES
|
|
|
1069
1153
|
--name="India"
|
|
1070
1154
|
```
|
|
1071
1155
|
|
|
1072
|
-
_See code: [src/commands/config/set/region.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.
|
|
1156
|
+
_See code: [src/commands/config/set/region.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.24/src/commands/config/set/region.js)_
|
|
1073
1157
|
|
|
1074
1158
|
## `csdx help [COMMAND]`
|
|
1075
1159
|
|
|
@@ -1107,7 +1191,7 @@ EXAMPLE
|
|
|
1107
1191
|
$ csdx plugins
|
|
1108
1192
|
```
|
|
1109
1193
|
|
|
1110
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.
|
|
1194
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.11/src/commands/plugins/index.ts)_
|
|
1111
1195
|
|
|
1112
1196
|
## `csdx plugins:create`
|
|
1113
1197
|
|
|
@@ -1144,7 +1228,7 @@ EXAMPLE
|
|
|
1144
1228
|
$ csdx plugins:inspect myplugin
|
|
1145
1229
|
```
|
|
1146
1230
|
|
|
1147
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.
|
|
1231
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.11/src/commands/plugins/inspect.ts)_
|
|
1148
1232
|
|
|
1149
1233
|
## `csdx plugins:install PLUGIN...`
|
|
1150
1234
|
|
|
@@ -1188,7 +1272,7 @@ EXAMPLES
|
|
|
1188
1272
|
$ csdx plugins:install someuser/someplugin
|
|
1189
1273
|
```
|
|
1190
1274
|
|
|
1191
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.
|
|
1275
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.11/src/commands/plugins/install.ts)_
|
|
1192
1276
|
|
|
1193
1277
|
## `csdx plugins:link PLUGIN`
|
|
1194
1278
|
|
|
@@ -1221,7 +1305,7 @@ EXAMPLE
|
|
|
1221
1305
|
$ csdx plugins:link myplugin
|
|
1222
1306
|
```
|
|
1223
1307
|
|
|
1224
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.
|
|
1308
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.11/src/commands/plugins/link.ts)_
|
|
1225
1309
|
|
|
1226
1310
|
## `csdx plugins:uninstall PLUGIN...`
|
|
1227
1311
|
|
|
@@ -1245,7 +1329,7 @@ ALIASES
|
|
|
1245
1329
|
$ csdx plugins:remove
|
|
1246
1330
|
```
|
|
1247
1331
|
|
|
1248
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.
|
|
1332
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.11/src/commands/plugins/uninstall.ts)_
|
|
1249
1333
|
|
|
1250
1334
|
## `csdx plugins:update`
|
|
1251
1335
|
|
|
@@ -1262,5 +1346,5 @@ OPTIONS
|
|
|
1262
1346
|
-v, --verbose
|
|
1263
1347
|
```
|
|
1264
1348
|
|
|
1265
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.
|
|
1349
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v1.10.11/src/commands/plugins/update.ts)_
|
|
1266
1350
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.1.1-beta.
|
|
1
|
+
{"version":"0.1.1-beta.24","commands":{"config:get:region":{"id":"config:get:region","description":"Get current region set for CLI\n","pluginName":"@contentstack/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"config:set:region":{"id":"config:set:region","description":"Set region for CLI\n","pluginName":"@contentstack/cli","pluginType":"core","aliases":[],"examples":["$ csdx config:set:region EU","$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name \"India\"","$ csdx config:set:region --cma=\"https://in-api.contentstack.com\" --cda=\"https://in-cda.contentstack.com\" --name=\"India\""],"flags":{"cda":{"name":"cda","type":"option","char":"d","description":"Custom host to set for content delivery API, if this flag is added then cma and name flags are required"},"cma":{"name":"cma","type":"option","char":"m","description":"Custom host to set for content management API, , if this flag is added then cda and name flags are required"},"name":{"name":"name","type":"option","char":"n","description":"Name for the region, if this flag is added then cda and cma flags are required"}},"args":[{"name":"region","description":"North America(NA), Europe (EU)","options":["EU","NA"]}]}}}
|
package/package.json
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "0.1.1-beta.
|
|
4
|
+
"version": "0.1.1-beta.24",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@contentstack/cli-
|
|
12
|
-
"@contentstack/cli-auth": "0.1.1-beta.
|
|
13
|
-
"@contentstack/cli-cm-bulk-publish": "0.1.1-beta.
|
|
14
|
-
"@contentstack/cli-cm-clone": "0.1.0-beta.
|
|
15
|
-
"@contentstack/cli-cm-export": "^0.1.1-beta.
|
|
16
|
-
"@contentstack/cli-cm-export-to-csv": "0.1.0-beta.
|
|
17
|
-
"@contentstack/cli-
|
|
18
|
-
"@contentstack/cli-cm-
|
|
19
|
-
"@contentstack/cli-
|
|
20
|
-
"@contentstack/cli-cm-
|
|
11
|
+
"@contentstack/cli-command": "0.1.1-beta.6",
|
|
12
|
+
"@contentstack/cli-auth": "0.1.1-beta.2",
|
|
13
|
+
"@contentstack/cli-cm-bulk-publish": "0.1.1-beta.5",
|
|
14
|
+
"@contentstack/cli-cm-clone": "0.1.0-beta.3",
|
|
15
|
+
"@contentstack/cli-cm-export": "^0.1.1-beta.10",
|
|
16
|
+
"@contentstack/cli-cm-export-to-csv": "0.1.0-beta.2",
|
|
17
|
+
"@contentstack/cli-migration": "0.1.1-beta.2",
|
|
18
|
+
"@contentstack/cli-cm-migrate-rte": "^1.0.4",
|
|
19
|
+
"@contentstack/cli-cm-import": "^0.1.1-beta.13",
|
|
20
|
+
"@contentstack/cli-cm-seed": "^1.0.9",
|
|
21
|
+
"@contentstack/cli-cm-bootstrap": "^1.0.4",
|
|
21
22
|
"@contentstack/cli-plugins-plugin": "0.1.0-beta",
|
|
22
|
-
"@contentstack/management": "1.
|
|
23
|
+
"@contentstack/management": "^1.3.0",
|
|
23
24
|
"@oclif/command": "^1.6.1",
|
|
24
25
|
"@oclif/config": "^1.15.1",
|
|
25
26
|
"@oclif/errors": "^1.3.3",
|
|
26
27
|
"@oclif/plugin-help": "^2.2.3",
|
|
27
28
|
"@oclif/plugin-not-found": "^1.2.3",
|
|
28
29
|
"@oclif/plugin-plugins": "^1.8.1",
|
|
29
|
-
"axios": "^0.
|
|
30
|
+
"axios": "^0.21.1",
|
|
30
31
|
"bluebird": "^3.7.2",
|
|
31
32
|
"chalk": "^4.1.0",
|
|
32
33
|
"cli-ux": "^5.5.0",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"debug": "^4.1.1",
|
|
35
36
|
"figlet": "^1.4.0",
|
|
36
37
|
"lodash": "^4.17.20",
|
|
37
|
-
"
|
|
38
|
+
"query-string": "^7.0.1",
|
|
38
39
|
"request": "^2.88.2",
|
|
39
40
|
"uuid": "^8.2.0"
|
|
40
41
|
},
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"nyc": "^14.1.1"
|
|
51
52
|
},
|
|
52
53
|
"engines": {
|
|
53
|
-
"node": ">=
|
|
54
|
+
"node": ">=10.0.0"
|
|
54
55
|
},
|
|
55
56
|
"files": [
|
|
56
57
|
"/bin",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"@contentstack/cli-cm-clone",
|
|
98
99
|
"@contentstack/cli-cm-export-to-csv",
|
|
99
100
|
"@contentstack/cli-cm-seed",
|
|
101
|
+
"@contentstack/cli-migration",
|
|
100
102
|
"@contentstack/cli-cm-bootstrap",
|
|
101
103
|
"@contentstack/cli-cm-migrate-rte"
|
|
102
104
|
],
|
package/src/util/analytics.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const axios = require('axios')
|
|
2
2
|
const debug = require('debug')('contentstack:analytics')
|
|
3
|
-
const querystring = require('
|
|
3
|
+
const querystring = require('query-string')
|
|
4
4
|
|
|
5
5
|
const VERSION = 1
|
|
6
6
|
/**
|
|
@@ -53,7 +53,6 @@ class Analytics {
|
|
|
53
53
|
cd1: analyticsOpts.os,
|
|
54
54
|
}
|
|
55
55
|
let opts = Object.assign(this.settings, data)
|
|
56
|
-
debug('Sending event to analytics for', querystring.stringify(opts))
|
|
57
56
|
return axios.post(GOOGLE_ANALYTICS_MEASUREMENT_PROTOCOL_URL, querystring.stringify(opts))
|
|
58
57
|
}
|
|
59
58
|
}
|