@contentstack/cli 1.2.2 → 1.2.4

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
@@ -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.2.2 darwin-arm64 node-v18.11.0
21
+ @contentstack/cli/1.2.4 linux-x64 node-v16.18.1
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -273,13 +273,12 @@ FLAGS
273
273
 
274
274
  DESCRIPTION
275
275
  Publish assets to the specified environments
276
-
277
276
  The assets command is used to publish assets from the specified stack, to the specified environments
278
277
 
279
278
  Note: Environment(s) and Locale(s) are required to execute the command successfully
280
-
281
279
  But, if retryFailed flag is set, then only a logfile is required
282
280
 
281
+
283
282
  ALIASES
284
283
  $ csdx cm:bulk-publish:assets
285
284
 
@@ -343,11 +342,9 @@ FLAGS
343
342
 
344
343
  DESCRIPTION
345
344
  Unpublish assets from given environment
346
-
347
345
  The unpublish command is used for unpublishing assets from the given environment
348
346
 
349
347
  Note: Environment (Source Environment) and Locale are required to execute the command successfully
350
-
351
348
  But, if retry-failed flag is set, then only a logfile is required
352
349
 
353
350
  EXAMPLES
@@ -392,7 +389,7 @@ USAGE
392
389
  FLAGS
393
390
  -k, --stack-api-key=<value> Provide stack API key to seed content
394
391
  -n, --stack-name=<value> Name of a new stack that will be created.
395
- -y, --yes=<value>
392
+ -y, --yes=<value> [Optional] Skip stack confirmation
396
393
  --app-name=<value> App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter,
397
394
  vue-starter, stencil-starter
398
395
  --org=<value> Provide organization UID to create a new stack
@@ -460,14 +457,13 @@ FLAGS
460
457
 
461
458
  DESCRIPTION
462
459
  Publish entries and assets from one environment to other environments
463
-
464
460
  The cross-publish command is used to publish entries and assets from one environment to other environments
465
461
 
466
462
  Note: Content Type, Environment, Destination Environment(s) and Locale are required to execute the command
467
463
  successfully
468
-
469
464
  But, if retryFailed flag is set, then only a logfile is required
470
465
 
466
+
471
467
  EXAMPLES
472
468
  General Usage
473
469
 
@@ -589,15 +585,13 @@ FLAGS
589
585
 
590
586
  DESCRIPTION
591
587
  Publish entries from multiple contenttypes to multiple environments and locales
592
-
593
588
  The publish command is used to publish entries from the specified content types, to the
594
-
595
589
  specified environments and locales
596
590
 
597
591
  Note: Content Types, Environments and Locales are required to execute the command successfully
598
-
599
592
  But, if retry-failed flag is set, then only a logfile is required
600
593
 
594
+
601
595
  ALIASES
602
596
  $ csdx cm:bulk-publish:entries
603
597
 
@@ -664,16 +658,14 @@ FLAGS
664
658
 
665
659
  DESCRIPTION
666
660
  Publish edited entries from a specified content type to the given locales and environments
667
-
668
661
  The publish-modified command is used to publish entries from the specified content types, to the
669
-
670
662
  specified environments and locales
671
663
 
672
664
  Note: Content type(s), Source Environment, Destination Environment(s) and Locale(s) are required to execute the
673
665
  command successfully
674
-
675
666
  But, if retry-failed flag is set, then only a logfile is required
676
667
 
668
+
677
669
  ALIASES
678
670
  $ csdx cm:bulk-publish:entry-edits
679
671
 
@@ -734,12 +726,10 @@ FLAGS
734
726
  DESCRIPTION
735
727
  Publish non-localized fields for the given content types, from a particular source environment to the specified
736
728
  environments
737
-
738
729
  The non-localized field changes command is used to publish non-localized field changes from the given content types to
739
730
  the specified environments
740
731
 
741
732
  Note: Content types, Environments and Source Environment are required to execute this command successfully.
742
-
743
733
  But, if retryFailed flag is set, then only a logfile is required
744
734
 
745
735
  ALIASES
@@ -801,15 +791,14 @@ FLAGS
801
791
 
802
792
  DESCRIPTION
803
793
  Publish unpublished entries from the source environment, to other environments and locales
804
-
805
794
  The publish-only-unpublished command is used to publish unpublished entries from the source environment, to other
806
795
  environments and locales
807
796
 
808
797
  Note: Content type(s), Source Environment, Destination Environment(s) and Source Locale are required to execute the
809
798
  command successfully
810
-
811
799
  But, if retry-failed flag is set, then only a logfile is required
812
800
 
801
+
813
802
  ALIASES
814
803
  $ csdx cm:bulk-publish:unpublished-entries
815
804
 
@@ -868,11 +857,9 @@ FLAGS
868
857
 
869
858
  DESCRIPTION
870
859
  Unpublish entries from the given environment
871
-
872
860
  The unpublish command is used to unpublish entries from the given environment
873
861
 
874
862
  Note: Environment (Source Environment) and Locale are required to execute the command successfully
875
-
876
863
  But, if retry-failed flag is set, then only a logfile is required
877
864
 
878
865
  EXAMPLES
@@ -933,14 +920,13 @@ FLAGS
933
920
 
934
921
  DESCRIPTION
935
922
  Add fields from updated content types to their respective entries
936
-
937
923
  The update-and-publish command is used to update existing entries with the updated schema of the respective content
938
924
  type
939
925
 
940
926
  Note: Content types, Environments and Locales are required to execute the command successfully
941
-
942
927
  But, if retry-failed flag is set, then only a logfile is required
943
928
 
929
+
944
930
  ALIASES
945
931
  $ csdx cm:bulk-publish:add-fields
946
932
 
@@ -1038,10 +1024,10 @@ USAGE
1038
1024
 
1039
1025
  FLAGS
1040
1026
  -n, --stack-name=<value> Name for the new stack to store the cloned content.
1041
- -y, --yes [optional] Override marketplace prompts
1027
+ -y, --yes [Optional] Override marketplace prompts
1042
1028
  --destination-management-token-alias=<value> Source API key of the target stack token alias.
1043
1029
  --destination-stack-api-key=<value> Destination stack API Key
1044
- --import-webhook-status=<option> [default: disable] Webhook state
1030
+ --import-webhook-status=<option> [default: disable] [Optional] Webhook state
1045
1031
  <options: disable|current>
1046
1032
  --source-branch=<value> Branch of the source stack.
1047
1033
  --source-management-token-alias=<value> Source API key of the target stack token alias.
@@ -1055,9 +1041,9 @@ FLAGS
1055
1041
 
1056
1042
  DESCRIPTION
1057
1043
  Clone data (structure/content or both) of a stack into another stack
1058
-
1059
1044
  Use this plugin to automate the process of cloning a stack in few steps.
1060
1045
 
1046
+
1061
1047
  ALIASES
1062
1048
  $ csdx cm:stack-clone
1063
1049
 
@@ -1094,6 +1080,7 @@ FLAGS
1094
1080
  -k, --stack-api-key=<value> API key of the source stack
1095
1081
  -m, --module=<value> [optional] specific module name
1096
1082
  -t, --content-types=<value> [optional] content type
1083
+ -y, --yes [optional] Override marketplace apps related prompts
1097
1084
  --secured-assets [optional] use when assets are secured
1098
1085
 
1099
1086
  DESCRIPTION
@@ -1138,17 +1125,16 @@ FLAGS
1138
1125
  -k, --stack-api-key=<value> API key of the target stack
1139
1126
  -m, --module=<value> [optional] specific module name
1140
1127
  -y, --yes [optional] Override marketplace prompts
1141
- --import-webhook-status=<option> [default: disable] Webhook state
1128
+ --import-webhook-status=<option> [default: disable] [optional] Webhook state
1142
1129
  <options: disable|current>
1143
1130
 
1144
1131
  DESCRIPTION
1145
1132
  Import script for importing the content into the new stack
1146
-
1147
1133
  ...
1148
-
1149
1134
  Once you export content from the source stack, import it to your destination stack by using the cm:stacks:import
1150
1135
  command.
1151
1136
 
1137
+
1152
1138
  ALIASES
1153
1139
  $ csdx cm:import
1154
1140
 
@@ -1223,13 +1209,10 @@ USAGE
1223
1209
 
1224
1210
  DESCRIPTION
1225
1211
  Publish entries and assets to multiple environments and locales
1226
-
1227
1212
  The publish command is used to publish entries and assets, to the specified environments and locales.
1228
1213
 
1229
1214
  Note: Content types, Environments and Locales are required to execute the publish entries command successfully.
1230
-
1231
1215
  Note: Environments and Locales are required to execute the publish assets command successfully.
1232
-
1233
1216
  But, if retry-failed flag is set, then only a logfile is required
1234
1217
 
1235
1218
  EXAMPLES
@@ -1333,11 +1316,10 @@ FLAGS
1333
1316
 
1334
1317
  DESCRIPTION
1335
1318
  Revert publish operations by using a log file
1336
-
1337
1319
  The revert command is used to revert all publish operations performed using bulk-publish script.
1338
-
1339
1320
  A log file name is required to execute revert command
1340
1321
 
1322
+
1341
1323
  ALIASES
1342
1324
  $ csdx cm:bulk-publish:revert
1343
1325
 
@@ -1369,7 +1351,7 @@ FLAGS
1369
1351
  -o, --org=<value> Provide Organization UID to create a new stack
1370
1352
  -r, --repo=<value> GitHub account or GitHub account/repository
1371
1353
  -s, --stack=<value> Provide stack UID to seed content to
1372
- -y, --yes=<value>
1354
+ -y, --yes=<value> [Optional] Skip stack confirmation
1373
1355
 
1374
1356
  DESCRIPTION
1375
1357
  Create a stack from existing content types, entries, assets, etc
@@ -1416,22 +1398,19 @@ FLAGS
1416
1398
 
1417
1399
  DESCRIPTION
1418
1400
  Unpublish entries or assets of given content types from the specified environment
1419
-
1420
1401
  The unpublish command is used to unpublish entries or assets from given environment
1421
1402
 
1422
1403
  Environment (Source Environment) and Locale are required to execute the command successfully
1423
-
1424
1404
  But, if retry-failed flag is set, then only a logfile is required
1425
1405
 
1426
1406
  A content type can be specified for unpublishing entries, but if no content-type(s) is/are specified and --only-assets
1427
1407
  is not used,
1428
-
1429
1408
  then all entries from all content types will be unpublished from the source environment
1430
1409
 
1431
1410
  Note: --only-assets can be used to unpublish only assets and --only-entries can be used to unpublish only entries.
1432
-
1433
1411
  (--only-assets and --only-entries cannot be used together at the same time)
1434
1412
 
1413
+
1435
1414
  ALIASES
1436
1415
  $ csdx cm:bulk-publish:unpublish
1437
1416
 
@@ -1550,7 +1529,7 @@ EXAMPLES
1550
1529
  $ csdx plugins
1551
1530
  ```
1552
1531
 
1553
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/index.ts)_
1532
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.7/src/commands/plugins/index.ts)_
1554
1533
 
1555
1534
  ## `csdx plugins:inspect PLUGIN...`
1556
1535
 
@@ -1574,7 +1553,7 @@ EXAMPLES
1574
1553
  $ csdx plugins:inspect myplugin
1575
1554
  ```
1576
1555
 
1577
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/inspect.ts)_
1556
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.7/src/commands/plugins/inspect.ts)_
1578
1557
 
1579
1558
  ## `csdx plugins:install PLUGIN...`
1580
1559
 
@@ -1594,7 +1573,6 @@ FLAGS
1594
1573
 
1595
1574
  DESCRIPTION
1596
1575
  Installs a plugin into the CLI.
1597
-
1598
1576
  Can be installed from npm or a git url.
1599
1577
 
1600
1578
  Installation of a user-installed plugin will override a core plugin.
@@ -1603,6 +1581,7 @@ DESCRIPTION
1603
1581
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
1604
1582
  the CLI without the need to patch and update the whole CLI.
1605
1583
 
1584
+
1606
1585
  ALIASES
1607
1586
  $ csdx plugins:add
1608
1587
 
@@ -1614,7 +1593,7 @@ EXAMPLES
1614
1593
  $ csdx plugins:install someuser/someplugin
1615
1594
  ```
1616
1595
 
1617
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/install.ts)_
1596
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.7/src/commands/plugins/install.ts)_
1618
1597
 
1619
1598
  ## `csdx plugins:link PLUGIN`
1620
1599
 
@@ -1633,17 +1612,17 @@ FLAGS
1633
1612
 
1634
1613
  DESCRIPTION
1635
1614
  Links a plugin into the CLI for development.
1636
-
1637
1615
  Installation of a linked plugin will override a user-installed or core plugin.
1638
1616
 
1639
1617
  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
1640
1618
  command will override the user-installed or core plugin implementation. This is useful for development work.
1641
1619
 
1620
+
1642
1621
  EXAMPLES
1643
1622
  $ csdx plugins:link myplugin
1644
1623
  ```
1645
1624
 
1646
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/link.ts)_
1625
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.7/src/commands/plugins/link.ts)_
1647
1626
 
1648
1627
  ## `csdx plugins:uninstall PLUGIN...`
1649
1628
 
@@ -1668,7 +1647,7 @@ ALIASES
1668
1647
  $ csdx plugins:remove
1669
1648
  ```
1670
1649
 
1671
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/uninstall.ts)_
1650
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.7/src/commands/plugins/uninstall.ts)_
1672
1651
 
1673
1652
  ## `csdx plugins:update`
1674
1653
 
@@ -1686,7 +1665,7 @@ DESCRIPTION
1686
1665
  Update installed plugins.
1687
1666
  ```
1688
1667
 
1689
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/update.ts)_
1668
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.7/src/commands/plugins/update.ts)_
1690
1669
  <!-- commandsstop -->
1691
1670
 
1692
1671
  ```
package/bin/run CHANGED
@@ -1,2 +1,5 @@
1
1
  #!/usr/bin/env node
2
- require('@oclif/command').run().catch(require('@oclif/errors/handle'));
2
+
3
+ const oclif = require('@oclif/core');
4
+
5
+ oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));
package/lib/index.js CHANGED
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '@oclif/command';
3
+ exports.run = void 0;
4
+ var core_1 = require("@oclif/core");
5
+ Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
@@ -1 +1 @@
1
- {"version":"1.2.2","commands":{}}
1
+ {"version":"1.2.4","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.2.2",
4
+ "version": "1.2.4",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run"
@@ -21,20 +21,20 @@
21
21
  "lint": "eslint src/**/*.ts"
22
22
  },
23
23
  "dependencies": {
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.3",
28
- "@contentstack/cli-cm-export": "^1.2.1",
29
- "@contentstack/cli-cm-export-to-csv": "^1.0.2",
30
- "@contentstack/cli-cm-import": "^1.2.1",
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
- "@contentstack/management": "^1.3.0",
24
+ "@contentstack/cli-auth": "^1.0.4",
25
+ "@contentstack/cli-cm-bootstrap": "^1.1.5",
26
+ "@contentstack/cli-cm-bulk-publish": "^1.0.3",
27
+ "@contentstack/cli-cm-clone": "^1.1.5",
28
+ "@contentstack/cli-cm-export": "^1.2.2",
29
+ "@contentstack/cli-cm-export-to-csv": "^1.0.3",
30
+ "@contentstack/cli-cm-import": "^1.2.3",
31
+ "@contentstack/cli-cm-migrate-rte": "^1.1.4",
32
+ "@contentstack/cli-cm-seed": "^1.1.5",
33
+ "@contentstack/cli-command": "^1.0.3",
34
+ "@contentstack/cli-config": "^1.0.3",
35
+ "@contentstack/cli-migration": "^1.0.3",
36
+ "@contentstack/cli-utilities": "^1.0.4",
37
+ "@contentstack/management": "^1.6.0",
38
38
  "@oclif/command": "^1.8.16",
39
39
  "@oclif/config": "^1.18.3",
40
40
  "@oclif/core": "^1.9.5",
@@ -44,8 +44,8 @@
44
44
  "chalk": "^4.1.2",
45
45
  "debug": "^4.1.1",
46
46
  "figlet": "^1.5.2",
47
- "inquirer": "^8.2.4",
48
- "uuid": "^8.3.2",
47
+ "inquirer": "8.2.4",
48
+ "uuid": "^9.0.0",
49
49
  "winston": "^3.7.2"
50
50
  },
51
51
  "devDependencies": {
@@ -53,7 +53,7 @@
53
53
  "@oclif/plugin-help": "^5.1.12",
54
54
  "@oclif/test": "^1.2.8",
55
55
  "@types/chai": "^4.2.18",
56
- "@types/inquirer": "^7.3.1",
56
+ "@types/inquirer": "^9.0.3",
57
57
  "@types/mkdirp": "^1.0.1",
58
58
  "@types/mocha": "^8.2.2",
59
59
  "@types/node": "^14.14.32",
@@ -72,7 +72,7 @@
72
72
  "sinon": "^11.1.1",
73
73
  "tmp": "^0.2.1",
74
74
  "ts-node": "^10.9.1",
75
- "typescript": "^4.7.4"
75
+ "typescript": "^4.9.3"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=8.0.0"
@@ -115,7 +115,6 @@
115
115
  }
116
116
  },
117
117
  "helpClass": "./lib/help.js",
118
- "commands": "./lib/commands",
119
118
  "bin": "csdx",
120
119
  "plugins": [
121
120
  "@oclif/plugin-not-found",
@@ -144,4 +143,4 @@
144
143
  }
145
144
  },
146
145
  "repository": "https://github.com/contentstack/cli"
147
- }
146
+ }