@contentstack/cli 1.55.1 → 1.57.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 +93 -67
- package/lib/hooks/prerun/auth-guard.js +4 -6
- package/lib/hooks/prerun/latest-version-warning.js +2 -3
- package/oclif.manifest.json +1 -1
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version|-v)
|
|
21
|
-
@contentstack/cli/1.
|
|
21
|
+
@contentstack/cli/1.57.0 linux-x64 node-v22.22.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -89,16 +89,19 @@ USAGE
|
|
|
89
89
|
* [`csdx config:get:ea-header`](#csdx-configgetea-header)
|
|
90
90
|
* [`csdx config:get:early-access-header`](#csdx-configgetearly-access-header)
|
|
91
91
|
* [`csdx config:get:log`](#csdx-configgetlog)
|
|
92
|
+
* [`csdx config:get:proxy`](#csdx-configgetproxy)
|
|
92
93
|
* [`csdx config:get:rate-limit`](#csdx-configgetrate-limit)
|
|
93
94
|
* [`csdx config:get:region`](#csdx-configgetregion)
|
|
94
95
|
* [`csdx config:remove:base-branch`](#csdx-configremovebase-branch)
|
|
95
96
|
* [`csdx config:remove:ea-header`](#csdx-configremoveea-header)
|
|
96
97
|
* [`csdx config:remove:early-access-header`](#csdx-configremoveearly-access-header)
|
|
98
|
+
* [`csdx config:remove:proxy`](#csdx-configremoveproxy)
|
|
97
99
|
* [`csdx config:remove:rate-limit`](#csdx-configremoverate-limit)
|
|
98
100
|
* [`csdx config:set:base-branch`](#csdx-configsetbase-branch)
|
|
99
101
|
* [`csdx config:set:ea-header`](#csdx-configsetea-header)
|
|
100
102
|
* [`csdx config:set:early-access-header`](#csdx-configsetearly-access-header)
|
|
101
103
|
* [`csdx config:set:log`](#csdx-configsetlog)
|
|
104
|
+
* [`csdx config:set:proxy`](#csdx-configsetproxy)
|
|
102
105
|
* [`csdx config:set:rate-limit`](#csdx-configsetrate-limit)
|
|
103
106
|
* [`csdx config:set:region [REGION]`](#csdx-configsetregion-region)
|
|
104
107
|
* [`csdx help [COMMAND]`](#csdx-help-command)
|
|
@@ -2268,6 +2271,9 @@ FLAGS
|
|
|
2268
2271
|
DESCRIPTION
|
|
2269
2272
|
Export entries, taxonomies, terms or organization users to csv using this command
|
|
2270
2273
|
|
|
2274
|
+
ALIASES
|
|
2275
|
+
$ csdx cm:export-to-csv
|
|
2276
|
+
|
|
2271
2277
|
EXAMPLES
|
|
2272
2278
|
$ csdx cm:export-to-csv
|
|
2273
2279
|
|
|
@@ -2275,94 +2281,52 @@ EXAMPLES
|
|
|
2275
2281
|
|
|
2276
2282
|
Exporting entries to CSV
|
|
2277
2283
|
|
|
2278
|
-
$ csdx cm:export-to-csv --action
|
|
2284
|
+
$ csdx cm:export-to-csv --action entries --locale <locale> --alias <management-token-alias> --content-type <content-type>
|
|
2279
2285
|
|
|
2280
2286
|
|
|
2281
2287
|
|
|
2282
|
-
Exporting entries to CSV with stack name
|
|
2288
|
+
Exporting entries to CSV with stack name and branch
|
|
2283
2289
|
|
|
2284
|
-
$ csdx cm:export-to-csv --action
|
|
2290
|
+
$ csdx cm:export-to-csv --action entries --locale <locale> --alias <management-token-alias> --content-type <content-type> --stack-name <stack-name> --branch <branch-name>
|
|
2285
2291
|
|
|
2286
2292
|
|
|
2287
2293
|
|
|
2288
2294
|
Exporting organization users to CSV
|
|
2289
2295
|
|
|
2290
|
-
$ csdx cm:export-to-csv --action
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
Exporting organization users to CSV with organization name provided
|
|
2295
|
-
|
|
2296
|
-
$ csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>
|
|
2296
|
+
$ csdx cm:export-to-csv --action users --org <org-uid>
|
|
2297
2297
|
|
|
2298
2298
|
|
|
2299
2299
|
|
|
2300
2300
|
Exporting organization teams to CSV
|
|
2301
2301
|
|
|
2302
|
-
$ csdx cm:export-to-csv --action <
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
Exporting organization teams to CSV with org UID
|
|
2307
|
-
|
|
2308
|
-
$ csdx cm:export-to-csv --action <teams> --org <org-uid>
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
Exporting organization teams to CSV with team UID
|
|
2313
|
-
|
|
2314
|
-
$ csdx cm:export-to-csv --action <teams> --team-uid <team-uid>
|
|
2315
|
-
|
|
2316
|
-
|
|
2302
|
+
$ csdx cm:export-to-csv --action teams --org <org-uid>
|
|
2317
2303
|
|
|
2318
|
-
Exporting organization teams to CSV with org UID and team UID
|
|
2319
2304
|
|
|
2320
|
-
$ csdx cm:export-to-csv --action <teams> --org <org-uid> --team-uid <team-uid>
|
|
2321
2305
|
|
|
2306
|
+
Exporting teams with specific team UID
|
|
2322
2307
|
|
|
2308
|
+
$ csdx cm:export-to-csv --action teams --org <org-uid> --team-uid <team-uid>
|
|
2323
2309
|
|
|
2324
|
-
Exporting organization teams to CSV with org UID and team UID
|
|
2325
2310
|
|
|
2326
|
-
$ csdx cm:export-to-csv --action <teams> --org <org-uid> --team-uid <team-uid> --org-name <org-name>
|
|
2327
2311
|
|
|
2312
|
+
Exporting taxonomies to CSV
|
|
2328
2313
|
|
|
2314
|
+
$ csdx cm:export-to-csv --action taxonomies --alias <management-token-alias>
|
|
2329
2315
|
|
|
2330
|
-
Exporting taxonomies and related terms to a .CSV file with the provided taxonomy UID
|
|
2331
2316
|
|
|
2332
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --taxonomy-uid <taxonomy-uid>
|
|
2333
2317
|
|
|
2318
|
+
Exporting specific taxonomy with locale
|
|
2334
2319
|
|
|
2320
|
+
$ csdx cm:export-to-csv --action taxonomies --alias <management-token-alias> --taxonomy-uid <taxonomy-uid> --locale <locale>
|
|
2335
2321
|
|
|
2336
|
-
Exporting taxonomies and respective terms to a .CSV file
|
|
2337
2322
|
|
|
2338
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias>
|
|
2339
2323
|
|
|
2324
|
+
Exporting taxonomies with fallback locale
|
|
2340
2325
|
|
|
2341
|
-
|
|
2342
|
-
Exporting taxonomies and respective terms to a .CSV file with a delimiter
|
|
2343
|
-
|
|
2344
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --delimiter <delimiter>
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
Exporting taxonomies with specific locale
|
|
2349
|
-
|
|
2350
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale>
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
Exporting taxonomies with fallback locale support
|
|
2355
|
-
|
|
2356
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale> --include-fallback
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
Exporting taxonomies with custom fallback locale
|
|
2361
|
-
|
|
2362
|
-
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale> --include-fallback --fallback-locale <fallback-locale>
|
|
2326
|
+
$ csdx cm:export-to-csv --action taxonomies --alias <management-token-alias> --locale <locale> --include-fallback --fallback-locale <fallback-locale>
|
|
2363
2327
|
```
|
|
2364
2328
|
|
|
2365
|
-
_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.
|
|
2329
|
+
_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.ts)_
|
|
2366
2330
|
|
|
2367
2331
|
## `csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`
|
|
2368
2332
|
|
|
@@ -2861,7 +2825,7 @@ EXAMPLES
|
|
|
2861
2825
|
$ 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>
|
|
2862
2826
|
```
|
|
2863
2827
|
|
|
2864
|
-
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.
|
|
2828
|
+
_See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.ts)_
|
|
2865
2829
|
|
|
2866
2830
|
## `csdx cm:stacks:export [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`
|
|
2867
2831
|
|
|
@@ -3096,7 +3060,7 @@ EXAMPLES
|
|
|
3096
3060
|
$ csdx cm:migration --alias --file-path <migration/script/file/path> -k <api-key>
|
|
3097
3061
|
```
|
|
3098
3062
|
|
|
3099
|
-
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli/blob/main/packages/contentstack-migration/src/commands/cm/stacks/migration.
|
|
3063
|
+
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli/blob/main/packages/contentstack-migration/src/commands/cm/stacks/migration.ts)_
|
|
3100
3064
|
|
|
3101
3065
|
## `csdx cm:stacks:publish`
|
|
3102
3066
|
|
|
@@ -3458,6 +3422,23 @@ EXAMPLES
|
|
|
3458
3422
|
|
|
3459
3423
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/get/log.ts)_
|
|
3460
3424
|
|
|
3425
|
+
## `csdx config:get:proxy`
|
|
3426
|
+
|
|
3427
|
+
Get proxy configuration for CLI
|
|
3428
|
+
|
|
3429
|
+
```
|
|
3430
|
+
USAGE
|
|
3431
|
+
$ csdx config:get:proxy
|
|
3432
|
+
|
|
3433
|
+
DESCRIPTION
|
|
3434
|
+
Get proxy configuration for CLI
|
|
3435
|
+
|
|
3436
|
+
EXAMPLES
|
|
3437
|
+
$ csdx config:get:proxy
|
|
3438
|
+
```
|
|
3439
|
+
|
|
3440
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/get/proxy.ts)_
|
|
3441
|
+
|
|
3461
3442
|
## `csdx config:get:rate-limit`
|
|
3462
3443
|
|
|
3463
3444
|
Get rate-limit of organizations
|
|
@@ -3567,6 +3548,23 @@ EXAMPLES
|
|
|
3567
3548
|
|
|
3568
3549
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/remove/early-access-header.ts)_
|
|
3569
3550
|
|
|
3551
|
+
## `csdx config:remove:proxy`
|
|
3552
|
+
|
|
3553
|
+
Remove proxy configuration from global config
|
|
3554
|
+
|
|
3555
|
+
```
|
|
3556
|
+
USAGE
|
|
3557
|
+
$ csdx config:remove:proxy
|
|
3558
|
+
|
|
3559
|
+
DESCRIPTION
|
|
3560
|
+
Remove proxy configuration from global config
|
|
3561
|
+
|
|
3562
|
+
EXAMPLES
|
|
3563
|
+
$ csdx config:remove:proxy
|
|
3564
|
+
```
|
|
3565
|
+
|
|
3566
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/remove/proxy.ts)_
|
|
3567
|
+
|
|
3570
3568
|
## `csdx config:remove:rate-limit`
|
|
3571
3569
|
|
|
3572
3570
|
Remove rate-limit of the organization
|
|
@@ -3698,6 +3696,34 @@ EXAMPLES
|
|
|
3698
3696
|
|
|
3699
3697
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/log.ts)_
|
|
3700
3698
|
|
|
3699
|
+
## `csdx config:set:proxy`
|
|
3700
|
+
|
|
3701
|
+
Set proxy configuration for CLI
|
|
3702
|
+
|
|
3703
|
+
```
|
|
3704
|
+
USAGE
|
|
3705
|
+
$ csdx config:set:proxy --host <value> --port <value> --protocol http|https [--username <value>]
|
|
3706
|
+
|
|
3707
|
+
FLAGS
|
|
3708
|
+
--host=<value> (required) Proxy host address
|
|
3709
|
+
--port=<value> (required) Proxy port number
|
|
3710
|
+
--protocol=<option> (required) [default: http] Proxy protocol (http or https)
|
|
3711
|
+
<options: http|https>
|
|
3712
|
+
--username=<value> Proxy username (optional)
|
|
3713
|
+
|
|
3714
|
+
DESCRIPTION
|
|
3715
|
+
Set proxy configuration for CLI
|
|
3716
|
+
|
|
3717
|
+
EXAMPLES
|
|
3718
|
+
$ csdx config:set:proxy --host 127.0.0.1 --port 3128
|
|
3719
|
+
|
|
3720
|
+
$ csdx config:set:proxy --host proxy.example.com --port 8080 --protocol https
|
|
3721
|
+
|
|
3722
|
+
$ csdx config:set:proxy --host proxy.example.com --port 8080 --username user
|
|
3723
|
+
```
|
|
3724
|
+
|
|
3725
|
+
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/proxy.ts)_
|
|
3726
|
+
|
|
3701
3727
|
## `csdx config:set:rate-limit`
|
|
3702
3728
|
|
|
3703
3729
|
Set rate-limit for CLI
|
|
@@ -3803,7 +3829,7 @@ DESCRIPTION
|
|
|
3803
3829
|
Display help for csdx.
|
|
3804
3830
|
```
|
|
3805
3831
|
|
|
3806
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.
|
|
3832
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.37/src/commands/help.ts)_
|
|
3807
3833
|
|
|
3808
3834
|
## `csdx launch`
|
|
3809
3835
|
|
|
@@ -4122,7 +4148,7 @@ EXAMPLES
|
|
|
4122
4148
|
$ csdx plugins
|
|
4123
4149
|
```
|
|
4124
4150
|
|
|
4125
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4151
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/index.ts)_
|
|
4126
4152
|
|
|
4127
4153
|
## `csdx plugins:add PLUGIN`
|
|
4128
4154
|
|
|
@@ -4196,7 +4222,7 @@ EXAMPLES
|
|
|
4196
4222
|
$ csdx plugins:inspect myplugin
|
|
4197
4223
|
```
|
|
4198
4224
|
|
|
4199
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4225
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/inspect.ts)_
|
|
4200
4226
|
|
|
4201
4227
|
## `csdx plugins:install PLUGIN`
|
|
4202
4228
|
|
|
@@ -4245,7 +4271,7 @@ EXAMPLES
|
|
|
4245
4271
|
$ csdx plugins:install someuser/someplugin
|
|
4246
4272
|
```
|
|
4247
4273
|
|
|
4248
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4274
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/install.ts)_
|
|
4249
4275
|
|
|
4250
4276
|
## `csdx plugins:link PATH`
|
|
4251
4277
|
|
|
@@ -4276,7 +4302,7 @@ EXAMPLES
|
|
|
4276
4302
|
$ csdx plugins:link myplugin
|
|
4277
4303
|
```
|
|
4278
4304
|
|
|
4279
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4305
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/link.ts)_
|
|
4280
4306
|
|
|
4281
4307
|
## `csdx plugins:remove [PLUGIN]`
|
|
4282
4308
|
|
|
@@ -4317,7 +4343,7 @@ FLAGS
|
|
|
4317
4343
|
--reinstall Reinstall all plugins after uninstalling.
|
|
4318
4344
|
```
|
|
4319
4345
|
|
|
4320
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4346
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/reset.ts)_
|
|
4321
4347
|
|
|
4322
4348
|
## `csdx plugins:uninstall [PLUGIN]`
|
|
4323
4349
|
|
|
@@ -4345,7 +4371,7 @@ EXAMPLES
|
|
|
4345
4371
|
$ csdx plugins:uninstall myplugin
|
|
4346
4372
|
```
|
|
4347
4373
|
|
|
4348
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4374
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/uninstall.ts)_
|
|
4349
4375
|
|
|
4350
4376
|
## `csdx plugins:unlink [PLUGIN]`
|
|
4351
4377
|
|
|
@@ -4389,7 +4415,7 @@ DESCRIPTION
|
|
|
4389
4415
|
Update installed plugins.
|
|
4390
4416
|
```
|
|
4391
4417
|
|
|
4392
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4418
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.55/src/commands/plugins/update.ts)_
|
|
4393
4419
|
|
|
4394
4420
|
## `csdx tokens`
|
|
4395
4421
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
4
|
-
const cli_utilities_2 = require("@contentstack/cli-utilities");
|
|
5
4
|
// TBD: run region command if region is not there
|
|
6
5
|
async function default_1(opts) {
|
|
7
|
-
const newLogger = new cli_utilities_2.LoggerService(process.cwd(), 'cli-log');
|
|
8
6
|
const { context: { plugin: { config: { protectedCommands = {} } = {} } = {}, region = null } = {} } = this.config;
|
|
9
7
|
if (opts.Command.id !== 'config:set:region') {
|
|
10
8
|
if (!region) {
|
|
@@ -17,7 +15,7 @@ async function default_1(opts) {
|
|
|
17
15
|
// Auth guard
|
|
18
16
|
if (protectedCommands[opts.Command.id]) {
|
|
19
17
|
if (!(0, cli_utilities_1.isAuthenticated)()) {
|
|
20
|
-
|
|
18
|
+
(0, cli_utilities_1.handleAndLogError)(new Error('Authentication required for this command'), { module: 'auth-guard', commandId: opts.Command.id });
|
|
21
19
|
cli_utilities_1.cliux.error('Please log in to execute the command');
|
|
22
20
|
this.exit();
|
|
23
21
|
}
|
|
@@ -25,14 +23,14 @@ async function default_1(opts) {
|
|
|
25
23
|
try {
|
|
26
24
|
const result = await client.getUser();
|
|
27
25
|
if (!result) {
|
|
28
|
-
|
|
26
|
+
(0, cli_utilities_1.handleAndLogError)(new Error('Error in auth validation'), { module: 'auth-guard' });
|
|
29
27
|
cli_utilities_1.cliux.error('Please log in to execute the command');
|
|
30
28
|
this.exit();
|
|
31
29
|
}
|
|
32
|
-
|
|
30
|
+
cli_utilities_1.log.debug('Logged-in user', { module: 'auth-guard', userData: result.data });
|
|
33
31
|
}
|
|
34
32
|
catch (error) {
|
|
35
|
-
|
|
33
|
+
(0, cli_utilities_1.handleAndLogError)(error, { module: 'auth-guard' }, 'Error in auth validation');
|
|
36
34
|
cli_utilities_1.cliux.error('Please log in to execute the command');
|
|
37
35
|
process.exit();
|
|
38
36
|
}
|
|
@@ -10,7 +10,6 @@ async function default_1(_opts) {
|
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const now = Date.now();
|
|
12
12
|
const today = new Date().toISOString().split('T')[0];
|
|
13
|
-
const logger = new cli_utilities_1.LoggerService(process.env.CS_CLI_LOG_PATH || process.cwd(), 'cli-log');
|
|
14
13
|
let cache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' };
|
|
15
14
|
// if CLI_VERSION is not set or is not the same as the current version, set it
|
|
16
15
|
if (!cli_utilities_1.configHandler.get('CLI_VERSION') || cli_utilities_1.configHandler.get('CLI_VERSION') !== this.config.version) {
|
|
@@ -30,7 +29,7 @@ async function default_1(_opts) {
|
|
|
30
29
|
try {
|
|
31
30
|
const latestVersion = (_b = (_a = (await httpClient.get(`https://registry.npmjs.org/@contentstack/cli/latest`))) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.version;
|
|
32
31
|
if (!latestVersion) {
|
|
33
|
-
|
|
32
|
+
(0, cli_utilities_1.handleAndLogError)(new Error('Failed to retrieve the latest version from the registry.'), { module: 'latest-version-warning' });
|
|
34
33
|
return;
|
|
35
34
|
}
|
|
36
35
|
cache.latestVersion = latestVersion;
|
|
@@ -39,7 +38,7 @@ async function default_1(_opts) {
|
|
|
39
38
|
cli_utilities_1.configHandler.set('versionUpgradeWarningCache', cache);
|
|
40
39
|
}
|
|
41
40
|
catch (error) {
|
|
42
|
-
|
|
41
|
+
(0, cli_utilities_1.handleAndLogError)(error, { module: 'latest-version-warning' }, 'Failed to check the latest version');
|
|
43
42
|
return;
|
|
44
43
|
}
|
|
45
44
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.57.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~1.17.
|
|
26
|
-
"@contentstack/cli-cm-export": "~1.23.
|
|
27
|
-
"@contentstack/cli-cm-import": "~1.31.
|
|
28
|
-
"@contentstack/cli-auth": "~1.7.
|
|
29
|
-
"@contentstack/cli-cm-bootstrap": "~1.18.
|
|
30
|
-
"@contentstack/cli-cm-branches": "~1.6.
|
|
31
|
-
"@contentstack/cli-cm-bulk-publish": "~1.10.
|
|
32
|
-
"@contentstack/cli-cm-clone": "~1.
|
|
33
|
-
"@contentstack/cli-cm-export-to-csv": "~1.
|
|
34
|
-
"@contentstack/cli-cm-import-setup": "~1.7.
|
|
35
|
-
"@contentstack/cli-cm-migrate-rte": "~1.6.
|
|
36
|
-
"@contentstack/cli-cm-seed": "~1.14.
|
|
37
|
-
"@contentstack/cli-command": "~1.7.
|
|
38
|
-
"@contentstack/cli-config": "~1.
|
|
25
|
+
"@contentstack/cli-audit": "~1.17.1",
|
|
26
|
+
"@contentstack/cli-cm-export": "~1.23.1",
|
|
27
|
+
"@contentstack/cli-cm-import": "~1.31.2",
|
|
28
|
+
"@contentstack/cli-auth": "~1.7.3",
|
|
29
|
+
"@contentstack/cli-cm-bootstrap": "~1.18.2",
|
|
30
|
+
"@contentstack/cli-cm-branches": "~1.6.3",
|
|
31
|
+
"@contentstack/cli-cm-bulk-publish": "~1.10.6",
|
|
32
|
+
"@contentstack/cli-cm-clone": "~1.20.1",
|
|
33
|
+
"@contentstack/cli-cm-export-to-csv": "~1.11.0",
|
|
34
|
+
"@contentstack/cli-cm-import-setup": "~1.7.3",
|
|
35
|
+
"@contentstack/cli-cm-migrate-rte": "~1.6.4",
|
|
36
|
+
"@contentstack/cli-cm-seed": "~1.14.2",
|
|
37
|
+
"@contentstack/cli-command": "~1.7.2",
|
|
38
|
+
"@contentstack/cli-config": "~1.18.0",
|
|
39
39
|
"@contentstack/cli-launch": "^1.9.2",
|
|
40
|
-
"@contentstack/cli-migration": "~1.
|
|
41
|
-
"@contentstack/cli-utilities": "~1.
|
|
42
|
-
"@contentstack/cli-variants": "~1.3.
|
|
40
|
+
"@contentstack/cli-migration": "~1.11.0",
|
|
41
|
+
"@contentstack/cli-utilities": "~1.17.1",
|
|
42
|
+
"@contentstack/cli-variants": "~1.3.7",
|
|
43
43
|
"@contentstack/management": "~1.27.3",
|
|
44
44
|
"@oclif/core": "^4.3.0",
|
|
45
45
|
"@oclif/plugin-help": "^6.2.28",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@types/mocha": "^8.2.3",
|
|
65
65
|
"@types/node": "^14.18.63",
|
|
66
66
|
"@types/semver": "^7.7.0",
|
|
67
|
-
"@types/sinon": "^
|
|
67
|
+
"@types/sinon": "^21.0.0",
|
|
68
68
|
"chai": "^4.5.0",
|
|
69
69
|
"eslint": "^8.57.1",
|
|
70
70
|
"eslint-config-oclif": "^6.0.62",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"oclif": "^4.17.46",
|
|
77
77
|
"rimraf": "^5.0.10",
|
|
78
78
|
"shelljs": "^0.10.0",
|
|
79
|
-
"sinon": "^
|
|
79
|
+
"sinon": "^21.0.1",
|
|
80
80
|
"tmp": "^0.2.3",
|
|
81
81
|
"ts-node": "^10.9.2",
|
|
82
82
|
"tslib": "^2.8.1",
|
|
@@ -167,4 +167,4 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"repository": "https://github.com/contentstack/cli"
|
|
170
|
-
}
|
|
170
|
+
}
|