@contentstack/cli-config 1.20.5 → 1.21.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 +3 -2
- package/lib/commands/config/set/region.js +19 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/utils/region-handler.d.ts +1 -10
- package/lib/utils/region-handler.js +20 -42
- package/oclif.manifest.json +146 -139
- package/package.json +4 -4
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/1.
|
|
21
|
+
@contentstack/cli-config/1.21.0 linux-x64 node-v22.23.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -457,7 +457,7 @@ Set region for CLI
|
|
|
457
457
|
```
|
|
458
458
|
USAGE
|
|
459
459
|
$ csdx config:set:region [REGION] [-d <value> -m <value> --ui-host <value> -n <value>] [--developer-hub <value>]
|
|
460
|
-
[--personalize <value>] [--launch <value>] [--studio <value>]
|
|
460
|
+
[--personalize <value>] [--launch <value>] [--studio <value>] [--auth-api <value>]
|
|
461
461
|
|
|
462
462
|
ARGUMENTS
|
|
463
463
|
[REGION] Name for the region
|
|
@@ -468,6 +468,7 @@ FLAGS
|
|
|
468
468
|
-m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host
|
|
469
469
|
and name flags are required
|
|
470
470
|
-n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
|
|
471
|
+
--auth-api=<value> Custom host to set for Auth API
|
|
471
472
|
--developer-hub=<value> Custom host to set for Developer hub API
|
|
472
473
|
--launch=<value> Custom host to set for Launch API
|
|
473
474
|
--personalize=<value> Custom host to set for Personalize API
|
|
@@ -5,6 +5,7 @@ const utils_1 = require("../../../utils");
|
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
6
|
class RegionSetCommand extends base_command_1.BaseCommand {
|
|
7
7
|
async run() {
|
|
8
|
+
var _a;
|
|
8
9
|
const { args, flags: regionSetFlags } = await this.parse(RegionSetCommand);
|
|
9
10
|
let cda = regionSetFlags.cda;
|
|
10
11
|
let cma = regionSetFlags.cma;
|
|
@@ -14,6 +15,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
14
15
|
let personalizeUrl = regionSetFlags['personalize'];
|
|
15
16
|
let launchHubUrl = regionSetFlags['launch'];
|
|
16
17
|
let composableStudioUrl = regionSetFlags['studio'];
|
|
18
|
+
let authUrl = regionSetFlags['auth-api'];
|
|
17
19
|
let selectedRegion = args.region;
|
|
18
20
|
if (!(cda && cma && uiHost && name) && !selectedRegion) {
|
|
19
21
|
selectedRegion = await utils_1.interactive.askRegions();
|
|
@@ -43,6 +45,9 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
43
45
|
if (!composableStudioUrl) {
|
|
44
46
|
composableStudioUrl = this.transformUrl(cma, 'composable-studio-api');
|
|
45
47
|
}
|
|
48
|
+
if (!authUrl) {
|
|
49
|
+
authUrl = this.transformUrl(cma, 'auth-api');
|
|
50
|
+
}
|
|
46
51
|
let customRegion = {
|
|
47
52
|
cda,
|
|
48
53
|
cma,
|
|
@@ -52,6 +57,16 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
52
57
|
personalizeUrl,
|
|
53
58
|
launchHubUrl,
|
|
54
59
|
composableStudioUrl,
|
|
60
|
+
endpoints: {
|
|
61
|
+
contentManagement: cma,
|
|
62
|
+
contentDelivery: cda,
|
|
63
|
+
application: uiHost,
|
|
64
|
+
developerHub: developerHubUrl,
|
|
65
|
+
launch: launchHubUrl,
|
|
66
|
+
personalizeManagement: personalizeUrl,
|
|
67
|
+
composableStudio: composableStudioUrl,
|
|
68
|
+
auth: authUrl,
|
|
69
|
+
},
|
|
55
70
|
};
|
|
56
71
|
customRegion = utils_1.regionHandler.setCustomRegion(customRegion);
|
|
57
72
|
await cli_utilities_1.authHandler.setConfigData('logout'); //Todo: Handle this logout flow well through logout command call
|
|
@@ -63,6 +78,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
63
78
|
cli_utilities_1.cliux.success(`Personalize URL: ${customRegion.personalizeUrl}`);
|
|
64
79
|
cli_utilities_1.cliux.success(`Launch URL: ${customRegion.launchHubUrl}`);
|
|
65
80
|
cli_utilities_1.cliux.success(`Studio URL: ${customRegion.composableStudioUrl}`);
|
|
81
|
+
cli_utilities_1.cliux.success(`Auth API URL: ${(_a = customRegion.endpoints) === null || _a === void 0 ? void 0 : _a.auth}`);
|
|
66
82
|
}
|
|
67
83
|
catch (error) {
|
|
68
84
|
(0, cli_utilities_1.handleAndLogError)(error, Object.assign(Object.assign({}, this.contextDetails), { module: 'config-set-region' }));
|
|
@@ -130,6 +146,9 @@ RegionSetCommand.flags = {
|
|
|
130
146
|
studio: cli_utilities_1.flags.string({
|
|
131
147
|
description: 'Custom host to set for Studio API',
|
|
132
148
|
}),
|
|
149
|
+
'auth-api': cli_utilities_1.flags.string({
|
|
150
|
+
description: 'Custom host to set for Auth API',
|
|
151
|
+
}),
|
|
133
152
|
};
|
|
134
153
|
RegionSetCommand.examples = [
|
|
135
154
|
'$ csdx config:set:region',
|
|
@@ -38,16 +38,7 @@ declare class UserConfig {
|
|
|
38
38
|
* @param { object } regionObject JSON object needs to be sanitized
|
|
39
39
|
* @returns { object } JSON object with only valid keys for region
|
|
40
40
|
*/
|
|
41
|
-
sanitizeRegionObject(regionObject: any):
|
|
42
|
-
cma: any;
|
|
43
|
-
cda: any;
|
|
44
|
-
uiHost: any;
|
|
45
|
-
name: any;
|
|
46
|
-
developerHubUrl: any;
|
|
47
|
-
personalizeUrl: any;
|
|
48
|
-
launchHubUrl: any;
|
|
49
|
-
composableStudioUrl: any;
|
|
50
|
-
};
|
|
41
|
+
sanitizeRegionObject(regionObject: any): import("@contentstack/cli-utilities").CanonicalRegion;
|
|
51
42
|
}
|
|
52
43
|
export { regions };
|
|
53
44
|
declare const _default: UserConfig;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.regions = void 0;
|
|
4
4
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
5
|
-
const utils_1 = require("@contentstack/utils");
|
|
6
5
|
function validURL(str) {
|
|
7
6
|
const pattern = new RegExp('^(https?:\\/\\/)?' + // protocol (http or https)
|
|
8
7
|
'([a-zA-Z0-9.-]+|' + // domain name
|
|
@@ -20,44 +19,18 @@ function validURL(str) {
|
|
|
20
19
|
* @returns {object} Region object with all necessary URLs
|
|
21
20
|
*/
|
|
22
21
|
function getRegionObject(regionKey) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (typeof endpoints === 'string') {
|
|
27
|
-
throw new Error('Invalid endpoint response');
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
name: regionKey,
|
|
31
|
-
cma: endpoints.contentManagement,
|
|
32
|
-
cda: endpoints.contentDelivery,
|
|
33
|
-
uiHost: endpoints.application,
|
|
34
|
-
developerHubUrl: endpoints.developerHub,
|
|
35
|
-
launchHubUrl: endpoints.launch,
|
|
36
|
-
personalizeUrl: endpoints.personalizeManagement,
|
|
37
|
-
composableStudioUrl: endpoints.composableStudio,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
catch (_a) {
|
|
22
|
+
// resolveCanonicalEndpoints handles all aliases defined in regions.json
|
|
23
|
+
const endpoints = (0, cli_utilities_1.resolveCanonicalEndpoints)(regionKey);
|
|
24
|
+
if (!endpoints)
|
|
41
25
|
return null;
|
|
42
|
-
|
|
26
|
+
return (0, cli_utilities_1.buildRegionFromEndpoints)(regionKey, endpoints);
|
|
43
27
|
}
|
|
44
28
|
/**
|
|
45
29
|
* Get all available regions dynamically
|
|
46
30
|
* This creates a regions object similar to the old hardcoded one but using @contentstack/utils
|
|
47
31
|
*/
|
|
48
32
|
function getAvailableRegions() {
|
|
49
|
-
const regionKeys = [
|
|
50
|
-
'NA',
|
|
51
|
-
'AWS-NA',
|
|
52
|
-
'EU',
|
|
53
|
-
'AWS-EU',
|
|
54
|
-
'AU',
|
|
55
|
-
'AWS-AU',
|
|
56
|
-
'AZURE-NA',
|
|
57
|
-
'AZURE-EU',
|
|
58
|
-
'GCP-NA',
|
|
59
|
-
'GCP-EU',
|
|
60
|
-
];
|
|
33
|
+
const regionKeys = ['NA', 'AWS-NA', 'EU', 'AWS-EU', 'AU', 'AWS-AU', 'AZURE-NA', 'AZURE-EU', 'GCP-NA', 'GCP-EU'];
|
|
61
34
|
const regions = {};
|
|
62
35
|
for (const key of regionKeys) {
|
|
63
36
|
const regionObj = getRegionObject(key);
|
|
@@ -142,17 +115,22 @@ class UserConfig {
|
|
|
142
115
|
* @returns { object } JSON object with only valid keys for region
|
|
143
116
|
*/
|
|
144
117
|
sanitizeRegionObject(regionObject) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
118
|
+
var _a;
|
|
119
|
+
// endpoints is the single source of truth — every friendly field (cma, cda, ...,
|
|
120
|
+
// authUrl) is derived from it below via buildRegionFromEndpoints, same as named
|
|
121
|
+
// regions. Falls back to synthesizing endpoints from the individual raw fields
|
|
122
|
+
// when the caller didn't supply one directly.
|
|
123
|
+
const endpoints = (_a = regionObject['endpoints']) !== null && _a !== void 0 ? _a : {
|
|
124
|
+
contentManagement: regionObject.cma,
|
|
125
|
+
contentDelivery: regionObject.cda,
|
|
126
|
+
application: regionObject.uiHost,
|
|
127
|
+
developerHub: regionObject['developerHubUrl'],
|
|
128
|
+
launch: regionObject['launchHubUrl'],
|
|
129
|
+
personalizeManagement: regionObject['personalizeUrl'],
|
|
130
|
+
composableStudio: regionObject['composableStudioUrl'],
|
|
131
|
+
auth: regionObject['authUrl'],
|
|
154
132
|
};
|
|
155
|
-
return
|
|
133
|
+
return (0, cli_utilities_1.buildRegionFromEndpoints)(regionObject.name, endpoints);
|
|
156
134
|
}
|
|
157
135
|
}
|
|
158
136
|
exports.default = new UserConfig();
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,144 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"config:remove:base-branch": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Remove branch config for CLI",
|
|
7
|
+
"examples": [
|
|
8
|
+
"$ csdx config:remove:base-branch",
|
|
9
|
+
"$ csdx config:remove:base-branch --stack-api-key <value>"
|
|
10
|
+
],
|
|
11
|
+
"flags": {
|
|
12
|
+
"stack-api-key": {
|
|
13
|
+
"char": "k",
|
|
14
|
+
"description": "Stack API key.",
|
|
15
|
+
"name": "stack-api-key",
|
|
16
|
+
"hasDynamicHelp": false,
|
|
17
|
+
"multiple": false,
|
|
18
|
+
"type": "option"
|
|
19
|
+
},
|
|
20
|
+
"yes": {
|
|
21
|
+
"char": "y",
|
|
22
|
+
"description": "Force remove.",
|
|
23
|
+
"name": "yes",
|
|
24
|
+
"allowNo": false,
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"hasDynamicHelp": false,
|
|
29
|
+
"hiddenAliases": [],
|
|
30
|
+
"id": "config:remove:base-branch",
|
|
31
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
32
|
+
"pluginName": "@contentstack/cli-config",
|
|
33
|
+
"pluginType": "core",
|
|
34
|
+
"strict": true,
|
|
35
|
+
"isESM": false,
|
|
36
|
+
"relativePath": [
|
|
37
|
+
"lib",
|
|
38
|
+
"commands",
|
|
39
|
+
"config",
|
|
40
|
+
"remove",
|
|
41
|
+
"base-branch.js"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"config:remove:early-access-header": {
|
|
45
|
+
"aliases": [
|
|
46
|
+
"config:remove:ea-header"
|
|
47
|
+
],
|
|
48
|
+
"args": {},
|
|
49
|
+
"description": "Remove Early Access header",
|
|
50
|
+
"examples": [
|
|
51
|
+
"$ <%= config.bin %> <%= command.id %>",
|
|
52
|
+
"$ <%= config.bin %> <%= command.id %> --header-alias <value>"
|
|
53
|
+
],
|
|
54
|
+
"flags": {
|
|
55
|
+
"header-alias": {
|
|
56
|
+
"description": "(optional) Provide the Early Access header alias name.",
|
|
57
|
+
"name": "header-alias",
|
|
58
|
+
"hasDynamicHelp": false,
|
|
59
|
+
"multiple": false,
|
|
60
|
+
"type": "option"
|
|
61
|
+
},
|
|
62
|
+
"yes": {
|
|
63
|
+
"char": "y",
|
|
64
|
+
"description": "(optional) Force the removal of Early Access header configuration by skipping the confirmation.",
|
|
65
|
+
"name": "yes",
|
|
66
|
+
"allowNo": false,
|
|
67
|
+
"type": "boolean"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"hasDynamicHelp": false,
|
|
71
|
+
"hiddenAliases": [],
|
|
72
|
+
"id": "config:remove:early-access-header",
|
|
73
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
74
|
+
"pluginName": "@contentstack/cli-config",
|
|
75
|
+
"pluginType": "core",
|
|
76
|
+
"strict": true,
|
|
77
|
+
"isESM": false,
|
|
78
|
+
"relativePath": [
|
|
79
|
+
"lib",
|
|
80
|
+
"commands",
|
|
81
|
+
"config",
|
|
82
|
+
"remove",
|
|
83
|
+
"early-access-header.js"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"config:remove:proxy": {
|
|
87
|
+
"aliases": [],
|
|
88
|
+
"args": {},
|
|
89
|
+
"description": "Remove proxy configuration from global config",
|
|
90
|
+
"examples": [
|
|
91
|
+
"csdx config:remove:proxy"
|
|
92
|
+
],
|
|
93
|
+
"flags": {},
|
|
94
|
+
"hasDynamicHelp": false,
|
|
95
|
+
"hiddenAliases": [],
|
|
96
|
+
"id": "config:remove:proxy",
|
|
97
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
98
|
+
"pluginName": "@contentstack/cli-config",
|
|
99
|
+
"pluginType": "core",
|
|
100
|
+
"strict": true,
|
|
101
|
+
"isESM": false,
|
|
102
|
+
"relativePath": [
|
|
103
|
+
"lib",
|
|
104
|
+
"commands",
|
|
105
|
+
"config",
|
|
106
|
+
"remove",
|
|
107
|
+
"proxy.js"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"config:remove:rate-limit": {
|
|
111
|
+
"aliases": [],
|
|
112
|
+
"args": {},
|
|
113
|
+
"description": "Remove rate-limit of the organization",
|
|
114
|
+
"examples": [
|
|
115
|
+
"$ csdx config:remove:rate-limit --org <<org_uid>>"
|
|
116
|
+
],
|
|
117
|
+
"flags": {
|
|
118
|
+
"org": {
|
|
119
|
+
"description": "Provide the organization UID",
|
|
120
|
+
"name": "org",
|
|
121
|
+
"hasDynamicHelp": false,
|
|
122
|
+
"multiple": false,
|
|
123
|
+
"type": "option"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"hiddenAliases": [],
|
|
128
|
+
"id": "config:remove:rate-limit",
|
|
129
|
+
"pluginAlias": "@contentstack/cli-config",
|
|
130
|
+
"pluginName": "@contentstack/cli-config",
|
|
131
|
+
"pluginType": "core",
|
|
132
|
+
"strict": true,
|
|
133
|
+
"isESM": false,
|
|
134
|
+
"relativePath": [
|
|
135
|
+
"lib",
|
|
136
|
+
"commands",
|
|
137
|
+
"config",
|
|
138
|
+
"remove",
|
|
139
|
+
"rate-limit.js"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
3
142
|
"config:get:base-branch": {
|
|
4
143
|
"aliases": [],
|
|
5
144
|
"args": {},
|
|
@@ -509,142 +648,10 @@
|
|
|
509
648
|
"hasDynamicHelp": false,
|
|
510
649
|
"multiple": false,
|
|
511
650
|
"type": "option"
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"hasDynamicHelp": false,
|
|
515
|
-
"hiddenAliases": [],
|
|
516
|
-
"id": "config:set:region",
|
|
517
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
518
|
-
"pluginName": "@contentstack/cli-config",
|
|
519
|
-
"pluginType": "core",
|
|
520
|
-
"strict": true,
|
|
521
|
-
"isESM": false,
|
|
522
|
-
"relativePath": [
|
|
523
|
-
"lib",
|
|
524
|
-
"commands",
|
|
525
|
-
"config",
|
|
526
|
-
"set",
|
|
527
|
-
"region.js"
|
|
528
|
-
]
|
|
529
|
-
},
|
|
530
|
-
"config:remove:base-branch": {
|
|
531
|
-
"aliases": [],
|
|
532
|
-
"args": {},
|
|
533
|
-
"description": "Remove branch config for CLI",
|
|
534
|
-
"examples": [
|
|
535
|
-
"$ csdx config:remove:base-branch",
|
|
536
|
-
"$ csdx config:remove:base-branch --stack-api-key <value>"
|
|
537
|
-
],
|
|
538
|
-
"flags": {
|
|
539
|
-
"stack-api-key": {
|
|
540
|
-
"char": "k",
|
|
541
|
-
"description": "Stack API key.",
|
|
542
|
-
"name": "stack-api-key",
|
|
543
|
-
"hasDynamicHelp": false,
|
|
544
|
-
"multiple": false,
|
|
545
|
-
"type": "option"
|
|
546
|
-
},
|
|
547
|
-
"yes": {
|
|
548
|
-
"char": "y",
|
|
549
|
-
"description": "Force remove.",
|
|
550
|
-
"name": "yes",
|
|
551
|
-
"allowNo": false,
|
|
552
|
-
"type": "boolean"
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
"hasDynamicHelp": false,
|
|
556
|
-
"hiddenAliases": [],
|
|
557
|
-
"id": "config:remove:base-branch",
|
|
558
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
559
|
-
"pluginName": "@contentstack/cli-config",
|
|
560
|
-
"pluginType": "core",
|
|
561
|
-
"strict": true,
|
|
562
|
-
"isESM": false,
|
|
563
|
-
"relativePath": [
|
|
564
|
-
"lib",
|
|
565
|
-
"commands",
|
|
566
|
-
"config",
|
|
567
|
-
"remove",
|
|
568
|
-
"base-branch.js"
|
|
569
|
-
]
|
|
570
|
-
},
|
|
571
|
-
"config:remove:early-access-header": {
|
|
572
|
-
"aliases": [
|
|
573
|
-
"config:remove:ea-header"
|
|
574
|
-
],
|
|
575
|
-
"args": {},
|
|
576
|
-
"description": "Remove Early Access header",
|
|
577
|
-
"examples": [
|
|
578
|
-
"$ <%= config.bin %> <%= command.id %>",
|
|
579
|
-
"$ <%= config.bin %> <%= command.id %> --header-alias <value>"
|
|
580
|
-
],
|
|
581
|
-
"flags": {
|
|
582
|
-
"header-alias": {
|
|
583
|
-
"description": "(optional) Provide the Early Access header alias name.",
|
|
584
|
-
"name": "header-alias",
|
|
585
|
-
"hasDynamicHelp": false,
|
|
586
|
-
"multiple": false,
|
|
587
|
-
"type": "option"
|
|
588
651
|
},
|
|
589
|
-
"
|
|
590
|
-
"
|
|
591
|
-
"
|
|
592
|
-
"name": "yes",
|
|
593
|
-
"allowNo": false,
|
|
594
|
-
"type": "boolean"
|
|
595
|
-
}
|
|
596
|
-
},
|
|
597
|
-
"hasDynamicHelp": false,
|
|
598
|
-
"hiddenAliases": [],
|
|
599
|
-
"id": "config:remove:early-access-header",
|
|
600
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
601
|
-
"pluginName": "@contentstack/cli-config",
|
|
602
|
-
"pluginType": "core",
|
|
603
|
-
"strict": true,
|
|
604
|
-
"isESM": false,
|
|
605
|
-
"relativePath": [
|
|
606
|
-
"lib",
|
|
607
|
-
"commands",
|
|
608
|
-
"config",
|
|
609
|
-
"remove",
|
|
610
|
-
"early-access-header.js"
|
|
611
|
-
]
|
|
612
|
-
},
|
|
613
|
-
"config:remove:proxy": {
|
|
614
|
-
"aliases": [],
|
|
615
|
-
"args": {},
|
|
616
|
-
"description": "Remove proxy configuration from global config",
|
|
617
|
-
"examples": [
|
|
618
|
-
"csdx config:remove:proxy"
|
|
619
|
-
],
|
|
620
|
-
"flags": {},
|
|
621
|
-
"hasDynamicHelp": false,
|
|
622
|
-
"hiddenAliases": [],
|
|
623
|
-
"id": "config:remove:proxy",
|
|
624
|
-
"pluginAlias": "@contentstack/cli-config",
|
|
625
|
-
"pluginName": "@contentstack/cli-config",
|
|
626
|
-
"pluginType": "core",
|
|
627
|
-
"strict": true,
|
|
628
|
-
"isESM": false,
|
|
629
|
-
"relativePath": [
|
|
630
|
-
"lib",
|
|
631
|
-
"commands",
|
|
632
|
-
"config",
|
|
633
|
-
"remove",
|
|
634
|
-
"proxy.js"
|
|
635
|
-
]
|
|
636
|
-
},
|
|
637
|
-
"config:remove:rate-limit": {
|
|
638
|
-
"aliases": [],
|
|
639
|
-
"args": {},
|
|
640
|
-
"description": "Remove rate-limit of the organization",
|
|
641
|
-
"examples": [
|
|
642
|
-
"$ csdx config:remove:rate-limit --org <<org_uid>>"
|
|
643
|
-
],
|
|
644
|
-
"flags": {
|
|
645
|
-
"org": {
|
|
646
|
-
"description": "Provide the organization UID",
|
|
647
|
-
"name": "org",
|
|
652
|
+
"auth-api": {
|
|
653
|
+
"description": "Custom host to set for Auth API",
|
|
654
|
+
"name": "auth-api",
|
|
648
655
|
"hasDynamicHelp": false,
|
|
649
656
|
"multiple": false,
|
|
650
657
|
"type": "option"
|
|
@@ -652,7 +659,7 @@
|
|
|
652
659
|
},
|
|
653
660
|
"hasDynamicHelp": false,
|
|
654
661
|
"hiddenAliases": [],
|
|
655
|
-
"id": "config:
|
|
662
|
+
"id": "config:set:region",
|
|
656
663
|
"pluginAlias": "@contentstack/cli-config",
|
|
657
664
|
"pluginName": "@contentstack/cli-config",
|
|
658
665
|
"pluginType": "core",
|
|
@@ -662,10 +669,10 @@
|
|
|
662
669
|
"lib",
|
|
663
670
|
"commands",
|
|
664
671
|
"config",
|
|
665
|
-
"
|
|
666
|
-
"
|
|
672
|
+
"set",
|
|
673
|
+
"region.js"
|
|
667
674
|
]
|
|
668
675
|
}
|
|
669
676
|
},
|
|
670
|
-
"version": "1.
|
|
677
|
+
"version": "1.21.0"
|
|
671
678
|
}
|
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": "1.
|
|
4
|
+
"version": "1.21.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm compile && oclif manifest && oclif readme",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"lint": "eslint src/**/*.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@contentstack/cli-command": "~1.8.
|
|
18
|
-
"@contentstack/cli-utilities": "~1.
|
|
17
|
+
"@contentstack/cli-command": "~1.8.5",
|
|
18
|
+
"@contentstack/cli-utilities": "~1.19.0",
|
|
19
19
|
"@contentstack/utils": "~1.9.1",
|
|
20
20
|
"@oclif/core": "^4.11.4"
|
|
21
21
|
},
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"repository": "contentstack/cli"
|
|
94
|
-
}
|
|
94
|
+
}
|