@contentstack/cli 1.0.3 → 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 CHANGED
@@ -5,6 +5,7 @@ Use Contentstack Command-line Interface to command Contentstack for executing a
5
5
  [![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)
6
6
 
7
7
  <!-- toc -->
8
+ * [@contentstack/cli](#contentstackcli)
8
9
  * [Usage](#usage)
9
10
  * [Commands](#commands)
10
11
  <!-- tocstop -->
@@ -17,7 +18,7 @@ $ npm install -g @contentstack/cli
17
18
  $ csdx COMMAND
18
19
  running command...
19
20
  $ csdx (-v|--version|version)
20
- @contentstack/cli/1.0.2 linux-x64 node-v16.15.1
21
+ @contentstack/cli/1.1.0 darwin-arm64 node-v16.17.0
21
22
  $ csdx --help [COMMAND]
22
23
  USAGE
23
24
  $ csdx COMMAND
@@ -34,7 +35,7 @@ USAGE
34
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)
35
36
  * [`csdx auth:tokens:remove`](#csdx-authtokensremove)
36
37
  * [`csdx auth:whoami`](#csdx-authwhoami)
37
- * [`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>] [--content-types <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---content-types-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)
38
39
  * [`csdx cm:assets:unpublish`](#csdx-cmassetsunpublish)
39
40
  * [`csdx cm:bootstrap`](#csdx-cmbootstrap)
40
41
  * [`csdx cm:bulk-publish`](#csdx-cmbulk-publish)
@@ -96,7 +97,7 @@ EXAMPLES
96
97
  $ csdx auth:login --username <username> --password <password>
97
98
  ```
98
99
 
99
- _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/auth/login.ts)_
100
+ _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/src/commands/auth/login.ts)_
100
101
 
101
102
  ## `csdx auth:logout`
102
103
 
@@ -123,7 +124,7 @@ EXAMPLES
123
124
  $ csdx auth:logout --yes
124
125
  ```
125
126
 
126
- _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/auth/logout.ts)_
127
+ _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/src/commands/auth/logout.ts)_
127
128
 
128
129
  ## `csdx auth:tokens`
129
130
 
@@ -155,7 +156,7 @@ EXAMPLES
155
156
  $ csdx auth:tokens
156
157
  ```
157
158
 
158
- _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/auth/tokens/index.ts)_
159
+ _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/src/commands/auth/tokens/index.ts)_
159
160
 
160
161
  ## `csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]`
161
162
 
@@ -201,7 +202,7 @@ EXAMPLES
201
202
  $ csdx auth:tokens:add --alias <alias> --stack-api-key <stack api key> --delivery -e <environment> --token <delivery token>
202
203
  ```
203
204
 
204
- _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/auth/tokens/add.ts)_
205
+ _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/src/commands/auth/tokens/add.ts)_
205
206
 
206
207
  ## `csdx auth:tokens:remove`
207
208
 
@@ -224,7 +225,7 @@ EXAMPLES
224
225
  $ csdx auth:tokens:remove -a <alias>
225
226
  ```
226
227
 
227
- _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/auth/tokens/remove.ts)_
228
+ _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/src/commands/auth/tokens/remove.ts)_
228
229
 
229
230
  ## `csdx auth:whoami`
230
231
 
@@ -244,9 +245,9 @@ EXAMPLES
244
245
  $ csdx auth:whoami
245
246
  ```
246
247
 
247
- _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/auth/whoami.ts)_
248
+ _See code: [@contentstack/cli-auth](https://github.com/contentstack/cli/blob/v1.0.2/src/commands/auth/whoami.ts)_
248
249
 
249
- ## `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>] [--content-types <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>]`
250
251
 
251
252
  Publish assets to the specified environments
252
253
 
@@ -254,7 +255,6 @@ Publish assets to the specified environments
254
255
  USAGE
255
256
  $ csdx cm:assets:publish [-a <value>] [--retry-failed <value>] [-e <value>] [--folder-uid <value>] [--bulk-publish
256
257
  <value>] [-c <value>] [-y] [--locales <value>] [--branch <value>] [--delivery-token <value>] [--source-env <value>]
257
- [--content-types <value>]
258
258
 
259
259
  FLAGS
260
260
  -B, --branch=<value> [default: main] Specify the branch to fetch the content (by default the main branch is
@@ -266,7 +266,6 @@ FLAGS
266
266
  -y, --yes Agree to process the command with the current configuration
267
267
  --bulk-publish=<value> [default: true] By default this flag is set as true. It indicates that contentstack's
268
268
  bulkpublish API will be used to publish the assets
269
- --content-types=<value> Content types
270
269
  --delivery-token=<value> Delivery token for source environment
271
270
  --folder-uid=<value> [default: cs_root] Folder-uid from where the assets will be published
272
271
  --retry-failed=<value> Retry publishing failed assets from the logfile (optional, will override all other flags)
@@ -318,7 +317,7 @@ EXAMPLES
318
317
  $ csdx cm:assets:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --source-env [SOURCE ENVIRONMENT] --delivery-token [DELIVERY TOKEN]
319
318
  ```
320
319
 
321
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/assets/publish.js)_
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)_
322
321
 
323
322
  ## `csdx cm:assets:unpublish`
324
323
 
@@ -379,7 +378,7 @@ EXAMPLES
379
378
  $ csdx cm:assets:unpublish --bulk-unpublish --environment [SOURCE ENV] --locale [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --delivery-token [DELIVERY TOKEN] --branch [BRANCH NAME]
380
379
  ```
381
380
 
382
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/assets/unpublish.js)_
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)_
383
382
 
384
383
  ## `csdx cm:bootstrap`
385
384
 
@@ -394,7 +393,8 @@ FLAGS
394
393
  -k, --stack-api-key=<value> Provide stack API key to seed content
395
394
  -n, --stack-name=<value> Name of a new stack that will be created.
396
395
  -y, --yes=<value>
397
- --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
398
398
  --org=<value> Provide organization UID to create a new stack
399
399
  --project-dir=<value> Directory to setup the project. If directory name has a space then provide the path as a
400
400
  string or escap the space using back slash eg: "../../test space" or ../../test\ space
@@ -414,7 +414,7 @@ EXAMPLES
414
414
  $ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --org "your-org-uid" --stack-name "stack-name"
415
415
  ```
416
416
 
417
- _See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/v1.1.0/src/commands/cm/bootstrap.ts)_
417
+ _See code: [@contentstack/cli-cm-bootstrap](https://github.com/contentstack/cli/blob/v1.1.1/src/commands/cm/bootstrap.ts)_
418
418
 
419
419
  ## `csdx cm:bulk-publish`
420
420
 
@@ -428,7 +428,7 @@ DESCRIPTION
428
428
  Bulk Publish script for managing entries and assets
429
429
  ```
430
430
 
431
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/index.js)_
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)_
432
432
 
433
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]`
434
434
 
@@ -498,7 +498,7 @@ EXAMPLES
498
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]
499
499
  ```
500
500
 
501
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/bulk-publish/cross-publish.js)_
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)_
502
502
 
503
503
  ## `csdx cm:entries:migrate-html-rte`
504
504
 
@@ -556,7 +556,7 @@ EXAMPLES
556
556
  $ csdx cm:entries:migrate-html-rte --alias alias --content-type global_field_uid --global-field --html-path html-path --json-path json-path
557
557
  ```
558
558
 
559
- _See code: [@contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli/blob/v1.1.1/src/commands/cm/entries/migrate-html-rte.js)_
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)_
560
560
 
561
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>]`
562
562
 
@@ -637,7 +637,7 @@ EXAMPLES
637
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]
638
638
  ```
639
639
 
640
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/entries/publish.js)_
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)_
641
641
 
642
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>]`
643
643
 
@@ -707,7 +707,7 @@ EXAMPLES
707
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]
708
708
  ```
709
709
 
710
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-modified.js)_
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)_
711
711
 
712
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>]`
713
713
 
@@ -773,7 +773,7 @@ EXAMPLES
773
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]
774
774
  ```
775
775
 
776
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-non-localized-fields.js)_
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)_
777
777
 
778
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>]`
779
779
 
@@ -841,7 +841,7 @@ EXAMPLES
841
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]
842
842
  ```
843
843
 
844
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/entries/publish-only-unpublished.js)_
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)_
845
845
 
846
846
  ## `csdx cm:entries:unpublish`
847
847
 
@@ -905,7 +905,7 @@ EXAMPLES
905
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]
906
906
  ```
907
907
 
908
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/entries/unpublish.js)_
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)_
909
909
 
910
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>]`
911
911
 
@@ -972,7 +972,7 @@ EXAMPLES
972
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]
973
973
  ```
974
974
 
975
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/entries/update-and-publish.js)_
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)_
976
976
 
977
977
  ## `csdx cm:export-to-csv`
978
978
 
@@ -1024,7 +1024,7 @@ EXAMPLES
1024
1024
  $ csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>
1025
1025
  ```
1026
1026
 
1027
- _See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/cm/export-to-csv.js)_
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)_
1028
1028
 
1029
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]`
1030
1030
 
@@ -1042,6 +1042,7 @@ FLAGS
1042
1042
  --destination-stack-api-key=<value> Destination stack API Key
1043
1043
  --import-webhook-status=<option> [default: disable] Webhook state
1044
1044
  <options: disable|current>
1045
+ --master-locale=<value> Master language for stack clone
1045
1046
  --source-branch=<value> Branch of the source stack.
1046
1047
  --source-management-token-alias=<value> Source API key of the target stack token alias.
1047
1048
  --source-stack-api-key=<value> Source stack API Key
@@ -1074,7 +1075,7 @@ EXAMPLES
1074
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>
1075
1076
  ```
1076
1077
 
1077
- _See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/cm/stacks/clone.js)_
1078
+ _See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/v1.1.0/src/commands/cm/stacks/clone.js)_
1078
1079
 
1079
1080
  ## `csdx cm:stacks:export [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`
1080
1081
 
@@ -1117,7 +1118,7 @@ EXAMPLES
1117
1118
  $ csdx cm:stacks:export --branch [optional] branch name
1118
1119
  ```
1119
1120
 
1120
- _See code: [@contentstack/cli-cm-export](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-export/src/commands/cm/stacks/export.js)_
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)_
1121
1122
 
1122
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]`
1123
1124
 
@@ -1168,7 +1169,7 @@ EXAMPLES
1168
1169
  $ csdx cm:stacks:import --branch <branch name>
1169
1170
  ```
1170
1171
 
1171
- _See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-import/src/commands/cm/stacks/import.js)_
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)_
1172
1173
 
1173
1174
  ## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
1174
1175
 
@@ -1209,7 +1210,7 @@ EXAMPLES
1209
1210
  $ csdx cm:migration --alias --file-path <migration/script/file/path> -k <api-key>
1210
1211
  ```
1211
1212
 
1212
- _See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/v1.0.0/src/commands/cm/stacks/migration.js)_
1213
+ _See code: [@contentstack/cli-migration](https://github.com/contentstack/cli-migration/blob/v1.0.1/src/commands/cm/stacks/migration.js)_
1213
1214
 
1214
1215
  ## `csdx cm:stacks:publish`
1215
1216
 
@@ -1258,7 +1259,7 @@ EXAMPLES
1258
1259
  $ csdx cm:stacks:publish --environments [ENVIRONMENT 1] [ENVIRONMENT 2] --locales [LOCALE] --alias [MANAGEMENT TOKEN ALIAS] --branch [BRANCH NAME]
1259
1260
  ```
1260
1261
 
1261
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish.js)_
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)_
1262
1263
 
1263
1264
  ## `csdx cm:stacks:publish-clear-logs`
1264
1265
 
@@ -1288,7 +1289,7 @@ EXAMPLES
1288
1289
  $ csdx cm:stacks:publish-clear-logs -y
1289
1290
  ```
1290
1291
 
1291
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-clear-logs.js)_
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)_
1292
1293
 
1293
1294
  ## `csdx cm:stacks:publish-configure`
1294
1295
 
@@ -1315,7 +1316,7 @@ EXAMPLES
1315
1316
  $ csdx cm:stacks:publish-configure --alias <management_token_alias>
1316
1317
  ```
1317
1318
 
1318
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-configure.js)_
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)_
1319
1320
 
1320
1321
  ## `csdx cm:stacks:publish-revert`
1321
1322
 
@@ -1351,7 +1352,7 @@ EXAMPLES
1351
1352
  cm:bulk-publish:revert --retry-failed [LOG FILE NAME]
1352
1353
  ```
1353
1354
 
1354
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/stacks/publish-revert.js)_
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)_
1355
1356
 
1356
1357
  ## `csdx cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>]`
1357
1358
 
@@ -1387,7 +1388,7 @@ EXAMPLES
1387
1388
  $ csdx cm:stacks:seed --repo "account/repository" --org "your-org-uid" --stack-name "stack-name" //create a new stack in given org uid
1388
1389
  ```
1389
1390
 
1390
- _See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/v1.1.0/src/commands/cm/stacks/seed.ts)_
1391
+ _See code: [@contentstack/cli-cm-seed](https://github.com/contentstack/cli/blob/v1.1.1/src/commands/cm/stacks/seed.ts)_
1391
1392
 
1392
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]`
1393
1394
 
@@ -1481,7 +1482,7 @@ EXAMPLES
1481
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]
1482
1483
  ```
1483
1484
 
1484
- _See code: [@contentstack/cli-cm-bulk-publish](https://github.com/contentstack/cli/blob/v1.0.0/packages/contentstack-bulk-publish/src/commands/cm/stacks/unpublish.js)_
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)_
1485
1486
 
1486
1487
  ## `csdx config:get:region`
1487
1488
 
@@ -1498,7 +1499,7 @@ EXAMPLES
1498
1499
  $ csdx config:get:region
1499
1500
  ```
1500
1501
 
1501
- _See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/config/get/region.ts)_
1502
+ _See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.1/src/commands/config/get/region.ts)_
1502
1503
 
1503
1504
  ## `csdx config:set:region [REGION]`
1504
1505
 
@@ -1528,7 +1529,7 @@ EXAMPLES
1528
1529
  $ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name "India"
1529
1530
  ```
1530
1531
 
1531
- _See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.0/src/commands/config/set/region.ts)_
1532
+ _See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/v1.0.1/src/commands/config/set/region.ts)_
1532
1533
 
1533
1534
  ## `csdx plugins`
1534
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
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\dev" %*
@@ -1 +1 @@
1
- {"version":"1.0.3","commands":{}}
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.3",
4
+ "version": "1.1.0",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run"
@@ -12,8 +12,8 @@
12
12
  "clean": "rm -rf ./lib && rm -rf tsconfig.build.tsbuildinfo",
13
13
  "compile": "tsc -b tsconfig.json",
14
14
  "postpack": "rm -f oclif.manifest.json",
15
- "prepack": "npm run build && oclif-dev manifest",
16
- "version": "oclif-dev readme",
15
+ "prepack": "npm run build && oclif-dev manifest && oclif-dev readme",
16
+ "version": "oclif-dev readme && git add README.md",
17
17
  "test:report": "tsc -p test && nyc --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
18
18
  "pretest": "tsc -p test",
19
19
  "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
@@ -21,19 +21,19 @@
21
21
  "lint": "eslint src/**/*.ts"
22
22
  },
23
23
  "dependencies": {
24
- "@contentstack/cli-auth": "^1.0.0",
25
- "@contentstack/cli-cm-bootstrap": "^1.1.0",
26
- "@contentstack/cli-cm-bulk-publish": "^1.0.0",
27
- "@contentstack/cli-cm-clone": "^1.0.0",
28
- "@contentstack/cli-cm-export": "^1.0.0",
29
- "@contentstack/cli-cm-export-to-csv": "^1.0.0",
30
- "@contentstack/cli-cm-import": "^1.0.0",
31
- "@contentstack/cli-cm-migrate-rte": "^1.1.0",
32
- "@contentstack/cli-cm-seed": "^1.1.0",
33
- "@contentstack/cli-command": "^1.0.0",
34
- "@contentstack/cli-config": "^1.0.0",
35
- "@contentstack/cli-migration": "^1.0.0",
36
- "@contentstack/cli-utilities": "^1.0.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": "^8.10.2",
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"
@@ -145,10 +145,5 @@
145
145
  ]
146
146
  }
147
147
  },
148
- "repository": "https://github.com/contentstack/cli",
149
- "husky": {
150
- "hooks": {
151
- "pre-commit": "npm run lint"
152
- }
153
- }
154
- }
148
+ "repository": "https://github.com/contentstack/cli"
149
+ }