@contentstack/cli 1.0.4 → 1.1.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 +37 -37
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/oclif.manifest.json +1 -1
- package/package.json +18 -18
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.1.0 darwin-arm64 node-v16.17.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/v1.0.
|
|
100
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/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/v1.0.
|
|
127
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/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/v1.0.
|
|
159
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/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/v1.0.
|
|
205
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/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/v1.0.
|
|
228
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/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/v1.0.
|
|
248
|
+
_See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/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/v1.0.
|
|
320
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
381
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.1.
|
|
417
|
+
_See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/v1.1.1/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/v1.0.
|
|
431
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
501
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.1.
|
|
559
|
+
_See code: [@contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli/blob/v1.1.2/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/v1.0.
|
|
640
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
710
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
776
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
844
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
908
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
975
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/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/v1.0.
|
|
1027
|
+
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/v1.0.1/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
|
|
|
@@ -1043,6 +1042,7 @@ FLAGS
|
|
|
1043
1042
|
--destination-stack-api-key=<value> Destination stack API Key
|
|
1044
1043
|
--import-webhook-status=<option> [default: disable] Webhook state
|
|
1045
1044
|
<options: disable|current>
|
|
1045
|
+
--master-locale=<value> Master language for stack clone
|
|
1046
1046
|
--source-branch=<value> Branch of the source stack.
|
|
1047
1047
|
--source-management-token-alias=<value> Source API key of the target stack token alias.
|
|
1048
1048
|
--source-stack-api-key=<value> Source stack API Key
|
|
@@ -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/v1.
|
|
1078
|
+
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/v1.1.0/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/v1.
|
|
1121
|
+
_See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/v1.1.0/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
|
|
|
@@ -1169,7 +1169,7 @@ EXAMPLES
|
|
|
1169
1169
|
$ csdx cm:stacks:import --branch <branch name>
|
|
1170
1170
|
```
|
|
1171
1171
|
|
|
1172
|
-
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/v1.0
|
|
1172
|
+
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/v1.1.0/packages/contentstack-import/src/commands/cm/stacks/import.js)_
|
|
1173
1173
|
|
|
1174
1174
|
## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
|
|
1175
1175
|
|
|
@@ -1210,7 +1210,7 @@ EXAMPLES
|
|
|
1210
1210
|
$ csdx cm:migration --alias --file-path <migration/script/file/path> -k <api-key>
|
|
1211
1211
|
```
|
|
1212
1212
|
|
|
1213
|
-
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/v1.0.
|
|
1213
|
+
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/v1.0.1/src/commands/cm/stacks/migration.js)_
|
|
1214
1214
|
|
|
1215
1215
|
## `csdx cm:stacks:publish`
|
|
1216
1216
|
|
|
@@ -1259,7 +1259,7 @@ EXAMPLES
|
|
|
1259
1259
|
$ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
|
|
1260
1260
|
```
|
|
1261
1261
|
|
|
1262
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.
|
|
1262
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish.js)_
|
|
1263
1263
|
|
|
1264
1264
|
## `csdx cm:stacks:publish-clear-logs`
|
|
1265
1265
|
|
|
@@ -1289,7 +1289,7 @@ EXAMPLES
|
|
|
1289
1289
|
$ csdx cm:stacks:publish-clear-logs -y
|
|
1290
1290
|
```
|
|
1291
1291
|
|
|
1292
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.
|
|
1292
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-clear-logs.js)_
|
|
1293
1293
|
|
|
1294
1294
|
## `csdx cm:stacks:publish-configure`
|
|
1295
1295
|
|
|
@@ -1316,7 +1316,7 @@ EXAMPLES
|
|
|
1316
1316
|
$ csdx cm:stacks:publish-configure --alias <management_token_alias>
|
|
1317
1317
|
```
|
|
1318
1318
|
|
|
1319
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.
|
|
1319
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-configure.js)_
|
|
1320
1320
|
|
|
1321
1321
|
## `csdx cm:stacks:publish-revert`
|
|
1322
1322
|
|
|
@@ -1352,7 +1352,7 @@ EXAMPLES
|
|
|
1352
1352
|
cm:bulk-publish:revert --retry-failed [LOG FILE NAME]
|
|
1353
1353
|
```
|
|
1354
1354
|
|
|
1355
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.
|
|
1355
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-revert.js)_
|
|
1356
1356
|
|
|
1357
1357
|
## `csdx cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>]`
|
|
1358
1358
|
|
|
@@ -1388,7 +1388,7 @@ EXAMPLES
|
|
|
1388
1388
|
$ csdx cm:stacks:seed --repo "account/repository" --org "your-org-uid" --stack-name "stack-name" //create a new stack in given org uid
|
|
1389
1389
|
```
|
|
1390
1390
|
|
|
1391
|
-
_See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/v1.1.
|
|
1391
|
+
_See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/v1.1.1/src/commands/cm/stacks/seed.ts)_
|
|
1392
1392
|
|
|
1393
1393
|
## `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
1394
|
|
|
@@ -1482,7 +1482,7 @@ EXAMPLES
|
|
|
1482
1482
|
$ 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
1483
|
```
|
|
1484
1484
|
|
|
1485
|
-
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.
|
|
1485
|
+
_See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.1/packages/contentstack-bulk-publish/src/commands/cm/stacks/unpublish.js)_
|
|
1486
1486
|
|
|
1487
1487
|
## `csdx config:get:region`
|
|
1488
1488
|
|
|
@@ -1499,7 +1499,7 @@ EXAMPLES
|
|
|
1499
1499
|
$ csdx config:get:region
|
|
1500
1500
|
```
|
|
1501
1501
|
|
|
1502
|
-
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.
|
|
1502
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.1/src/commands/config/get/region.ts)_
|
|
1503
1503
|
|
|
1504
1504
|
## `csdx config:set:region [REGION]`
|
|
1505
1505
|
|
|
@@ -1529,7 +1529,7 @@ EXAMPLES
|
|
|
1529
1529
|
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name "India"
|
|
1530
1530
|
```
|
|
1531
1531
|
|
|
1532
|
-
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.
|
|
1532
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.1/src/commands/config/set/region.ts)_
|
|
1533
1533
|
|
|
1534
1534
|
## `csdx plugins`
|
|
1535
1535
|
|
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.1.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.1.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.2",
|
|
25
|
+
"@contentstack/cli-cm-bootstrap": "^1.1.1",
|
|
26
|
+
"@contentstack/cli-cm-bulk-publish": "^1.0.1",
|
|
27
|
+
"@contentstack/cli-cm-clone": "^1.1.0",
|
|
28
|
+
"@contentstack/cli-cm-export": "^1.1.0",
|
|
29
|
+
"@contentstack/cli-cm-export-to-csv": "^1.0.1",
|
|
30
|
+
"@contentstack/cli-cm-import": "^1.1.0",
|
|
31
|
+
"@contentstack/cli-cm-migrate-rte": "^1.1.2",
|
|
32
|
+
"@contentstack/cli-cm-seed": "^1.1.1",
|
|
33
|
+
"@contentstack/cli-command": "^1.0.1",
|
|
34
|
+
"@contentstack/cli-config": "^1.0.1",
|
|
35
|
+
"@contentstack/cli-migration": "^1.0.1",
|
|
36
|
+
"@contentstack/cli-utilities": "^1.0.2",
|
|
37
37
|
"@contentstack/management": "^1.3.0",
|
|
38
38
|
"@oclif/command": "^1.8.16",
|
|
39
39
|
"@oclif/config": "^1.18.3",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"nock": "^13.1.0",
|
|
71
71
|
"nyc": "^15.1.0",
|
|
72
72
|
"rimraf": "^2.7.1",
|
|
73
|
+
"shelljs": "^0.8.4",
|
|
73
74
|
"sinon": "^11.1.1",
|
|
74
75
|
"tmp": "^0.2.1",
|
|
75
|
-
"ts-node": "^
|
|
76
|
-
"typescript": "^4.7.4"
|
|
77
|
-
"shelljs": "^0.8.4"
|
|
76
|
+
"ts-node": "^10.9.1",
|
|
77
|
+
"typescript": "^4.7.4"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=8.0.0"
|
|
@@ -146,4 +146,4 @@
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
"repository": "https://github.com/contentstack/cli"
|
|
149
|
-
}
|
|
149
|
+
}
|