@contentstack/cli-config 2.0.0-beta.7 → 2.0.0-beta.9
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 +15 -16
- package/lib/commands/config/set/region.js +9 -9
- package/lib/interfaces/index.d.ts +1 -1
- package/lib/utils/region-handler.d.ts +1 -1
- package/lib/utils/region-handler.js +3 -3
- package/oclif.manifest.json +144 -144
- package/package.json +32 -22
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-config/2.0.0-beta.
|
|
21
|
+
@contentstack/cli-config/2.0.0-beta.9 linux-x64 node-v22.22.2
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -457,25 +457,24 @@ Set region for CLI
|
|
|
457
457
|
```
|
|
458
458
|
USAGE
|
|
459
459
|
$ csdx config:set:region [REGION] [--cda <value> --cma <value> --ui-host <value> -n <value>] [--developer-hub
|
|
460
|
-
<value>] [--personalize <value>] [--launch <value>] [--studio <value>] [--
|
|
460
|
+
<value>] [--personalize <value>] [--launch <value>] [--studio <value>] [--cs-assets <value>]
|
|
461
461
|
|
|
462
462
|
ARGUMENTS
|
|
463
463
|
[REGION] Name for the region
|
|
464
464
|
|
|
465
465
|
FLAGS
|
|
466
|
-
-n, --name=<value>
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
--
|
|
470
|
-
|
|
471
|
-
--
|
|
472
|
-
|
|
473
|
-
--
|
|
474
|
-
--
|
|
475
|
-
--
|
|
476
|
-
--
|
|
477
|
-
|
|
478
|
-
required
|
|
466
|
+
-n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
|
|
467
|
+
--cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and
|
|
468
|
+
name flags are required
|
|
469
|
+
--cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host
|
|
470
|
+
and name flags are required
|
|
471
|
+
--cs-assets=<value> Custom host to set for Contentstack Assets API
|
|
472
|
+
--developer-hub=<value> Custom host to set for Developer hub API
|
|
473
|
+
--launch=<value> Custom host to set for Launch API
|
|
474
|
+
--personalize=<value> Custom host to set for Personalize API
|
|
475
|
+
--studio=<value> Custom host to set for Studio API
|
|
476
|
+
--ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
|
|
477
|
+
required
|
|
479
478
|
|
|
480
479
|
DESCRIPTION
|
|
481
480
|
Set region for CLI
|
|
@@ -507,7 +506,7 @@ EXAMPLES
|
|
|
507
506
|
|
|
508
507
|
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --studio <custom_studio_url>
|
|
509
508
|
|
|
510
|
-
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --
|
|
509
|
+
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --cs-assets <cs_assets_url>
|
|
511
510
|
|
|
512
511
|
$ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url> --studio <custom_studio_url>
|
|
513
512
|
```
|
|
@@ -14,7 +14,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
14
14
|
let personalizeUrl = regionSetFlags['personalize'];
|
|
15
15
|
let launchHubUrl = regionSetFlags['launch'];
|
|
16
16
|
let composableStudioUrl = regionSetFlags['studio'];
|
|
17
|
-
let
|
|
17
|
+
let csAssetsUrl = regionSetFlags['cs-assets'];
|
|
18
18
|
let selectedRegion = args.region;
|
|
19
19
|
if (!(cda && cma && uiHost && name) && !selectedRegion) {
|
|
20
20
|
selectedRegion = await utils_1.interactive.askRegions();
|
|
@@ -44,8 +44,8 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
44
44
|
if (!composableStudioUrl) {
|
|
45
45
|
composableStudioUrl = this.transformUrl(cma, 'composable-studio-api');
|
|
46
46
|
}
|
|
47
|
-
if (!
|
|
48
|
-
|
|
47
|
+
if (!csAssetsUrl) {
|
|
48
|
+
csAssetsUrl = this.transformUrl(cma, 'am-api');
|
|
49
49
|
}
|
|
50
50
|
let customRegion = {
|
|
51
51
|
cda,
|
|
@@ -56,7 +56,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
56
56
|
personalizeUrl,
|
|
57
57
|
launchHubUrl,
|
|
58
58
|
composableStudioUrl,
|
|
59
|
-
|
|
59
|
+
csAssetsUrl,
|
|
60
60
|
};
|
|
61
61
|
customRegion = utils_1.regionHandler.setCustomRegion(customRegion);
|
|
62
62
|
await cli_utilities_1.authHandler.setConfigData('logout'); //Todo: Handle this logout flow well through logout command call
|
|
@@ -68,7 +68,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
68
68
|
cli_utilities_1.cliux.success(`Personalize URL: ${customRegion.personalizeUrl}`);
|
|
69
69
|
cli_utilities_1.cliux.success(`Launch URL: ${customRegion.launchHubUrl}`);
|
|
70
70
|
cli_utilities_1.cliux.success(`Studio URL: ${customRegion.composableStudioUrl}`);
|
|
71
|
-
cli_utilities_1.cliux.success(`
|
|
71
|
+
cli_utilities_1.cliux.success(`Contentstack Assets URL: ${customRegion.csAssetsUrl}`);
|
|
72
72
|
}
|
|
73
73
|
catch (error) {
|
|
74
74
|
(0, cli_utilities_1.handleAndLogError)(error, Object.assign(Object.assign({}, this.contextDetails), { module: 'config-set-region' }));
|
|
@@ -85,7 +85,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
85
85
|
cli_utilities_1.cliux.success(`Personalize URL: ${regionDetails.personalizeUrl}`);
|
|
86
86
|
cli_utilities_1.cliux.success(`Launch URL: ${regionDetails.launchHubUrl}`);
|
|
87
87
|
cli_utilities_1.cliux.success(`Studio URL: ${regionDetails.composableStudioUrl}`);
|
|
88
|
-
cli_utilities_1.cliux.success(`
|
|
88
|
+
cli_utilities_1.cliux.success(`Contentstack Assets URL: ${regionDetails.csAssetsUrl}`);
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
91
|
cli_utilities_1.cliux.error(`Invalid region specified.`);
|
|
@@ -133,8 +133,8 @@ RegionSetCommand.flags = {
|
|
|
133
133
|
studio: cli_utilities_1.flags.string({
|
|
134
134
|
description: 'Custom host to set for Studio API',
|
|
135
135
|
}),
|
|
136
|
-
'
|
|
137
|
-
description: 'Custom host to set for
|
|
136
|
+
'cs-assets': cli_utilities_1.flags.string({
|
|
137
|
+
description: 'Custom host to set for Contentstack Assets API',
|
|
138
138
|
}),
|
|
139
139
|
};
|
|
140
140
|
RegionSetCommand.examples = [
|
|
@@ -151,7 +151,7 @@ RegionSetCommand.examples = [
|
|
|
151
151
|
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --personalize <custom_personalize_url>',
|
|
152
152
|
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --launch <custom_launch_url>',
|
|
153
153
|
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --studio <custom_studio_url>',
|
|
154
|
-
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --
|
|
154
|
+
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --cs-assets <cs_assets_url>',
|
|
155
155
|
'$ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url> --studio <custom_studio_url>',
|
|
156
156
|
];
|
|
157
157
|
RegionSetCommand.args = {
|
|
@@ -35,10 +35,10 @@ function getRegionObject(regionKey) {
|
|
|
35
35
|
launchHubUrl: endpoints.launch,
|
|
36
36
|
personalizeUrl: endpoints.personalizeManagement,
|
|
37
37
|
composableStudioUrl: endpoints.composableStudio,
|
|
38
|
-
|
|
38
|
+
csAssetsUrl: endpoints.assetManagement,
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
catch (
|
|
41
|
+
catch (_a) {
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -141,7 +141,7 @@ class UserConfig {
|
|
|
141
141
|
personalizeUrl: regionObject['personalizeUrl'],
|
|
142
142
|
launchHubUrl: regionObject['launchHubUrl'],
|
|
143
143
|
composableStudioUrl: regionObject['composableStudioUrl'],
|
|
144
|
-
|
|
144
|
+
csAssetsUrl: regionObject['csAssetsUrl'],
|
|
145
145
|
};
|
|
146
146
|
return sanitizedRegion;
|
|
147
147
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -146,6 +146,145 @@
|
|
|
146
146
|
"region.js"
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
+
"config:remove:base-branch": {
|
|
150
|
+
"aliases": [],
|
|
151
|
+
"args": {},
|
|
152
|
+
"description": "Remove branch config for CLI",
|
|
153
|
+
"examples": [
|
|
154
|
+
"$ csdx config:remove:base-branch",
|
|
155
|
+
"$ csdx config:remove:base-branch --stack-api-key <value>"
|
|
156
|
+
],
|
|
157
|
+
"flags": {
|
|
158
|
+
"stack-api-key": {
|
|
159
|
+
"char": "k",
|
|
160
|
+
"description": "Stack API key.",
|
|
161
|
+
"name": "stack-api-key",
|
|
162
|
+
"hasDynamicHelp": false,
|
|
163
|
+
"multiple": false,
|
|
164
|
+
"type": "option"
|
|
165
|
+
},
|
|
166
|
+
"yes": {
|
|
167
|
+
"char": "y",
|
|
168
|
+
"description": "Force remove.",
|
|
169
|
+
"name": "yes",
|
|
170
|
+
"allowNo": false,
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"hasDynamicHelp": false,
|
|
175
|
+
"hiddenAliases": [],
|
|
176
|
+
"id": "config:remove:base-branch",
|
|
177
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
178
|
+
"pluginName": "@contentstack/cli-config",
|
|
179
|
+
"pluginType": "core",
|
|
180
|
+
"strict": true,
|
|
181
|
+
"isESM": false,
|
|
182
|
+
"relativePath": [
|
|
183
|
+
"lib",
|
|
184
|
+
"commands",
|
|
185
|
+
"config",
|
|
186
|
+
"remove",
|
|
187
|
+
"base-branch.js"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"config:remove:early-access-header": {
|
|
191
|
+
"aliases": [
|
|
192
|
+
"config:remove:ea-header"
|
|
193
|
+
],
|
|
194
|
+
"args": {},
|
|
195
|
+
"description": "Remove Early Access header",
|
|
196
|
+
"examples": [
|
|
197
|
+
"$ <%= config.bin %> <%= command.id %>",
|
|
198
|
+
"$ <%= config.bin %> <%= command.id %> --header-alias <value>"
|
|
199
|
+
],
|
|
200
|
+
"flags": {
|
|
201
|
+
"header-alias": {
|
|
202
|
+
"description": "(optional) Provide the Early Access header alias name.",
|
|
203
|
+
"name": "header-alias",
|
|
204
|
+
"hasDynamicHelp": false,
|
|
205
|
+
"multiple": false,
|
|
206
|
+
"type": "option"
|
|
207
|
+
},
|
|
208
|
+
"yes": {
|
|
209
|
+
"char": "y",
|
|
210
|
+
"description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
|
|
211
|
+
"name": "yes",
|
|
212
|
+
"allowNo": false,
|
|
213
|
+
"type": "boolean"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"hasDynamicHelp": false,
|
|
217
|
+
"hiddenAliases": [],
|
|
218
|
+
"id": "config:remove:early-access-header",
|
|
219
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
220
|
+
"pluginName": "@contentstack/cli-config",
|
|
221
|
+
"pluginType": "core",
|
|
222
|
+
"strict": true,
|
|
223
|
+
"isESM": false,
|
|
224
|
+
"relativePath": [
|
|
225
|
+
"lib",
|
|
226
|
+
"commands",
|
|
227
|
+
"config",
|
|
228
|
+
"remove",
|
|
229
|
+
"early-access-header.js"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"config:remove:proxy": {
|
|
233
|
+
"aliases": [],
|
|
234
|
+
"args": {},
|
|
235
|
+
"description": "Remove proxy configuration from global config",
|
|
236
|
+
"examples": [
|
|
237
|
+
"csdx config:remove:proxy"
|
|
238
|
+
],
|
|
239
|
+
"flags": {},
|
|
240
|
+
"hasDynamicHelp": false,
|
|
241
|
+
"hiddenAliases": [],
|
|
242
|
+
"id": "config:remove:proxy",
|
|
243
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
244
|
+
"pluginName": "@contentstack/cli-config",
|
|
245
|
+
"pluginType": "core",
|
|
246
|
+
"strict": true,
|
|
247
|
+
"isESM": false,
|
|
248
|
+
"relativePath": [
|
|
249
|
+
"lib",
|
|
250
|
+
"commands",
|
|
251
|
+
"config",
|
|
252
|
+
"remove",
|
|
253
|
+
"proxy.js"
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"config:remove:rate-limit": {
|
|
257
|
+
"aliases": [],
|
|
258
|
+
"args": {},
|
|
259
|
+
"description": "Remove rate-limit of the organization",
|
|
260
|
+
"examples": [
|
|
261
|
+
"$ csdx config:remove:rate-limit --org <<org_uid>>"
|
|
262
|
+
],
|
|
263
|
+
"flags": {
|
|
264
|
+
"org": {
|
|
265
|
+
"description": "Provide the organization UID",
|
|
266
|
+
"name": "org",
|
|
267
|
+
"hasDynamicHelp": false,
|
|
268
|
+
"multiple": false,
|
|
269
|
+
"type": "option"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"hasDynamicHelp": false,
|
|
273
|
+
"hiddenAliases": [],
|
|
274
|
+
"id": "config:remove:rate-limit",
|
|
275
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
276
|
+
"pluginName": "@contentstack/cli-config",
|
|
277
|
+
"pluginType": "core",
|
|
278
|
+
"strict": true,
|
|
279
|
+
"isESM": false,
|
|
280
|
+
"relativePath": [
|
|
281
|
+
"lib",
|
|
282
|
+
"commands",
|
|
283
|
+
"config",
|
|
284
|
+
"remove",
|
|
285
|
+
"rate-limit.js"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
149
288
|
"config:set:base-branch": {
|
|
150
289
|
"aliases": [],
|
|
151
290
|
"args": {},
|
|
@@ -428,7 +567,7 @@
|
|
|
428
567
|
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --personalize <custom_personalize_url>",
|
|
429
568
|
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --launch <custom_launch_url>",
|
|
430
569
|
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --studio <custom_studio_url>",
|
|
431
|
-
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --
|
|
570
|
+
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --cs-assets <cs_assets_url>",
|
|
432
571
|
"$ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name \"India\" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url> --studio <custom_studio_url>"
|
|
433
572
|
],
|
|
434
573
|
"flags": {
|
|
@@ -509,9 +648,9 @@
|
|
|
509
648
|
"multiple": false,
|
|
510
649
|
"type": "option"
|
|
511
650
|
},
|
|
512
|
-
"
|
|
513
|
-
"description": "Custom host to set for
|
|
514
|
-
"name": "
|
|
651
|
+
"cs-assets": {
|
|
652
|
+
"description": "Custom host to set for Contentstack Assets API",
|
|
653
|
+
"name": "cs-assets",
|
|
515
654
|
"hasDynamicHelp": false,
|
|
516
655
|
"multiple": false,
|
|
517
656
|
"type": "option"
|
|
@@ -532,146 +671,7 @@
|
|
|
532
671
|
"set",
|
|
533
672
|
"region.js"
|
|
534
673
|
]
|
|
535
|
-
},
|
|
536
|
-
"config:remove:base-branch": {
|
|
537
|
-
"aliases": [],
|
|
538
|
-
"args": {},
|
|
539
|
-
"description": "Remove branch config for CLI",
|
|
540
|
-
"examples": [
|
|
541
|
-
"$ csdx config:remove:base-branch",
|
|
542
|
-
"$ csdx config:remove:base-branch --stack-api-key <value>"
|
|
543
|
-
],
|
|
544
|
-
"flags": {
|
|
545
|
-
"stack-api-key": {
|
|
546
|
-
"char": "k",
|
|
547
|
-
"description": "Stack API key.",
|
|
548
|
-
"name": "stack-api-key",
|
|
549
|
-
"hasDynamicHelp": false,
|
|
550
|
-
"multiple": false,
|
|
551
|
-
"type": "option"
|
|
552
|
-
},
|
|
553
|
-
"yes": {
|
|
554
|
-
"char": "y",
|
|
555
|
-
"description": "Force remove.",
|
|
556
|
-
"name": "yes",
|
|
557
|
-
"allowNo": false,
|
|
558
|
-
"type": "boolean"
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
"hasDynamicHelp": false,
|
|
562
|
-
"hiddenAliases": [],
|
|
563
|
-
"id": "config:remove:base-branch",
|
|
564
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
565
|
-
"pluginName": "@contentstack/cli-config",
|
|
566
|
-
"pluginType": "core",
|
|
567
|
-
"strict": true,
|
|
568
|
-
"isESM": false,
|
|
569
|
-
"relativePath": [
|
|
570
|
-
"lib",
|
|
571
|
-
"commands",
|
|
572
|
-
"config",
|
|
573
|
-
"remove",
|
|
574
|
-
"base-branch.js"
|
|
575
|
-
]
|
|
576
|
-
},
|
|
577
|
-
"config:remove:early-access-header": {
|
|
578
|
-
"aliases": [
|
|
579
|
-
"config:remove:ea-header"
|
|
580
|
-
],
|
|
581
|
-
"args": {},
|
|
582
|
-
"description": "Remove Early Access header",
|
|
583
|
-
"examples": [
|
|
584
|
-
"$ <%= config.bin %> <%= command.id %>",
|
|
585
|
-
"$ <%= config.bin %> <%= command.id %> --header-alias <value>"
|
|
586
|
-
],
|
|
587
|
-
"flags": {
|
|
588
|
-
"header-alias": {
|
|
589
|
-
"description": "(optional) Provide the Early Access header alias name.",
|
|
590
|
-
"name": "header-alias",
|
|
591
|
-
"hasDynamicHelp": false,
|
|
592
|
-
"multiple": false,
|
|
593
|
-
"type": "option"
|
|
594
|
-
},
|
|
595
|
-
"yes": {
|
|
596
|
-
"char": "y",
|
|
597
|
-
"description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
|
|
598
|
-
"name": "yes",
|
|
599
|
-
"allowNo": false,
|
|
600
|
-
"type": "boolean"
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
"hasDynamicHelp": false,
|
|
604
|
-
"hiddenAliases": [],
|
|
605
|
-
"id": "config:remove:early-access-header",
|
|
606
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
607
|
-
"pluginName": "@contentstack/cli-config",
|
|
608
|
-
"pluginType": "core",
|
|
609
|
-
"strict": true,
|
|
610
|
-
"isESM": false,
|
|
611
|
-
"relativePath": [
|
|
612
|
-
"lib",
|
|
613
|
-
"commands",
|
|
614
|
-
"config",
|
|
615
|
-
"remove",
|
|
616
|
-
"early-access-header.js"
|
|
617
|
-
]
|
|
618
|
-
},
|
|
619
|
-
"config:remove:proxy": {
|
|
620
|
-
"aliases": [],
|
|
621
|
-
"args": {},
|
|
622
|
-
"description": "Remove proxy configuration from global config",
|
|
623
|
-
"examples": [
|
|
624
|
-
"csdx config:remove:proxy"
|
|
625
|
-
],
|
|
626
|
-
"flags": {},
|
|
627
|
-
"hasDynamicHelp": false,
|
|
628
|
-
"hiddenAliases": [],
|
|
629
|
-
"id": "config:remove:proxy",
|
|
630
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
631
|
-
"pluginName": "@contentstack/cli-config",
|
|
632
|
-
"pluginType": "core",
|
|
633
|
-
"strict": true,
|
|
634
|
-
"isESM": false,
|
|
635
|
-
"relativePath": [
|
|
636
|
-
"lib",
|
|
637
|
-
"commands",
|
|
638
|
-
"config",
|
|
639
|
-
"remove",
|
|
640
|
-
"proxy.js"
|
|
641
|
-
]
|
|
642
|
-
},
|
|
643
|
-
"config:remove:rate-limit": {
|
|
644
|
-
"aliases": [],
|
|
645
|
-
"args": {},
|
|
646
|
-
"description": "Remove rate-limit of the organization",
|
|
647
|
-
"examples": [
|
|
648
|
-
"$ csdx config:remove:rate-limit --org <<org_uid>>"
|
|
649
|
-
],
|
|
650
|
-
"flags": {
|
|
651
|
-
"org": {
|
|
652
|
-
"description": "Provide the organization UID",
|
|
653
|
-
"name": "org",
|
|
654
|
-
"hasDynamicHelp": false,
|
|
655
|
-
"multiple": false,
|
|
656
|
-
"type": "option"
|
|
657
|
-
}
|
|
658
|
-
},
|
|
659
|
-
"hasDynamicHelp": false,
|
|
660
|
-
"hiddenAliases": [],
|
|
661
|
-
"id": "config:remove:rate-limit",
|
|
662
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
663
|
-
"pluginName": "@contentstack/cli-config",
|
|
664
|
-
"pluginType": "core",
|
|
665
|
-
"strict": true,
|
|
666
|
-
"isESM": false,
|
|
667
|
-
"relativePath": [
|
|
668
|
-
"lib",
|
|
669
|
-
"commands",
|
|
670
|
-
"config",
|
|
671
|
-
"remove",
|
|
672
|
-
"rate-limit.js"
|
|
673
|
-
]
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
|
-
"version": "2.0.0-beta.
|
|
676
|
+
"version": "2.0.0-beta.9"
|
|
677
677
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-config",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.9",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm compile && oclif manifest && oclif readme",
|
|
@@ -10,38 +10,34 @@
|
|
|
10
10
|
"postpack": "rm -f oclif.manifest.json",
|
|
11
11
|
"prepack": "pnpm compile && oclif manifest && oclif readme",
|
|
12
12
|
"version": "oclif readme && git add README.md",
|
|
13
|
-
"test
|
|
14
|
-
"
|
|
15
|
-
"test": "mocha --require ts-node/register 'test/**/*.test.ts'",
|
|
16
|
-
"posttest": "npm run lint",
|
|
17
|
-
"lint": "eslint src/**/*.ts",
|
|
18
|
-
"format": "eslint src/**/*.ts --fix",
|
|
19
|
-
"test:integration": "mocha --forbid-only \"test/run.test.ts\" --integration-test",
|
|
20
|
-
"test:unit": "mocha --forbid-only \"test/unit/**/*.test.ts\" --unit-test",
|
|
21
|
-
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
13
|
+
"test": "mocha \"test/unit/**/*.test.ts\"",
|
|
14
|
+
"lint": "eslint src/**/*.ts"
|
|
22
15
|
},
|
|
23
16
|
"dependencies": {
|
|
24
|
-
"@contentstack/cli-command": "~2.0.0-beta.
|
|
25
|
-
"@contentstack/cli-utilities": "~2.0.0-beta.
|
|
26
|
-
"@contentstack/utils": "~1.
|
|
27
|
-
"@oclif/core": "^4.8.
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
"@contentstack/cli-command": "~2.0.0-beta.7",
|
|
18
|
+
"@contentstack/cli-utilities": "~2.0.0-beta.8",
|
|
19
|
+
"@contentstack/utils": "~1.9.1",
|
|
20
|
+
"@oclif/core": "^4.8.3"
|
|
21
|
+
},
|
|
22
|
+
"overrides": {
|
|
23
|
+
"@oclif/core": {
|
|
24
|
+
"picomatch": "^4.0.4"
|
|
25
|
+
}
|
|
30
26
|
},
|
|
31
27
|
"devDependencies": {
|
|
32
|
-
"@oclif/test": "^4.1.
|
|
28
|
+
"@oclif/test": "^4.1.18",
|
|
33
29
|
"@types/chai": "^4.3.20",
|
|
34
30
|
"@types/mocha": "^8.2.3",
|
|
35
31
|
"@types/node": "^14.18.63",
|
|
36
|
-
"@types/sinon": "^21.0.
|
|
32
|
+
"@types/sinon": "^21.0.1",
|
|
37
33
|
"chai": "^4.5.0",
|
|
38
|
-
"eslint": "^
|
|
34
|
+
"eslint": "^9.26.0",
|
|
39
35
|
"eslint-config-oclif": "^6.0.62",
|
|
40
36
|
"eslint-config-oclif-typescript": "^3.1.14",
|
|
41
37
|
"mocha": "10.8.2",
|
|
42
38
|
"nyc": "^15.1.0",
|
|
43
|
-
"oclif": "^4.
|
|
44
|
-
"sinon": "^21.
|
|
39
|
+
"oclif": "^4.23.0",
|
|
40
|
+
"sinon": "^21.1.2",
|
|
45
41
|
"ts-node": "^10.9.2",
|
|
46
42
|
"typescript": "^4.9.5"
|
|
47
43
|
},
|
|
@@ -67,7 +63,21 @@
|
|
|
67
63
|
"protected": [
|
|
68
64
|
"config:get:region"
|
|
69
65
|
],
|
|
70
|
-
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-config/<%- commandPath %>"
|
|
66
|
+
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-config/<%- commandPath %>",
|
|
67
|
+
"topics": {
|
|
68
|
+
"config": {
|
|
69
|
+
"description": "Perform configuration related activities"
|
|
70
|
+
},
|
|
71
|
+
"config:get": {
|
|
72
|
+
"description": "View the list of set configuration values"
|
|
73
|
+
},
|
|
74
|
+
"config:set": {
|
|
75
|
+
"description": "Set configuration values"
|
|
76
|
+
},
|
|
77
|
+
"config:remove": {
|
|
78
|
+
"description": "Remove set configuration values"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
71
81
|
},
|
|
72
82
|
"csdxConfig": {
|
|
73
83
|
"shortCommandName": {
|