@contentstack/cli 1.7.9 → 1.7.11
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 +215 -97
- package/lib/help.d.ts +1 -1
- package/lib/help.js +1 -2
- package/lib/interfaces/index.d.ts +1 -1
- package/lib/utils/context-handler.d.ts +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +21 -20
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version|-v)
|
|
21
|
-
@contentstack/cli/1.7.
|
|
21
|
+
@contentstack/cli/1.7.11 linux-x64 node-v18.17.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -301,6 +301,7 @@ FLAGS
|
|
|
301
301
|
-a, --alias=<value> Alias(name) for the management token
|
|
302
302
|
-c, --config=<value> Path to the config file
|
|
303
303
|
-e, --environments=<value>... Environments where assets will be published
|
|
304
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
304
305
|
-l, --locales=<value>... Locales to where assets will be published
|
|
305
306
|
-y, --yes Agree to process the command with the current configuration
|
|
306
307
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -355,6 +356,12 @@ EXAMPLES
|
|
|
355
356
|
Using --source-env
|
|
356
357
|
|
|
357
358
|
$ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
Using --stack-api-key flag
|
|
363
|
+
|
|
364
|
+
$ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --stack-api-key [STACK API KEY]
|
|
358
365
|
```
|
|
359
366
|
|
|
360
367
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/publish.js)_
|
|
@@ -365,22 +372,23 @@ Unpublish assets from given environment
|
|
|
365
372
|
|
|
366
373
|
```
|
|
367
374
|
USAGE
|
|
368
|
-
$ csdx cm:assets:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch
|
|
369
|
-
[--retry-failed <value>] [--bulk-unpublish <value>] [--api-version <value>] [--delivery-token <value>]
|
|
375
|
+
$ csdx cm:assets:unpublish [-a <value>] [-k <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch
|
|
376
|
+
<value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--api-version <value>] [--delivery-token <value>]
|
|
370
377
|
|
|
371
378
|
FLAGS
|
|
372
|
-
-a, --alias=<value>
|
|
373
|
-
-c, --config=<value>
|
|
374
|
-
-e, --environment=<value>
|
|
375
|
-
-
|
|
376
|
-
|
|
377
|
-
--
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
--
|
|
383
|
-
--
|
|
379
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
380
|
+
-c, --config=<value> Path to the config file
|
|
381
|
+
-e, --environment=<value> Source Environment
|
|
382
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
383
|
+
-y, --yes Agree to process the command with the current configuration
|
|
384
|
+
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
385
|
+
--branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
|
|
386
|
+
selected)
|
|
387
|
+
--bulk-unpublish=<value> [default: true] By default this flag is set as true. It indicates that contentstack's
|
|
388
|
+
bulkpublish API will be used to unpublish the assets
|
|
389
|
+
--delivery-token=<value> Delivery Token for source environment
|
|
390
|
+
--locale=<value> Locale filter
|
|
391
|
+
--retry-failed=<value> Retry unpublishing failed assets from the logfile
|
|
384
392
|
|
|
385
393
|
DESCRIPTION
|
|
386
394
|
Unpublish assets from given environment
|
|
@@ -415,6 +423,12 @@ EXAMPLES
|
|
|
415
423
|
Using --branch flag
|
|
416
424
|
|
|
417
425
|
$ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
Using --stack-api-key flag
|
|
430
|
+
|
|
431
|
+
$ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --stack-api-key [STACK API KEY] --delivery-token [DELIVERY TOKEN]
|
|
418
432
|
```
|
|
419
433
|
|
|
420
434
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/unpublish.js)_
|
|
@@ -426,9 +440,10 @@ Bootstrap contentstack apps
|
|
|
426
440
|
```
|
|
427
441
|
USAGE
|
|
428
442
|
$ csdx cm:bootstrap [--app-name <value>] [--project-dir <value>] [-k <value> | --org <value> | -n <value>] [-y
|
|
429
|
-
<value>]
|
|
443
|
+
<value>] [-a <value>]
|
|
430
444
|
|
|
431
445
|
FLAGS
|
|
446
|
+
-a, --alias=<value> Alias of the management token
|
|
432
447
|
-k, --stack-api-key=<value> Provide stack API key to seed content
|
|
433
448
|
-n, --stack-name=<value> Name of a new stack that will be created.
|
|
434
449
|
-y, --yes=<value> [Optional] Skip stack confirmation
|
|
@@ -653,6 +668,7 @@ FLAGS
|
|
|
653
668
|
-a, --alias=<value> Alias(name) for the management token
|
|
654
669
|
-c, --config=<value> Path to the config file
|
|
655
670
|
-e, --environments=<value>... Environments where entries will be published
|
|
671
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
656
672
|
-l, --locales=<value>... Locales where entries will be published
|
|
657
673
|
-t, --contentTypes=<value>... The Contenttypes from which entries will be published
|
|
658
674
|
-y, --yes Agree to process the command with the current configuration
|
|
@@ -678,7 +694,7 @@ ALIASES
|
|
|
678
694
|
EXAMPLES
|
|
679
695
|
General Usage
|
|
680
696
|
|
|
681
|
-
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --
|
|
697
|
+
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
|
|
682
698
|
|
|
683
699
|
|
|
684
700
|
|
|
@@ -700,7 +716,13 @@ EXAMPLES
|
|
|
700
716
|
|
|
701
717
|
Using --branch
|
|
702
718
|
|
|
703
|
-
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --
|
|
719
|
+
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
Using --stack-api-key
|
|
724
|
+
|
|
725
|
+
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] --stack-api-key [STACK API KEY]
|
|
704
726
|
```
|
|
705
727
|
|
|
706
728
|
## `csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
|
|
@@ -718,6 +740,7 @@ FLAGS
|
|
|
718
740
|
-a, --alias=<value> Alias(name) for the management token
|
|
719
741
|
-c, --config=<value> Path to the config file
|
|
720
742
|
-e, --environments=<value>... Environments where assets will be published
|
|
743
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
721
744
|
-l, --locales=<value>... Locales to where assets will be published
|
|
722
745
|
-y, --yes Agree to process the command with the current configuration
|
|
723
746
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -772,6 +795,12 @@ EXAMPLES
|
|
|
772
795
|
Using --source-env
|
|
773
796
|
|
|
774
797
|
$ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
Using --stack-api-key flag
|
|
802
|
+
|
|
803
|
+
$ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --stack-api-key [STACK API KEY]
|
|
775
804
|
```
|
|
776
805
|
|
|
777
806
|
## `csdx cm:bulk-publish:clear`
|
|
@@ -808,10 +837,11 @@ The configure command is used to generate a configuration file for publish scrip
|
|
|
808
837
|
|
|
809
838
|
```
|
|
810
839
|
USAGE
|
|
811
|
-
$ csdx cm:bulk-publish:configure [-a <value>]
|
|
840
|
+
$ csdx cm:bulk-publish:configure [-a <value>] [-k <value>]
|
|
812
841
|
|
|
813
842
|
FLAGS
|
|
814
|
-
-a, --alias=<value>
|
|
843
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
844
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
815
845
|
|
|
816
846
|
DESCRIPTION
|
|
817
847
|
The configure command is used to generate a configuration file for publish scripts.
|
|
@@ -825,6 +855,8 @@ EXAMPLES
|
|
|
825
855
|
$ csdx cm:stacks:publish-configure -a <management_token_alias>
|
|
826
856
|
|
|
827
857
|
$ csdx cm:stacks:publish-configure --alias <management_token_alias>
|
|
858
|
+
|
|
859
|
+
$ csdx cm:stacks:publish-configure --stack-api-key <stack_api_key>
|
|
828
860
|
```
|
|
829
861
|
|
|
830
862
|
## `csdx cm:bulk-publish:cross-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-type <value>] [--locales <value>] [--source-env <value>] [--environments <value>] [--delivery-token <value>] [-c <value>] [-y] [--branch <value>] [--onlyAssets] [--onlyEntries]`
|
|
@@ -838,23 +870,24 @@ USAGE
|
|
|
838
870
|
[-y] [--branch <value>] [--onlyAssets] [--onlyEntries]
|
|
839
871
|
|
|
840
872
|
FLAGS
|
|
841
|
-
-B, --branch=<value>
|
|
842
|
-
|
|
843
|
-
-a, --alias=<value>
|
|
844
|
-
-c, --config=<value>
|
|
845
|
-
-
|
|
846
|
-
|
|
847
|
-
--
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
--
|
|
851
|
-
--
|
|
852
|
-
--
|
|
853
|
-
--
|
|
854
|
-
--
|
|
855
|
-
--
|
|
856
|
-
|
|
857
|
-
|
|
873
|
+
-B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
|
|
874
|
+
selected)
|
|
875
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
876
|
+
-c, --config=<value> Path to the config file
|
|
877
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
878
|
+
-y, --yes Agree to process the command with the current configuration
|
|
879
|
+
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
880
|
+
--bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
881
|
+
bulkpublish API will be used to publish the entries
|
|
882
|
+
--content-type=<value>... The Contenttypes from which entries will be published
|
|
883
|
+
--delivery-token=<value> Delivery token for source environment
|
|
884
|
+
--environments=<value>... Destination Environments
|
|
885
|
+
--locales=<value> Source locale
|
|
886
|
+
--onlyAssets Unpublish only assets
|
|
887
|
+
--onlyEntries Unpublish only entries
|
|
888
|
+
--retry-failed=<value> (optional) Retry publishing failed entries from the logfile (this flag overrides all
|
|
889
|
+
other flags)
|
|
890
|
+
--source-env=<value> Source Env
|
|
858
891
|
|
|
859
892
|
DESCRIPTION
|
|
860
893
|
Publish entries and assets from one environment to other environments
|
|
@@ -893,6 +926,12 @@ EXAMPLES
|
|
|
893
926
|
Using --branch flag
|
|
894
927
|
|
|
895
928
|
$ csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION ENVIRONMENT] --locales [LOCALE] -a [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
Using --stack-api-key flag
|
|
933
|
+
|
|
934
|
+
$ csdx cm:bulk-publish:cross-publish --content-type [CONTENT TYPE] --source-env [SOURCE ENV] --environments [DESTINATION ENVIRONMENT] --locales [LOCALE] --stack-api-key [STACK API KEY] --delivery-token [DELIVERY TOKEN]
|
|
896
935
|
```
|
|
897
936
|
|
|
898
937
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
|
|
@@ -914,6 +953,7 @@ FLAGS
|
|
|
914
953
|
-c, --config=<value> Path for the external config file (A new config file can be generated at the current
|
|
915
954
|
working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
|
|
916
955
|
-e, --environments=<value>... Environments where entries will be published
|
|
956
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
917
957
|
-l, --locales=<value>... Locales where entries will be published
|
|
918
958
|
-y, --yes Agree to process the command with the current configuration
|
|
919
959
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -973,6 +1013,12 @@ EXAMPLES
|
|
|
973
1013
|
Using --source-env
|
|
974
1014
|
|
|
975
1015
|
$ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
Using --stack-api-key
|
|
1020
|
+
|
|
1021
|
+
$ csdx cm:entries:publish -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] --stack-api-key [STACK API KEY] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
976
1022
|
```
|
|
977
1023
|
|
|
978
1024
|
## `csdx cm:entries:publish-modified [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
|
|
@@ -990,6 +1036,7 @@ FLAGS
|
|
|
990
1036
|
-a, --alias=<value> Alias(name) for the management token
|
|
991
1037
|
-c, --config=<value> Path to the config file
|
|
992
1038
|
-e, --environments=<value>... Destination environments
|
|
1039
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
993
1040
|
-l, --locales=<value>... Locales where edited entries will be published
|
|
994
1041
|
-y, --yes Agree to process the command with the current configuration
|
|
995
1042
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -1040,6 +1087,12 @@ EXAMPLES
|
|
|
1040
1087
|
Using --branch
|
|
1041
1088
|
|
|
1042
1089
|
$ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
Using --stack-api-key
|
|
1094
|
+
|
|
1095
|
+
$ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -stack-api-key [STACK API KEY]
|
|
1043
1096
|
```
|
|
1044
1097
|
|
|
1045
1098
|
## `csdx cm:entries:publish-non-localized-fields [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
|
|
@@ -1057,6 +1110,7 @@ FLAGS
|
|
|
1057
1110
|
-a, --alias=<value> Alias(name) for the management token
|
|
1058
1111
|
-c, --config=<value> Path to the config file
|
|
1059
1112
|
-e, --environments=<value>... Destination environments
|
|
1113
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1060
1114
|
-y, --yes Agree to process the command with the current configuration
|
|
1061
1115
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1062
1116
|
--bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -1103,6 +1157,12 @@ EXAMPLES
|
|
|
1103
1157
|
Using --branch flag
|
|
1104
1158
|
|
|
1105
1159
|
$ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV] --branch [BRANCH NAME]
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
Using --stack-api-key flag
|
|
1164
|
+
|
|
1165
|
+
$ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --stack-api-key [STACK API KEY] --source-env [SOURCE ENV]
|
|
1106
1166
|
```
|
|
1107
1167
|
|
|
1108
1168
|
## `csdx cm:bulk-publish:revert`
|
|
@@ -1149,18 +1209,19 @@ USAGE
|
|
|
1149
1209
|
[--only-assets] [--only-entries]
|
|
1150
1210
|
|
|
1151
1211
|
FLAGS
|
|
1152
|
-
-B, --branch=<value>
|
|
1153
|
-
-a, --alias=<value>
|
|
1154
|
-
-c, --config=<value>
|
|
1155
|
-
-e, --environment=<value>
|
|
1156
|
-
-
|
|
1157
|
-
-
|
|
1158
|
-
|
|
1159
|
-
--
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
--
|
|
1163
|
-
--
|
|
1212
|
+
-B, --branch=<value> [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
1213
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
1214
|
+
-c, --config=<value> Path to the config file
|
|
1215
|
+
-e, --environment=<value> Source Environment
|
|
1216
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1217
|
+
-l, --locale=<value> Locale filter
|
|
1218
|
+
-y, --yes Agree to process the command with the current configuration
|
|
1219
|
+
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1220
|
+
--bulk-unpublish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
1221
|
+
bulkpublish API will be used to unpublish the entries and assets
|
|
1222
|
+
--content-type=<value> Content type filter
|
|
1223
|
+
--delivery-token=<value> Delivery token for source environment
|
|
1224
|
+
--retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
|
|
1164
1225
|
|
|
1165
1226
|
DESCRIPTION
|
|
1166
1227
|
Unpublish entries or assets of given content types from the specified environment
|
|
@@ -1226,6 +1287,12 @@ EXAMPLES
|
|
|
1226
1287
|
Using --branch flag
|
|
1227
1288
|
|
|
1228
1289
|
$ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
Using --stack-api-key flag
|
|
1294
|
+
|
|
1295
|
+
$ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --stack-api-key [STACK API KEY] --delivery-token [DELIVERY TOKEN]
|
|
1229
1296
|
```
|
|
1230
1297
|
|
|
1231
1298
|
## `csdx cm:entries:publish-only-unpublished [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--source-env <value>] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>]`
|
|
@@ -1246,6 +1313,7 @@ FLAGS
|
|
|
1246
1313
|
bulkpublish API will be used to publish the entries
|
|
1247
1314
|
-c, --config=<value> Path to the config file
|
|
1248
1315
|
-e, --environments=<value>... Destination environments
|
|
1316
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1249
1317
|
-y, --yes Agree to process the command with the current configuration
|
|
1250
1318
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1251
1319
|
--content-types=<value>... The Contenttypes from which entries will be published
|
|
@@ -1292,6 +1360,12 @@ EXAMPLES
|
|
|
1292
1360
|
Using --branch
|
|
1293
1361
|
|
|
1294
1362
|
$ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME] -source-env [SOURCE ENV]
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
Using --stack-api-key
|
|
1367
|
+
|
|
1368
|
+
$ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] --stack-api-key [STACK API KEY] -source-env [SOURCE ENV]
|
|
1295
1369
|
```
|
|
1296
1370
|
|
|
1297
1371
|
## `csdx cm:entries:migrate-html-rte`
|
|
@@ -1372,6 +1446,7 @@ FLAGS
|
|
|
1372
1446
|
-c, --config=<value> Path for the external config file (A new config file can be generated at the current
|
|
1373
1447
|
working directory using `csdx cm:bulk-publish:configure -a [ALIAS]`)
|
|
1374
1448
|
-e, --environments=<value>... Environments where entries will be published
|
|
1449
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1375
1450
|
-l, --locales=<value>... Locales where entries will be published
|
|
1376
1451
|
-y, --yes Agree to process the command with the current configuration
|
|
1377
1452
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -1431,6 +1506,12 @@ EXAMPLES
|
|
|
1431
1506
|
Using --source-env
|
|
1432
1507
|
|
|
1433
1508
|
$ csdx cm:entries:publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
Using --stack-api-key
|
|
1513
|
+
|
|
1514
|
+
$ csdx cm:entries:publish -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] --stack-api-key [STACK API KEY] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
1434
1515
|
```
|
|
1435
1516
|
|
|
1436
1517
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js)_
|
|
@@ -1450,6 +1531,7 @@ FLAGS
|
|
|
1450
1531
|
-a, --alias=<value> Alias(name) for the management token
|
|
1451
1532
|
-c, --config=<value> Path to the config file
|
|
1452
1533
|
-e, --environments=<value>... Destination environments
|
|
1534
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1453
1535
|
-l, --locales=<value>... Locales where edited entries will be published
|
|
1454
1536
|
-y, --yes Agree to process the command with the current configuration
|
|
1455
1537
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -1500,6 +1582,12 @@ EXAMPLES
|
|
|
1500
1582
|
Using --branch
|
|
1501
1583
|
|
|
1502
1584
|
$ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
Using --stack-api-key
|
|
1589
|
+
|
|
1590
|
+
$ csdx cm:entries:publish-modified --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --source-env [SOURCE_ENV] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -stack-api-key [STACK API KEY]
|
|
1503
1591
|
```
|
|
1504
1592
|
|
|
1505
1593
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-modified.js)_
|
|
@@ -1519,6 +1607,7 @@ FLAGS
|
|
|
1519
1607
|
-a, --alias=<value> Alias(name) for the management token
|
|
1520
1608
|
-c, --config=<value> Path to the config file
|
|
1521
1609
|
-e, --environments=<value>... Destination environments
|
|
1610
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1522
1611
|
-y, --yes Agree to process the command with the current configuration
|
|
1523
1612
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1524
1613
|
--bulk-publish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
@@ -1565,6 +1654,12 @@ EXAMPLES
|
|
|
1565
1654
|
Using --branch flag
|
|
1566
1655
|
|
|
1567
1656
|
$ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENV] --branch [BRANCH NAME]
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
Using --stack-api-key flag
|
|
1661
|
+
|
|
1662
|
+
$ csdx cm:entries:publish-non-localized-fields --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --stack-api-key [STACK API KEY] --source-env [SOURCE ENV]
|
|
1568
1663
|
```
|
|
1569
1664
|
|
|
1570
1665
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-non-localized-fields.js)_
|
|
@@ -1587,6 +1682,7 @@ FLAGS
|
|
|
1587
1682
|
bulkpublish API will be used to publish the entries
|
|
1588
1683
|
-c, --config=<value> Path to the config file
|
|
1589
1684
|
-e, --environments=<value>... Destination environments
|
|
1685
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1590
1686
|
-y, --yes Agree to process the command with the current configuration
|
|
1591
1687
|
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1592
1688
|
--content-types=<value>... The Contenttypes from which entries will be published
|
|
@@ -1633,6 +1729,12 @@ EXAMPLES
|
|
|
1633
1729
|
Using --branch
|
|
1634
1730
|
|
|
1635
1731
|
$ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME] -source-env [SOURCE ENV]
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
Using --stack-api-key
|
|
1736
|
+
|
|
1737
|
+
$ csdx cm:entries:publish-only-unpublished -b --content-types [CONTENT TYPES] -e [ENVIRONMENTS] --locales LOCALE -a [MANAGEMENT TOKEN ALIAS] --stack-api-key [STACK API KEY] -source-env [SOURCE ENV]
|
|
1636
1738
|
```
|
|
1637
1739
|
|
|
1638
1740
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-only-unpublished.js)_
|
|
@@ -1643,24 +1745,25 @@ Unpublish entries from the given environment
|
|
|
1643
1745
|
|
|
1644
1746
|
```
|
|
1645
1747
|
USAGE
|
|
1646
|
-
$ csdx cm:entries:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch
|
|
1647
|
-
[--retry-failed <value>] [--bulk-unpublish <value>] [--api-version <value>] [--content-type <value>]
|
|
1748
|
+
$ csdx cm:entries:unpublish [-a <value>] [-k <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch
|
|
1749
|
+
<value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--api-version <value>] [--content-type <value>]
|
|
1648
1750
|
[--delivery-token <value>]
|
|
1649
1751
|
|
|
1650
1752
|
FLAGS
|
|
1651
|
-
-a, --alias=<value>
|
|
1652
|
-
-c, --config=<value>
|
|
1653
|
-
-e, --environment=<value>
|
|
1654
|
-
-
|
|
1655
|
-
|
|
1656
|
-
--
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
--
|
|
1662
|
-
--
|
|
1663
|
-
--
|
|
1753
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
1754
|
+
-c, --config=<value> Path to the config file
|
|
1755
|
+
-e, --environment=<value> Source Environment
|
|
1756
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1757
|
+
-y, --yes Agree to process the command with the current configuration
|
|
1758
|
+
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1759
|
+
--branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
|
|
1760
|
+
selected)
|
|
1761
|
+
--bulk-unpublish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
1762
|
+
bulkpublish API will be used to unpublish the entries
|
|
1763
|
+
--content-type=<value> Content type filter
|
|
1764
|
+
--delivery-token=<value> Delivery token for source environment
|
|
1765
|
+
--locale=<value> Locale filter
|
|
1766
|
+
--retry-failed=<value> Retry publishing failed entries from the logfile
|
|
1664
1767
|
|
|
1665
1768
|
DESCRIPTION
|
|
1666
1769
|
Unpublish entries from the given environment
|
|
@@ -1692,11 +1795,15 @@ EXAMPLES
|
|
|
1692
1795
|
|
|
1693
1796
|
|
|
1694
1797
|
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
1798
|
Using --branch flag
|
|
1698
1799
|
|
|
1699
1800
|
$ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
Using --stack-api-key flag
|
|
1805
|
+
|
|
1806
|
+
$ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --stack-api-key [STACK API KEY] --delivery-token [DELIVERY TOKEN]
|
|
1700
1807
|
```
|
|
1701
1808
|
|
|
1702
1809
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/unpublish.js)_
|
|
@@ -1716,6 +1823,7 @@ FLAGS
|
|
|
1716
1823
|
-a, --alias=<value> Alias(name) for the management token
|
|
1717
1824
|
-c, --config=<value> Path to the config file
|
|
1718
1825
|
-e, --environments=<value>... Environments where entries will be published
|
|
1826
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
1719
1827
|
-l, --locales=<value>... Locales where entries will be published
|
|
1720
1828
|
-t, --contentTypes=<value>... The Contenttypes from which entries will be published
|
|
1721
1829
|
-y, --yes Agree to process the command with the current configuration
|
|
@@ -1741,7 +1849,7 @@ ALIASES
|
|
|
1741
1849
|
EXAMPLES
|
|
1742
1850
|
General Usage
|
|
1743
1851
|
|
|
1744
|
-
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --
|
|
1852
|
+
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS]
|
|
1745
1853
|
|
|
1746
1854
|
|
|
1747
1855
|
|
|
@@ -1763,7 +1871,13 @@ EXAMPLES
|
|
|
1763
1871
|
|
|
1764
1872
|
Using --branch
|
|
1765
1873
|
|
|
1766
|
-
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --
|
|
1874
|
+
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
Using --stack-api-key
|
|
1879
|
+
|
|
1880
|
+
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE 1] [LOCALE 2] --stack-api-key [STACK API KEY]
|
|
1767
1881
|
```
|
|
1768
1882
|
|
|
1769
1883
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/update-and-publish.js)_
|
|
@@ -1866,7 +1980,7 @@ _See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/
|
|
|
1866
1980
|
|
|
1867
1981
|
## `csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`
|
|
1868
1982
|
|
|
1869
|
-
Import
|
|
1983
|
+
Import content from a stack
|
|
1870
1984
|
|
|
1871
1985
|
```
|
|
1872
1986
|
USAGE
|
|
@@ -1886,11 +2000,7 @@ FLAGS
|
|
|
1886
2000
|
<options: disable|current>
|
|
1887
2001
|
|
|
1888
2002
|
DESCRIPTION
|
|
1889
|
-
Import
|
|
1890
|
-
...
|
|
1891
|
-
Once you export content from the source stack, import it to your destination stack by using the cm:stacks:import
|
|
1892
|
-
command.
|
|
1893
|
-
|
|
2003
|
+
Import content from a stack
|
|
1894
2004
|
|
|
1895
2005
|
ALIASES
|
|
1896
2006
|
$ csdx cm:import
|
|
@@ -2020,6 +2130,7 @@ USAGE
|
|
|
2020
2130
|
$ csdx cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>]
|
|
2021
2131
|
|
|
2022
2132
|
FLAGS
|
|
2133
|
+
-a, --alias=<value> Alias of the management token
|
|
2023
2134
|
-k, --stack-api-key=<value> Provide stack api key to seed content to
|
|
2024
2135
|
-n, --stack-name=<value> Name of a new stack that needs to be created.
|
|
2025
2136
|
-o, --org=<value> Provide Organization UID to create a new stack
|
|
@@ -2187,11 +2298,11 @@ EXAMPLES
|
|
|
2187
2298
|
$ csdx cm:stacks:export --branch [optional] branch name
|
|
2188
2299
|
```
|
|
2189
2300
|
|
|
2190
|
-
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/stacks/export.
|
|
2301
|
+
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/stacks/export.ts)_
|
|
2191
2302
|
|
|
2192
2303
|
## `csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`
|
|
2193
2304
|
|
|
2194
|
-
Import
|
|
2305
|
+
Import content from a stack
|
|
2195
2306
|
|
|
2196
2307
|
```
|
|
2197
2308
|
USAGE
|
|
@@ -2211,11 +2322,7 @@ FLAGS
|
|
|
2211
2322
|
<options: disable|current>
|
|
2212
2323
|
|
|
2213
2324
|
DESCRIPTION
|
|
2214
|
-
Import
|
|
2215
|
-
...
|
|
2216
|
-
Once you export content from the source stack, import it to your destination stack by using the cm:stacks:import
|
|
2217
|
-
command.
|
|
2218
|
-
|
|
2325
|
+
Import content from a stack
|
|
2219
2326
|
|
|
2220
2327
|
ALIASES
|
|
2221
2328
|
$ csdx cm:import
|
|
@@ -2238,7 +2345,7 @@ EXAMPLES
|
|
|
2238
2345
|
$ csdx cm:stacks:import --branch <branch name> --yes
|
|
2239
2346
|
```
|
|
2240
2347
|
|
|
2241
|
-
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/main/packages/contentstack-import/src/commands/cm/stacks/import.
|
|
2348
|
+
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/main/packages/contentstack-import/src/commands/cm/stacks/import.ts)_
|
|
2242
2349
|
|
|
2243
2350
|
## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
|
|
2244
2351
|
|
|
@@ -2369,10 +2476,11 @@ The configure command is used to generate a configuration file for publish scrip
|
|
|
2369
2476
|
|
|
2370
2477
|
```
|
|
2371
2478
|
USAGE
|
|
2372
|
-
$ csdx cm:stacks:publish-configure [-a <value>]
|
|
2479
|
+
$ csdx cm:stacks:publish-configure [-a <value>] [-k <value>]
|
|
2373
2480
|
|
|
2374
2481
|
FLAGS
|
|
2375
|
-
-a, --alias=<value>
|
|
2482
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
2483
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
2376
2484
|
|
|
2377
2485
|
DESCRIPTION
|
|
2378
2486
|
The configure command is used to generate a configuration file for publish scripts.
|
|
@@ -2386,6 +2494,8 @@ EXAMPLES
|
|
|
2386
2494
|
$ csdx cm:stacks:publish-configure -a <management_token_alias>
|
|
2387
2495
|
|
|
2388
2496
|
$ csdx cm:stacks:publish-configure --alias <management_token_alias>
|
|
2497
|
+
|
|
2498
|
+
$ csdx cm:stacks:publish-configure --stack-api-key <stack_api_key>
|
|
2389
2499
|
```
|
|
2390
2500
|
|
|
2391
2501
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-configure.js)_
|
|
@@ -2434,6 +2544,7 @@ USAGE
|
|
|
2434
2544
|
$ csdx cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>]
|
|
2435
2545
|
|
|
2436
2546
|
FLAGS
|
|
2547
|
+
-a, --alias=<value> Alias of the management token
|
|
2437
2548
|
-k, --stack-api-key=<value> Provide stack api key to seed content to
|
|
2438
2549
|
-n, --stack-name=<value> Name of a new stack that needs to be created.
|
|
2439
2550
|
-o, --org=<value> Provide Organization UID to create a new stack
|
|
@@ -2472,18 +2583,19 @@ USAGE
|
|
|
2472
2583
|
[--only-assets] [--only-entries]
|
|
2473
2584
|
|
|
2474
2585
|
FLAGS
|
|
2475
|
-
-B, --branch=<value>
|
|
2476
|
-
-a, --alias=<value>
|
|
2477
|
-
-c, --config=<value>
|
|
2478
|
-
-e, --environment=<value>
|
|
2479
|
-
-
|
|
2480
|
-
-
|
|
2481
|
-
|
|
2482
|
-
--
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
--
|
|
2486
|
-
--
|
|
2586
|
+
-B, --branch=<value> [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
2587
|
+
-a, --alias=<value> Alias(name) for the management token
|
|
2588
|
+
-c, --config=<value> Path to the config file
|
|
2589
|
+
-e, --environment=<value> Source Environment
|
|
2590
|
+
-k, --stack-api-key=<value> Stack api key to be used
|
|
2591
|
+
-l, --locale=<value> Locale filter
|
|
2592
|
+
-y, --yes Agree to process the command with the current configuration
|
|
2593
|
+
--api-version=<value> API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
2594
|
+
--bulk-unpublish=<value> [default: true] This flag is set to true by default. It indicates that contentstack's
|
|
2595
|
+
bulkpublish API will be used to unpublish the entries and assets
|
|
2596
|
+
--content-type=<value> Content type filter
|
|
2597
|
+
--delivery-token=<value> Delivery token for source environment
|
|
2598
|
+
--retry-failed=<value> Retry publishing failed entries from the logfile (optional, overrides all other flags)
|
|
2487
2599
|
|
|
2488
2600
|
DESCRIPTION
|
|
2489
2601
|
Unpublish entries or assets of given content types from the specified environment
|
|
@@ -2549,6 +2661,12 @@ EXAMPLES
|
|
|
2549
2661
|
Using --branch flag
|
|
2550
2662
|
|
|
2551
2663
|
$ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
|
|
2667
|
+
Using --stack-api-key flag
|
|
2668
|
+
|
|
2669
|
+
$ csdx cm:stacks:unpublish --bulk-unpublish --content-type [CONTENT TYPE] --environment [SOURCE ENV] --locale [LOCALE] --stack-api-key [STACK API KEY] --delivery-token [DELIVERY TOKEN]
|
|
2552
2670
|
```
|
|
2553
2671
|
|
|
2554
2672
|
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/unpublish.js)_
|
|
@@ -2689,7 +2807,7 @@ DESCRIPTION
|
|
|
2689
2807
|
Display help for csdx.
|
|
2690
2808
|
```
|
|
2691
2809
|
|
|
2692
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.
|
|
2810
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.13/src/commands/help.ts)_
|
|
2693
2811
|
|
|
2694
2812
|
## `csdx launch`
|
|
2695
2813
|
|
package/lib/help.d.ts
CHANGED
package/lib/help.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const core_1 = require("@oclif/core");
|
|
5
4
|
const figlet = tslib_1.__importStar(require("figlet"));
|
|
6
5
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
7
|
-
class MyHelpClass extends
|
|
6
|
+
class MyHelpClass extends cli_utilities_1.Help {
|
|
8
7
|
constructor(config, opts) {
|
|
9
8
|
super(config, opts);
|
|
10
9
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.11",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run"
|
|
@@ -22,26 +22,26 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-auth": "^1.3.
|
|
26
|
-
"@contentstack/cli-cm-bootstrap": "^1.4.
|
|
27
|
-
"@contentstack/cli-cm-bulk-publish": "^1.3.
|
|
28
|
-
"@contentstack/cli-cm-clone": "^1.4.
|
|
29
|
-
"@contentstack/cli-cm-export": "^1.
|
|
30
|
-
"@contentstack/cli-cm-export-to-csv": "^1.3.
|
|
31
|
-
"@contentstack/cli-cm-import": "^1.
|
|
32
|
-
"@contentstack/cli-cm-migrate-rte": "^1.4.
|
|
33
|
-
"@contentstack/cli-cm-seed": "^1.4.
|
|
34
|
-
"@contentstack/cli-command": "^1.2.
|
|
35
|
-
"@contentstack/cli-config": "^1.4.
|
|
36
|
-
"@contentstack/cli-launch": "^1.0.
|
|
37
|
-
"@contentstack/cli-migration": "^1.3.
|
|
38
|
-
"@contentstack/cli-utilities": "^1.
|
|
39
|
-
"@contentstack/management": "
|
|
40
|
-
"@contentstack/cli-cm-branches": "^1.0.
|
|
25
|
+
"@contentstack/cli-auth": "^1.3.12",
|
|
26
|
+
"@contentstack/cli-cm-bootstrap": "^1.4.13",
|
|
27
|
+
"@contentstack/cli-cm-bulk-publish": "^1.3.10",
|
|
28
|
+
"@contentstack/cli-cm-clone": "^1.4.13",
|
|
29
|
+
"@contentstack/cli-cm-export": "^1.7.0",
|
|
30
|
+
"@contentstack/cli-cm-export-to-csv": "^1.3.12",
|
|
31
|
+
"@contentstack/cli-cm-import": "^1.7.0",
|
|
32
|
+
"@contentstack/cli-cm-migrate-rte": "^1.4.10",
|
|
33
|
+
"@contentstack/cli-cm-seed": "^1.4.13",
|
|
34
|
+
"@contentstack/cli-command": "^1.2.11",
|
|
35
|
+
"@contentstack/cli-config": "^1.4.10",
|
|
36
|
+
"@contentstack/cli-launch": "^1.0.9",
|
|
37
|
+
"@contentstack/cli-migration": "^1.3.10",
|
|
38
|
+
"@contentstack/cli-utilities": "^1.5.1",
|
|
39
|
+
"@contentstack/management": "~1.10.0",
|
|
40
|
+
"@contentstack/cli-cm-branches": "^1.0.10",
|
|
41
41
|
"@oclif/plugin-help": "^5",
|
|
42
42
|
"@oclif/plugin-not-found": "^2.3.9",
|
|
43
43
|
"@oclif/plugin-plugins": "^2.1.7",
|
|
44
|
-
"@oclif/core": "^2.
|
|
44
|
+
"@oclif/core": "^2.9.3",
|
|
45
45
|
"chalk": "^4.1.2",
|
|
46
46
|
"debug": "^4.1.1",
|
|
47
47
|
"figlet": "^1.5.2",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"eslint-config-oclif": "^4.0.0",
|
|
66
66
|
"eslint-config-oclif-typescript": "^0.1.0",
|
|
67
67
|
"globby": "^10.0.2",
|
|
68
|
-
"mocha": "
|
|
68
|
+
"mocha": "10.1.0",
|
|
69
69
|
"nock": "^13.1.0",
|
|
70
70
|
"nyc": "^15.1.0",
|
|
71
71
|
"oclif": "^3.8.1",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"sinon": "^15.0.1",
|
|
75
75
|
"tmp": "^0.2.1",
|
|
76
76
|
"ts-node": "^10.9.1",
|
|
77
|
+
"tslib": "^2.4.1",
|
|
77
78
|
"typescript": "^4.9.3"
|
|
78
79
|
},
|
|
79
80
|
"engines": {
|
|
@@ -157,4 +158,4 @@
|
|
|
157
158
|
}
|
|
158
159
|
},
|
|
159
160
|
"repository": "https://github.com/contentstack/cli"
|
|
160
|
-
}
|
|
161
|
+
}
|