@contentstack/cli 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -39
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/oclif.manifest.json +1 -1
- package/package.json +20 -22
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/1.0
|
|
21
|
+
@contentstack/cli/1.2.0 darwin-arm64 node-v18.11.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -35,7 +35,7 @@ USAGE
|
|
|
35
35
|
* [`csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]`](#csdx-authtokensadd--a-value---delivery---management--e-value--k-value--y---token-value)
|
|
36
36
|
* [`csdx auth:tokens:remove`](#csdx-authtokensremove)
|
|
37
37
|
* [`csdx auth:whoami`](#csdx-authwhoami)
|
|
38
|
-
* [`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>]
|
|
38
|
+
* [`csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`](#csdx-cmassetspublish--a-value---retry-failed-value--e-value---folder-uid-value---bulk-publish-value--c-value--y---locales-value---branch-value---delivery-token-value---source-env-value)
|
|
39
39
|
* [`csdx cm:assets:unpublish`](#csdx-cmassetsunpublish)
|
|
40
40
|
* [`csdx cm:bootstrap`](#csdx-cmbootstrap)
|
|
41
41
|
* [`csdx cm:bulk-publish`](#csdx-cmbulk-publish)
|
|
@@ -97,7 +97,7 @@ EXAMPLES
|
|
|
97
97
|
$ csdx auth:login --username <username> --password <password>
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/
|
|
100
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/login.ts)_
|
|
101
101
|
|
|
102
102
|
## `csdx auth:logout`
|
|
103
103
|
|
|
@@ -124,7 +124,7 @@ EXAMPLES
|
|
|
124
124
|
$ csdx auth:logout --yes
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/
|
|
127
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/logout.ts)_
|
|
128
128
|
|
|
129
129
|
## `csdx auth:tokens`
|
|
130
130
|
|
|
@@ -156,7 +156,7 @@ EXAMPLES
|
|
|
156
156
|
$ csdx auth:tokens
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/
|
|
159
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/index.ts)_
|
|
160
160
|
|
|
161
161
|
## `csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]`
|
|
162
162
|
|
|
@@ -202,7 +202,7 @@ EXAMPLES
|
|
|
202
202
|
$ csdx auth:tokens:add --alias <alias> --stack-api-key <stack api key> --delivery -e <environment> --token <delivery token>
|
|
203
203
|
```
|
|
204
204
|
|
|
205
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/
|
|
205
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/add.ts)_
|
|
206
206
|
|
|
207
207
|
## `csdx auth:tokens:remove`
|
|
208
208
|
|
|
@@ -225,7 +225,7 @@ EXAMPLES
|
|
|
225
225
|
$ csdx auth:tokens:remove -a <alias>
|
|
226
226
|
```
|
|
227
227
|
|
|
228
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/
|
|
228
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/tokens/remove.ts)_
|
|
229
229
|
|
|
230
230
|
## `csdx auth:whoami`
|
|
231
231
|
|
|
@@ -245,9 +245,9 @@ EXAMPLES
|
|
|
245
245
|
$ csdx auth:whoami
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/
|
|
248
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/main/packages/contentstack-auth/src/commands/auth/whoami.ts)_
|
|
249
249
|
|
|
250
|
-
## `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>]
|
|
250
|
+
## `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>]`
|
|
251
251
|
|
|
252
252
|
Publish assets to the specified environments
|
|
253
253
|
|
|
@@ -255,7 +255,6 @@ Publish assets to the specified environments
|
|
|
255
255
|
USAGE
|
|
256
256
|
$ csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish
|
|
257
257
|
<value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]
|
|
258
|
-
[--content-types <value>]
|
|
259
258
|
|
|
260
259
|
FLAGS
|
|
261
260
|
-B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
|
|
@@ -267,7 +266,6 @@ FLAGS
|
|
|
267
266
|
-y, --yes Agree to process the command with the current configuration
|
|
268
267
|
--bulk-publish=<value> [default: true] By default this flag is set as true. It indicates that contentstack's
|
|
269
268
|
bulkpublish API will be used to publish the assets
|
|
270
|
-
--content-types=<value> Content types
|
|
271
269
|
--delivery-token=<value> Delivery token for source environment
|
|
272
270
|
--folder-uid=<value> [default: cs_root] Folder-uid from where the assets will be published
|
|
273
271
|
--retry-failed=<value> Retry publishing failed assets from the logfile (optional, will override all other flags)
|
|
@@ -319,7 +317,7 @@ EXAMPLES
|
|
|
319
317
|
$ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
|
|
320
318
|
```
|
|
321
319
|
|
|
322
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
320
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/publish.js)_
|
|
323
321
|
|
|
324
322
|
## `csdx cm:assets:unpublish`
|
|
325
323
|
|
|
@@ -380,7 +378,7 @@ EXAMPLES
|
|
|
380
378
|
$ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
|
|
381
379
|
```
|
|
382
380
|
|
|
383
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
381
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/assets/unpublish.js)_
|
|
384
382
|
|
|
385
383
|
## `csdx cm:bootstrap`
|
|
386
384
|
|
|
@@ -395,7 +393,8 @@ FLAGS
|
|
|
395
393
|
-k, --stack-api-key=<value> Provide stack API key to seed content
|
|
396
394
|
-n, --stack-name=<value> Name of a new stack that will be created.
|
|
397
395
|
-y, --yes=<value>
|
|
398
|
-
--app-name=<value> App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter
|
|
396
|
+
--app-name=<value> App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter,
|
|
397
|
+
vue-starter, stencil-starter
|
|
399
398
|
--org=<value> Provide organization UID to create a new stack
|
|
400
399
|
--project-dir=<value> Directory to setup the project. If directory name has a space then provide the path as a
|
|
401
400
|
string or escap the space using back slash eg: "../../test space" or ../../test\ space
|
|
@@ -415,7 +414,7 @@ EXAMPLES
|
|
|
415
414
|
$ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --org "your-org-uid" --stack-name "stack-name"
|
|
416
415
|
```
|
|
417
416
|
|
|
418
|
-
_See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/
|
|
417
|
+
_See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/main/packages/contentstack-bootstrap/src/commands/cm/bootstrap.ts)_
|
|
419
418
|
|
|
420
419
|
## `csdx cm:bulk-publish`
|
|
421
420
|
|
|
@@ -429,7 +428,7 @@ DESCRIPTION
|
|
|
429
428
|
Bulk Publish script for managing entries and assets
|
|
430
429
|
```
|
|
431
430
|
|
|
432
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
431
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
|
|
433
432
|
|
|
434
433
|
## `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]`
|
|
435
434
|
|
|
@@ -499,7 +498,7 @@ EXAMPLES
|
|
|
499
498
|
$ 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]
|
|
500
499
|
```
|
|
501
500
|
|
|
502
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
501
|
+
_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)_
|
|
503
502
|
|
|
504
503
|
## `csdx cm:entries:migrate-html-rte`
|
|
505
504
|
|
|
@@ -557,7 +556,7 @@ EXAMPLES
|
|
|
557
556
|
$ csdx cm:entries:migrate-html-rte --alias alias --content-type global_field_uid --global-field --html-path html-path --json-path json-path
|
|
558
557
|
```
|
|
559
558
|
|
|
560
|
-
_See code: [@contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli/blob/
|
|
559
|
+
_See code: [@contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli/blob/main/packages/contentstack-migrate-rte/src/commands/cm/entries/migrate-html-rte.js)_
|
|
561
560
|
|
|
562
561
|
## `csdx cm:entries:publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--publish-all-content-types] [--content-types <value>] [--locales <value>] [-e <value>] [-c <value>] [-y] [--branch <value>] [--delivery-token <value>] [--source-env <value>]`
|
|
563
562
|
|
|
@@ -638,7 +637,7 @@ EXAMPLES
|
|
|
638
637
|
$ 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]
|
|
639
638
|
```
|
|
640
639
|
|
|
641
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
640
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js)_
|
|
642
641
|
|
|
643
642
|
## `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>]`
|
|
644
643
|
|
|
@@ -708,7 +707,7 @@ EXAMPLES
|
|
|
708
707
|
$ 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]
|
|
709
708
|
```
|
|
710
709
|
|
|
711
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
710
|
+
_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)_
|
|
712
711
|
|
|
713
712
|
## `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>]`
|
|
714
713
|
|
|
@@ -774,7 +773,7 @@ EXAMPLES
|
|
|
774
773
|
$ 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]
|
|
775
774
|
```
|
|
776
775
|
|
|
777
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
776
|
+
_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)_
|
|
778
777
|
|
|
779
778
|
## `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>]`
|
|
780
779
|
|
|
@@ -842,7 +841,7 @@ EXAMPLES
|
|
|
842
841
|
$ 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]
|
|
843
842
|
```
|
|
844
843
|
|
|
845
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
844
|
+
_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)_
|
|
846
845
|
|
|
847
846
|
## `csdx cm:entries:unpublish`
|
|
848
847
|
|
|
@@ -906,7 +905,7 @@ EXAMPLES
|
|
|
906
905
|
$ 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]
|
|
907
906
|
```
|
|
908
907
|
|
|
909
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
908
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/entries/unpublish.js)_
|
|
910
909
|
|
|
911
910
|
## `csdx cm:entries:update-and-publish [-a <value>] [--retry-failed <value>] [--bulk-publish <value>] [--content-types <value>] [-t <value>] [-e <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>]`
|
|
912
911
|
|
|
@@ -973,7 +972,7 @@ EXAMPLES
|
|
|
973
972
|
$ csdx cm:entries:update-and-publish --content-types [CONTENT TYPE 1] [CONTENT TYPE 2] -e [ENVIRONMENT 1] [ENVIRONMENT 2] --locale [LOCALE 1] [LOCALE 2] -a [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
974
973
|
```
|
|
975
974
|
|
|
976
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
975
|
+
_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)_
|
|
977
976
|
|
|
978
977
|
## `csdx cm:export-to-csv`
|
|
979
978
|
|
|
@@ -1025,7 +1024,7 @@ EXAMPLES
|
|
|
1025
1024
|
$ csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>
|
|
1026
1025
|
```
|
|
1027
1026
|
|
|
1028
|
-
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/
|
|
1027
|
+
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/main/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js)_
|
|
1029
1028
|
|
|
1030
1029
|
## `csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`
|
|
1031
1030
|
|
|
@@ -1039,6 +1038,7 @@ USAGE
|
|
|
1039
1038
|
|
|
1040
1039
|
FLAGS
|
|
1041
1040
|
-n, --stack-name=<value> Name for the new stack to store the cloned content.
|
|
1041
|
+
-y, --yes [optional] Override marketplace prompts
|
|
1042
1042
|
--destination-management-token-alias=<value> Source API key of the target stack token alias.
|
|
1043
1043
|
--destination-stack-api-key=<value> Destination stack API Key
|
|
1044
1044
|
--import-webhook-status=<option> [default: disable] Webhook state
|
|
@@ -1064,7 +1064,7 @@ ALIASES
|
|
|
1064
1064
|
EXAMPLES
|
|
1065
1065
|
$ csdx cm:stacks:clone
|
|
1066
1066
|
|
|
1067
|
-
$ csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name>
|
|
1067
|
+
$ csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name> --yes
|
|
1068
1068
|
|
|
1069
1069
|
$ csdx cm:stacks:clone --source-stack-api-key <apiKey> --destination-stack-api-key <apiKey>
|
|
1070
1070
|
|
|
@@ -1075,7 +1075,7 @@ EXAMPLES
|
|
|
1075
1075
|
$ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias> --type <value a or b>
|
|
1076
1076
|
```
|
|
1077
1077
|
|
|
1078
|
-
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/
|
|
1078
|
+
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.js)_
|
|
1079
1079
|
|
|
1080
1080
|
## `csdx cm:stacks:export [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`
|
|
1081
1081
|
|
|
@@ -1118,7 +1118,7 @@ EXAMPLES
|
|
|
1118
1118
|
$ csdx cm:stacks:export --branch [optional] branch name
|
|
1119
1119
|
```
|
|
1120
1120
|
|
|
1121
|
-
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/
|
|
1121
|
+
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/stacks/export.js)_
|
|
1122
1122
|
|
|
1123
1123
|
## `csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`
|
|
1124
1124
|
|
|
@@ -1137,6 +1137,7 @@ FLAGS
|
|
|
1137
1137
|
-d, --data-dir=<value> path and location where data is stored
|
|
1138
1138
|
-k, --stack-api-key=<value> API key of the target stack
|
|
1139
1139
|
-m, --module=<value> [optional] specific module name
|
|
1140
|
+
-y, --yes [optional] Override marketplace prompts
|
|
1140
1141
|
--import-webhook-status=<option> [default: disable] Webhook state
|
|
1141
1142
|
<options: disable|current>
|
|
1142
1143
|
|
|
@@ -1166,10 +1167,10 @@ EXAMPLES
|
|
|
1166
1167
|
|
|
1167
1168
|
$ csdx cm:stacks:import --alias <management_token_alias> --config <path/of/config/file>
|
|
1168
1169
|
|
|
1169
|
-
$ csdx cm:stacks:import --branch <branch name>
|
|
1170
|
+
$ csdx cm:stacks:import --branch <branch name> --yes
|
|
1170
1171
|
```
|
|
1171
1172
|
|
|
1172
|
-
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/
|
|
1173
|
+
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/main/packages/contentstack-import/src/commands/cm/stacks/import.js)_
|
|
1173
1174
|
|
|
1174
1175
|
## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
|
|
1175
1176
|
|
|
@@ -1210,7 +1211,7 @@ EXAMPLES
|
|
|
1210
1211
|
$ csdx cm:migration --alias --file-path <migration/script/file/path> -k <api-key>
|
|
1211
1212
|
```
|
|
1212
1213
|
|
|
1213
|
-
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/
|
|
1214
|
+
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/main/packages/contentstack-migration/src/commands/cm/stacks/migration.js)_
|
|
1214
1215
|
|
|
1215
1216
|
## `csdx cm:stacks:publish`
|
|
1216
1217
|
|
|
@@ -1259,7 +1260,7 @@ EXAMPLES
|
|
|
1259
1260
|
$ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
1260
1261
|
```
|
|
1261
1262
|
|
|
1262
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
1263
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish.js)_
|
|
1263
1264
|
|
|
1264
1265
|
## `csdx cm:stacks:publish-clear-logs`
|
|
1265
1266
|
|
|
@@ -1289,7 +1290,7 @@ EXAMPLES
|
|
|
1289
1290
|
$ csdx cm:stacks:publish-clear-logs -y
|
|
1290
1291
|
```
|
|
1291
1292
|
|
|
1292
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
1293
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-clear-logs.js)_
|
|
1293
1294
|
|
|
1294
1295
|
## `csdx cm:stacks:publish-configure`
|
|
1295
1296
|
|
|
@@ -1316,7 +1317,7 @@ EXAMPLES
|
|
|
1316
1317
|
$ csdx cm:stacks:publish-configure --alias <management_token_alias>
|
|
1317
1318
|
```
|
|
1318
1319
|
|
|
1319
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
1320
|
+
_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)_
|
|
1320
1321
|
|
|
1321
1322
|
## `csdx cm:stacks:publish-revert`
|
|
1322
1323
|
|
|
@@ -1352,7 +1353,7 @@ EXAMPLES
|
|
|
1352
1353
|
cm:bulk-publish:revert --retry-failed [LOG FILE NAME]
|
|
1353
1354
|
```
|
|
1354
1355
|
|
|
1355
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
1356
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-revert.js)_
|
|
1356
1357
|
|
|
1357
1358
|
## `csdx cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>]`
|
|
1358
1359
|
|
|
@@ -1388,7 +1389,7 @@ EXAMPLES
|
|
|
1388
1389
|
$ csdx cm:stacks:seed --repo "account/repository" --org "your-org-uid" --stack-name "stack-name" //create a new stack in given org uid
|
|
1389
1390
|
```
|
|
1390
1391
|
|
|
1391
|
-
_See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/
|
|
1392
|
+
_See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/main/packages/contentstack-seed/src/commands/cm/stacks/seed.ts)_
|
|
1392
1393
|
|
|
1393
1394
|
## `csdx csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>] [--only-assets] [--only-entries]`
|
|
1394
1395
|
|
|
@@ -1482,7 +1483,7 @@ EXAMPLES
|
|
|
1482
1483
|
$ 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]
|
|
1483
1484
|
```
|
|
1484
1485
|
|
|
1485
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/
|
|
1486
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/main/packages/contentstack-bulk-publish/src/commands/cm/stacks/unpublish.js)_
|
|
1486
1487
|
|
|
1487
1488
|
## `csdx config:get:region`
|
|
1488
1489
|
|
|
@@ -1499,7 +1500,7 @@ EXAMPLES
|
|
|
1499
1500
|
$ csdx config:get:region
|
|
1500
1501
|
```
|
|
1501
1502
|
|
|
1502
|
-
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/
|
|
1503
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/get/region.ts)_
|
|
1503
1504
|
|
|
1504
1505
|
## `csdx config:set:region [REGION]`
|
|
1505
1506
|
|
|
@@ -1529,7 +1530,7 @@ EXAMPLES
|
|
|
1529
1530
|
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name "India"
|
|
1530
1531
|
```
|
|
1531
1532
|
|
|
1532
|
-
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/
|
|
1533
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
|
|
1533
1534
|
|
|
1534
1535
|
## `csdx plugins`
|
|
1535
1536
|
|
package/bin/dev
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const oclif = require('@oclif/core')
|
|
4
|
+
|
|
5
|
+
const path = require('path')
|
|
6
|
+
const project = path.join(__dirname, '..', 'tsconfig.json')
|
|
7
|
+
|
|
8
|
+
// In dev mode -> use ts-node and dev plugins
|
|
9
|
+
process.env.NODE_ENV = 'development'
|
|
10
|
+
|
|
11
|
+
require('ts-node').register({project})
|
|
12
|
+
|
|
13
|
+
// In dev mode, always show stack traces
|
|
14
|
+
oclif.settings.debug = true;
|
|
15
|
+
|
|
16
|
+
// Start the CLI
|
|
17
|
+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
|
package/bin/dev.cmd
ADDED
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0
|
|
1
|
+
{"version":"1.2.0","commands":{}}
|
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.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run"
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"lint": "eslint src/**/*.ts"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@contentstack/cli-auth": "^1.0.
|
|
25
|
-
"@contentstack/cli-cm-bootstrap": "^1.1.
|
|
26
|
-
"@contentstack/cli-cm-bulk-publish": "^1.0.
|
|
27
|
-
"@contentstack/cli-cm-clone": "^1.
|
|
28
|
-
"@contentstack/cli-cm-export": "^1.
|
|
29
|
-
"@contentstack/cli-cm-export-to-csv": "^1.0.
|
|
30
|
-
"@contentstack/cli-cm-import": "^1.0
|
|
31
|
-
"@contentstack/cli-cm-migrate-rte": "^1.1.
|
|
32
|
-
"@contentstack/cli-cm-seed": "^1.1.
|
|
33
|
-
"@contentstack/cli-command": "^1.0.
|
|
34
|
-
"@contentstack/cli-config": "^1.0.
|
|
35
|
-
"@contentstack/cli-migration": "^1.0.
|
|
36
|
-
"@contentstack/cli-utilities": "^1.0.
|
|
24
|
+
"@contentstack/cli-auth": "^1.0.3",
|
|
25
|
+
"@contentstack/cli-cm-bootstrap": "^1.1.3",
|
|
26
|
+
"@contentstack/cli-cm-bulk-publish": "^1.0.2",
|
|
27
|
+
"@contentstack/cli-cm-clone": "^1.1.2",
|
|
28
|
+
"@contentstack/cli-cm-export": "^1.2.0",
|
|
29
|
+
"@contentstack/cli-cm-export-to-csv": "^1.0.2",
|
|
30
|
+
"@contentstack/cli-cm-import": "^1.2.0",
|
|
31
|
+
"@contentstack/cli-cm-migrate-rte": "^1.1.3",
|
|
32
|
+
"@contentstack/cli-cm-seed": "^1.1.3",
|
|
33
|
+
"@contentstack/cli-command": "^1.0.2",
|
|
34
|
+
"@contentstack/cli-config": "^1.0.2",
|
|
35
|
+
"@contentstack/cli-migration": "^1.0.2",
|
|
36
|
+
"@contentstack/cli-utilities": "^1.0.3",
|
|
37
37
|
"@contentstack/management": "^1.3.0",
|
|
38
38
|
"@oclif/command": "^1.8.16",
|
|
39
39
|
"@oclif/config": "^1.18.3",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@oclif/errors": "^1.3.3",
|
|
42
42
|
"@oclif/plugin-not-found": "^2.3.1",
|
|
43
43
|
"@oclif/plugin-plugins": "^2.1.0",
|
|
44
|
-
"chalk": "^
|
|
44
|
+
"chalk": "^5.0.1",
|
|
45
45
|
"debug": "^4.1.1",
|
|
46
46
|
"figlet": "^1.5.2",
|
|
47
|
-
"inquirer": "^
|
|
47
|
+
"inquirer": "^8.2.4",
|
|
48
48
|
"uuid": "^8.3.2",
|
|
49
49
|
"winston": "^3.7.2"
|
|
50
50
|
},
|
|
@@ -56,11 +56,9 @@
|
|
|
56
56
|
"@types/inquirer": "^7.3.1",
|
|
57
57
|
"@types/mkdirp": "^1.0.1",
|
|
58
58
|
"@types/mocha": "^8.2.2",
|
|
59
|
-
"@types/nock": "^11.1.0",
|
|
60
59
|
"@types/node": "^14.14.32",
|
|
61
60
|
"@types/sinon": "^10.0.2",
|
|
62
61
|
"@types/tar": "^4.0.3",
|
|
63
|
-
"@types/winston": "^2.4.4",
|
|
64
62
|
"chai": "^4.3.4",
|
|
65
63
|
"eslint": "^8.18.0",
|
|
66
64
|
"eslint-config-oclif": "^3.1.0",
|
|
@@ -70,11 +68,11 @@
|
|
|
70
68
|
"nock": "^13.1.0",
|
|
71
69
|
"nyc": "^15.1.0",
|
|
72
70
|
"rimraf": "^2.7.1",
|
|
71
|
+
"shelljs": "^0.8.4",
|
|
73
72
|
"sinon": "^11.1.1",
|
|
74
73
|
"tmp": "^0.2.1",
|
|
75
|
-
"ts-node": "^
|
|
76
|
-
"typescript": "^4.7.4"
|
|
77
|
-
"shelljs": "^0.8.4"
|
|
74
|
+
"ts-node": "^10.9.1",
|
|
75
|
+
"typescript": "^4.7.4"
|
|
78
76
|
},
|
|
79
77
|
"engines": {
|
|
80
78
|
"node": ">=8.0.0"
|
|
@@ -146,4 +144,4 @@
|
|
|
146
144
|
}
|
|
147
145
|
},
|
|
148
146
|
"repository": "https://github.com/contentstack/cli"
|
|
149
|
-
}
|
|
147
|
+
}
|