@contentstack/cli-config 1.15.2 → 1.16.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 +18 -14
- package/lib/commands/config/get/base-branch.js +1 -1
- package/lib/commands/config/get/early-access-header.js +1 -1
- package/lib/commands/config/get/log.js +1 -1
- package/lib/commands/config/get/region.js +5 -5
- package/lib/commands/config/remove/base-branch.js +1 -1
- package/lib/commands/config/remove/rate-limit.js +1 -1
- package/lib/commands/config/set/rate-limit.js +3 -3
- package/lib/commands/config/set/region.js +28 -9
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/utils/region-handler.d.ts +11 -0
- package/lib/utils/region-handler.js +11 -0
- package/oclif.manifest.json +10 -2
- package/package.json +3 -3
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.16.0 linux-x64 node-v22.21.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -392,22 +392,24 @@ Set region for CLI
|
|
|
392
392
|
```
|
|
393
393
|
USAGE
|
|
394
394
|
$ csdx config:set:region [REGION] [-d <value> -m <value> --ui-host <value> -n <value>] [--developer-hub <value>]
|
|
395
|
-
[--personalize <value>] [--launch <value>]
|
|
395
|
+
[--personalize <value>] [--launch <value>] [--composable-studio <value>]
|
|
396
396
|
|
|
397
397
|
ARGUMENTS
|
|
398
|
-
REGION Name for the region
|
|
398
|
+
[REGION] Name for the region
|
|
399
399
|
|
|
400
400
|
FLAGS
|
|
401
|
-
-d, --cda=<value>
|
|
402
|
-
|
|
403
|
-
-m, --cma=<value>
|
|
404
|
-
|
|
405
|
-
-n, --name=<value>
|
|
406
|
-
|
|
407
|
-
--
|
|
408
|
-
--
|
|
409
|
-
--
|
|
410
|
-
|
|
401
|
+
-d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host
|
|
402
|
+
and name flags are required
|
|
403
|
+
-m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda,
|
|
404
|
+
ui-host and name flags are required
|
|
405
|
+
-n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are
|
|
406
|
+
required
|
|
407
|
+
--composable-studio=<value> Custom host to set for Composable Studio API
|
|
408
|
+
--developer-hub=<value> Custom host to set for Developer hub API
|
|
409
|
+
--launch=<value> Custom host to set for Launch API
|
|
410
|
+
--personalize=<value> Custom host to set for Personalize API
|
|
411
|
+
--ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
|
|
412
|
+
required
|
|
411
413
|
|
|
412
414
|
DESCRIPTION
|
|
413
415
|
Set region for CLI
|
|
@@ -437,7 +439,9 @@ EXAMPLES
|
|
|
437
439
|
|
|
438
440
|
$ 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>
|
|
439
441
|
|
|
440
|
-
$ csdx config:set:region --
|
|
442
|
+
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --composable-studio <custom_composable_studio_url>
|
|
443
|
+
|
|
444
|
+
$ 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> --composable-studio <custom_composable_studio_url>
|
|
441
445
|
```
|
|
442
446
|
|
|
443
447
|
_See code: [src/commands/config/set/region.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
|
|
@@ -22,7 +22,7 @@ class GetEarlyAccessHeaderCommand extends cli_command_1.Command {
|
|
|
22
22
|
cli_utilities_1.cliux.table(tableHeaders, tableData);
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
|
-
cli_utilities_1.cliux.print(`
|
|
25
|
+
cli_utilities_1.cliux.print(`Early Access header not found.`, { color: 'red' });
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
@@ -6,14 +6,14 @@ class RegionGetCommand extends base_command_1.BaseCommand {
|
|
|
6
6
|
async run() {
|
|
7
7
|
let currentRegion = this.region;
|
|
8
8
|
if (!currentRegion) {
|
|
9
|
-
this.logger.error('No region set');
|
|
9
|
+
this.logger.error('No region is set.');
|
|
10
10
|
cli_utilities_1.cliux.error('CLI_CONFIG_GET_REGION_NOT_FOUND');
|
|
11
11
|
this.exit();
|
|
12
12
|
}
|
|
13
|
-
cli_utilities_1.cliux.print(`Currently using ${currentRegion.name} region
|
|
14
|
-
cli_utilities_1.cliux.print(`CDA
|
|
15
|
-
cli_utilities_1.cliux.print(`CMA
|
|
16
|
-
cli_utilities_1.cliux.print(`UI
|
|
13
|
+
cli_utilities_1.cliux.print(`Currently using the '${currentRegion.name}' region.`);
|
|
14
|
+
cli_utilities_1.cliux.print(`CDA host: ${currentRegion.cda}`);
|
|
15
|
+
cli_utilities_1.cliux.print(`CMA host: ${currentRegion.cma}`);
|
|
16
|
+
cli_utilities_1.cliux.print(`UI host: ${currentRegion.uiHost}`);
|
|
17
17
|
cli_utilities_1.cliux.print(`Developer Hub URL: ${currentRegion.developerHubUrl}`);
|
|
18
18
|
cli_utilities_1.cliux.print(`Launch URL: ${currentRegion.launchHubUrl}`);
|
|
19
19
|
cli_utilities_1.cliux.print(`Personalize URL: ${currentRegion.personalizeUrl}`);
|
|
@@ -11,7 +11,7 @@ class RemoveBranchConfigCommand extends cli_command_1.Command {
|
|
|
11
11
|
configRemoveFlags['stack-api-key'] = await utils_1.interactive.askStackAPIKey();
|
|
12
12
|
}
|
|
13
13
|
if (cli_utilities_1.configHandler.get(`baseBranch.${configRemoveFlags['stack-api-key']}`) === undefined) {
|
|
14
|
-
cli_utilities_1.cliux.error(`No
|
|
14
|
+
cli_utilities_1.cliux.error(`No configuration found for stack API key: ${configRemoveFlags['stack-api-key']}`);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
@@ -13,7 +13,7 @@ class RateLimitRemoveCommand extends cli_command_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
const rateLimit = cli_utilities_1.configHandler.get('rateLimit') || {};
|
|
15
15
|
if (!rateLimit[org]) {
|
|
16
|
-
cli_utilities_1.cliux.print(`No rate limit found for
|
|
16
|
+
cli_utilities_1.cliux.print(`No rate limit found for organization UID ${org}`, { color: 'red' });
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
cli_utilities_1.configHandler.delete(`rateLimit.${org}`);
|
|
@@ -24,11 +24,11 @@ class SetRateLimitCommand extends base_command_1.BaseCommand {
|
|
|
24
24
|
if (utilize) {
|
|
25
25
|
const utilizeValues = (_a = utilize === null || utilize === void 0 ? void 0 : utilize.split(',')) === null || _a === void 0 ? void 0 : _a.map((u) => Number(u.trim()));
|
|
26
26
|
if (utilizeValues.some((u) => isNaN(u) || u < 0 || u > 100)) {
|
|
27
|
-
cli_utilities_1.cliux.error('
|
|
27
|
+
cli_utilities_1.cliux.error('Utilization percentages must be numbers between 0 and 100.');
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
if ((limitName === null || limitName === void 0 ? void 0 : limitName.length) > 0 && ((_c = (_b = limitName[0]) === null || _b === void 0 ? void 0 : _b.split(',')) === null || _c === void 0 ? void 0 : _c.length) !== utilizeValues.length) {
|
|
31
|
-
cli_utilities_1.cliux.error('The number of utilization percentages must match the number of limit names
|
|
31
|
+
cli_utilities_1.cliux.error('The number of utilization percentages must match the number of limit names.');
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
@@ -56,7 +56,7 @@ class SetRateLimitCommand extends base_command_1.BaseCommand {
|
|
|
56
56
|
cli_utilities_1.cliux.error(error.message);
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
cli_utilities_1.cliux.error(`Error:
|
|
59
|
+
cli_utilities_1.cliux.error(`Error: Failed to set rate limits for organization UID ${org}`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -13,6 +13,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
13
13
|
let developerHubUrl = regionSetFlags['developer-hub'];
|
|
14
14
|
let personalizeUrl = regionSetFlags['personalize'];
|
|
15
15
|
let launchHubUrl = regionSetFlags['launch'];
|
|
16
|
+
let composableStudioUrl = regionSetFlags['composable-studio'];
|
|
16
17
|
let selectedRegion = args.region;
|
|
17
18
|
if (!(cda && cma && uiHost && name) && !selectedRegion) {
|
|
18
19
|
selectedRegion = await utils_1.interactive.askRegions();
|
|
@@ -39,16 +40,29 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
39
40
|
if (!personalizeUrl) {
|
|
40
41
|
personalizeUrl = this.transformUrl(cma, 'personalize-api');
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
+
if (!composableStudioUrl) {
|
|
44
|
+
composableStudioUrl = this.transformUrl(cma, 'composable-studio-api');
|
|
45
|
+
}
|
|
46
|
+
let customRegion = {
|
|
47
|
+
cda,
|
|
48
|
+
cma,
|
|
49
|
+
uiHost,
|
|
50
|
+
name,
|
|
51
|
+
developerHubUrl,
|
|
52
|
+
personalizeUrl,
|
|
53
|
+
launchHubUrl,
|
|
54
|
+
composableStudioUrl,
|
|
55
|
+
};
|
|
43
56
|
customRegion = utils_1.regionHandler.setCustomRegion(customRegion);
|
|
44
57
|
await cli_utilities_1.authHandler.setConfigData('logout'); //Todo: Handle this logout flow well through logout command call
|
|
45
58
|
cli_utilities_1.cliux.success(`Custom region has been set to ${customRegion.name}`);
|
|
46
|
-
cli_utilities_1.cliux.success(`CMA
|
|
47
|
-
cli_utilities_1.cliux.success(`CDA
|
|
48
|
-
cli_utilities_1.cliux.success(`UI
|
|
59
|
+
cli_utilities_1.cliux.success(`CMA host: ${customRegion.cma}`);
|
|
60
|
+
cli_utilities_1.cliux.success(`CDA host: ${customRegion.cda}`);
|
|
61
|
+
cli_utilities_1.cliux.success(`UI host: ${customRegion.uiHost}`);
|
|
49
62
|
cli_utilities_1.cliux.success(`Developer Hub URL: ${customRegion.developerHubUrl}`);
|
|
50
63
|
cli_utilities_1.cliux.success(`Personalize URL: ${customRegion.personalizeUrl}`);
|
|
51
64
|
cli_utilities_1.cliux.success(`Launch URL: ${customRegion.launchHubUrl}`);
|
|
65
|
+
cli_utilities_1.cliux.success(`Composable Studio URL: ${customRegion.composableStudioUrl}`);
|
|
52
66
|
}
|
|
53
67
|
catch (error) {
|
|
54
68
|
this.logger.error('failed to set the region', error);
|
|
@@ -59,15 +73,16 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
59
73
|
const regionDetails = utils_1.regionHandler.setRegion(selectedRegion);
|
|
60
74
|
await cli_utilities_1.authHandler.setConfigData('logout'); //Todo: Handle this logout flow well through logout command call
|
|
61
75
|
cli_utilities_1.cliux.success(`Region has been set to ${regionDetails.name}`);
|
|
62
|
-
cli_utilities_1.cliux.success(`CDA
|
|
63
|
-
cli_utilities_1.cliux.success(`CMA
|
|
64
|
-
cli_utilities_1.cliux.success(`UI
|
|
76
|
+
cli_utilities_1.cliux.success(`CDA host: ${regionDetails.cda}`);
|
|
77
|
+
cli_utilities_1.cliux.success(`CMA host: ${regionDetails.cma}`);
|
|
78
|
+
cli_utilities_1.cliux.success(`UI host: ${regionDetails.uiHost}`);
|
|
65
79
|
cli_utilities_1.cliux.success(`Developer Hub URL: ${regionDetails.developerHubUrl}`);
|
|
66
80
|
cli_utilities_1.cliux.success(`Personalize URL: ${regionDetails.personalizeUrl}`);
|
|
67
81
|
cli_utilities_1.cliux.success(`Launch URL: ${regionDetails.launchHubUrl}`);
|
|
82
|
+
cli_utilities_1.cliux.success(`Composable Studio URL: ${regionDetails.composableStudioUrl}`);
|
|
68
83
|
}
|
|
69
84
|
else {
|
|
70
|
-
cli_utilities_1.cliux.error(`Invalid region
|
|
85
|
+
cli_utilities_1.cliux.error(`Invalid region specified.`);
|
|
71
86
|
}
|
|
72
87
|
}
|
|
73
88
|
transformUrl(url, replacement) {
|
|
@@ -113,6 +128,9 @@ RegionSetCommand.flags = {
|
|
|
113
128
|
launch: cli_utilities_1.flags.string({
|
|
114
129
|
description: 'Custom host to set for Launch API',
|
|
115
130
|
}),
|
|
131
|
+
'composable-studio': cli_utilities_1.flags.string({
|
|
132
|
+
description: 'Custom host to set for Composable Studio API',
|
|
133
|
+
}),
|
|
116
134
|
};
|
|
117
135
|
RegionSetCommand.examples = [
|
|
118
136
|
'$ csdx config:set:region',
|
|
@@ -127,7 +145,8 @@ RegionSetCommand.examples = [
|
|
|
127
145
|
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url>',
|
|
128
146
|
'$ 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>',
|
|
129
147
|
'$ 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>',
|
|
130
|
-
'$ csdx config:set:region --
|
|
148
|
+
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --composable-studio <custom_composable_studio_url>',
|
|
149
|
+
'$ 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> --composable-studio <custom_composable_studio_url>',
|
|
131
150
|
];
|
|
132
151
|
RegionSetCommand.args = {
|
|
133
152
|
region: cli_utilities_1.args.string({ description: 'Name for the region' }),
|
|
@@ -7,6 +7,7 @@ declare const regions: {
|
|
|
7
7
|
developerHubUrl: string;
|
|
8
8
|
launchHubUrl: string;
|
|
9
9
|
personalizeUrl: string;
|
|
10
|
+
composableStudioUrl: string;
|
|
10
11
|
};
|
|
11
12
|
'AWS-NA': {
|
|
12
13
|
name: string;
|
|
@@ -16,6 +17,7 @@ declare const regions: {
|
|
|
16
17
|
developerHubUrl: string;
|
|
17
18
|
launchHubUrl: string;
|
|
18
19
|
personalizeUrl: string;
|
|
20
|
+
composableStudioUrl: string;
|
|
19
21
|
};
|
|
20
22
|
EU: {
|
|
21
23
|
name: string;
|
|
@@ -25,6 +27,7 @@ declare const regions: {
|
|
|
25
27
|
developerHubUrl: string;
|
|
26
28
|
launchHubUrl: string;
|
|
27
29
|
personalizeUrl: string;
|
|
30
|
+
composableStudioUrl: string;
|
|
28
31
|
};
|
|
29
32
|
'AWS-EU': {
|
|
30
33
|
name: string;
|
|
@@ -34,6 +37,7 @@ declare const regions: {
|
|
|
34
37
|
developerHubUrl: string;
|
|
35
38
|
launchHubUrl: string;
|
|
36
39
|
personalizeUrl: string;
|
|
40
|
+
composableStudioUrl: string;
|
|
37
41
|
};
|
|
38
42
|
AU: {
|
|
39
43
|
name: string;
|
|
@@ -43,6 +47,7 @@ declare const regions: {
|
|
|
43
47
|
developerHubUrl: string;
|
|
44
48
|
launchHubUrl: string;
|
|
45
49
|
personalizeUrl: string;
|
|
50
|
+
composableStudioUrl: string;
|
|
46
51
|
};
|
|
47
52
|
'AWS-AU': {
|
|
48
53
|
name: string;
|
|
@@ -52,6 +57,7 @@ declare const regions: {
|
|
|
52
57
|
developerHubUrl: string;
|
|
53
58
|
launchHubUrl: string;
|
|
54
59
|
personalizeUrl: string;
|
|
60
|
+
composableStudioUrl: string;
|
|
55
61
|
};
|
|
56
62
|
'AZURE-NA': {
|
|
57
63
|
name: string;
|
|
@@ -61,6 +67,7 @@ declare const regions: {
|
|
|
61
67
|
developerHubUrl: string;
|
|
62
68
|
launchHubUrl: string;
|
|
63
69
|
personalizeUrl: string;
|
|
70
|
+
composableStudioUrl: string;
|
|
64
71
|
};
|
|
65
72
|
'AZURE-EU': {
|
|
66
73
|
name: string;
|
|
@@ -70,6 +77,7 @@ declare const regions: {
|
|
|
70
77
|
developerHubUrl: string;
|
|
71
78
|
launchHubUrl: string;
|
|
72
79
|
personalizeUrl: string;
|
|
80
|
+
composableStudioUrl: string;
|
|
73
81
|
};
|
|
74
82
|
'GCP-NA': {
|
|
75
83
|
name: string;
|
|
@@ -79,6 +87,7 @@ declare const regions: {
|
|
|
79
87
|
developerHubUrl: string;
|
|
80
88
|
launchHubUrl: string;
|
|
81
89
|
personalizeUrl: string;
|
|
90
|
+
composableStudioUrl: string;
|
|
82
91
|
};
|
|
83
92
|
'GCP-EU': {
|
|
84
93
|
name: string;
|
|
@@ -88,6 +97,7 @@ declare const regions: {
|
|
|
88
97
|
developerHubUrl: string;
|
|
89
98
|
launchHubUrl: string;
|
|
90
99
|
personalizeUrl: string;
|
|
100
|
+
composableStudioUrl: string;
|
|
91
101
|
};
|
|
92
102
|
};
|
|
93
103
|
declare class UserConfig {
|
|
@@ -136,6 +146,7 @@ declare class UserConfig {
|
|
|
136
146
|
developerHubUrl: any;
|
|
137
147
|
personalizeUrl: any;
|
|
138
148
|
launchHubUrl: any;
|
|
149
|
+
composableStudioUrl: any;
|
|
139
150
|
};
|
|
140
151
|
}
|
|
141
152
|
export { regions };
|
|
@@ -23,6 +23,7 @@ const regions = {
|
|
|
23
23
|
developerHubUrl: 'https://developerhub-api.contentstack.com',
|
|
24
24
|
launchHubUrl: 'https://launch-api.contentstack.com',
|
|
25
25
|
personalizeUrl: 'https://personalize-api.contentstack.com',
|
|
26
|
+
composableStudioUrl: 'https://composable-studio-api.contentstack.com',
|
|
26
27
|
},
|
|
27
28
|
'AWS-NA': {
|
|
28
29
|
name: 'AWS-NA',
|
|
@@ -32,6 +33,7 @@ const regions = {
|
|
|
32
33
|
developerHubUrl: 'https://developerhub-api.contentstack.com',
|
|
33
34
|
launchHubUrl: 'https://launch-api.contentstack.com',
|
|
34
35
|
personalizeUrl: 'https://personalize-api.contentstack.com',
|
|
36
|
+
composableStudioUrl: 'https://composable-studio-api.contentstack.com',
|
|
35
37
|
},
|
|
36
38
|
EU: {
|
|
37
39
|
name: 'EU',
|
|
@@ -41,6 +43,7 @@ const regions = {
|
|
|
41
43
|
developerHubUrl: 'https://eu-developerhub-api.contentstack.com',
|
|
42
44
|
launchHubUrl: 'https://eu-launch-api.contentstack.com',
|
|
43
45
|
personalizeUrl: 'https://eu-personalize-api.contentstack.com',
|
|
46
|
+
composableStudioUrl: 'https://eu-composable-studio-api.contentstack.com',
|
|
44
47
|
},
|
|
45
48
|
'AWS-EU': {
|
|
46
49
|
name: 'AWS-EU',
|
|
@@ -50,6 +53,7 @@ const regions = {
|
|
|
50
53
|
developerHubUrl: 'https://eu-developerhub-api.contentstack.com',
|
|
51
54
|
launchHubUrl: 'https://eu-launch-api.contentstack.com',
|
|
52
55
|
personalizeUrl: 'https://eu-personalize-api.contentstack.com',
|
|
56
|
+
composableStudioUrl: 'https://eu-composable-studio-api.contentstack.com',
|
|
53
57
|
},
|
|
54
58
|
AU: {
|
|
55
59
|
name: 'AU',
|
|
@@ -59,6 +63,7 @@ const regions = {
|
|
|
59
63
|
developerHubUrl: 'https://au-developerhub-api.contentstack.com',
|
|
60
64
|
launchHubUrl: 'https://au-launch-api.contentstack.com',
|
|
61
65
|
personalizeUrl: 'https://au-personalize-api.contentstack.com',
|
|
66
|
+
composableStudioUrl: 'https://au-composable-studio-api.contentstack.com',
|
|
62
67
|
},
|
|
63
68
|
'AWS-AU': {
|
|
64
69
|
name: 'AWS-AU',
|
|
@@ -68,6 +73,7 @@ const regions = {
|
|
|
68
73
|
developerHubUrl: 'https://au-developerhub-api.contentstack.com',
|
|
69
74
|
launchHubUrl: 'https://au-launch-api.contentstack.com',
|
|
70
75
|
personalizeUrl: 'https://au-personalize-api.contentstack.com',
|
|
76
|
+
composableStudioUrl: 'https://au-composable-studio-api.contentstack.com',
|
|
71
77
|
},
|
|
72
78
|
'AZURE-NA': {
|
|
73
79
|
name: 'AZURE-NA',
|
|
@@ -77,6 +83,7 @@ const regions = {
|
|
|
77
83
|
developerHubUrl: 'https://azure-na-developerhub-api.contentstack.com',
|
|
78
84
|
launchHubUrl: 'https://azure-na-launch-api.contentstack.com',
|
|
79
85
|
personalizeUrl: 'https://azure-na-personalize-api.contentstack.com',
|
|
86
|
+
composableStudioUrl: 'https://azure-na-composable-studio-api.contentstack.com',
|
|
80
87
|
},
|
|
81
88
|
'AZURE-EU': {
|
|
82
89
|
name: 'AZURE-EU',
|
|
@@ -86,6 +93,7 @@ const regions = {
|
|
|
86
93
|
developerHubUrl: 'https://azure-eu-developerhub-api.contentstack.com',
|
|
87
94
|
launchHubUrl: 'https://azure-eu-launch-api.contentstack.com',
|
|
88
95
|
personalizeUrl: 'https://azure-eu-personalize-api.contentstack.com',
|
|
96
|
+
composableStudioUrl: 'https://azure-eu-composable-studio-api.contentstack.com',
|
|
89
97
|
},
|
|
90
98
|
'GCP-NA': {
|
|
91
99
|
name: 'GCP-NA',
|
|
@@ -95,6 +103,7 @@ const regions = {
|
|
|
95
103
|
developerHubUrl: 'https://gcp-na-developerhub-api.contentstack.com',
|
|
96
104
|
launchHubUrl: 'https://gcp-na-launch-api.contentstack.com',
|
|
97
105
|
personalizeUrl: 'https://gcp-na-personalize-api.contentstack.com',
|
|
106
|
+
composableStudioUrl: 'https://gcp-na-composable-studio-api.contentstack.com',
|
|
98
107
|
},
|
|
99
108
|
'GCP-EU': {
|
|
100
109
|
name: 'GCP-EU',
|
|
@@ -104,6 +113,7 @@ const regions = {
|
|
|
104
113
|
developerHubUrl: 'https://gcp-eu-developerhub-api.contentstack.com',
|
|
105
114
|
launchHubUrl: 'https://gcp-eu-launch-api.contentstack.com',
|
|
106
115
|
personalizeUrl: 'https://gcp-eu-personalize-api.contentstack.com',
|
|
116
|
+
composableStudioUrl: 'https://gcp-eu-composable-studio-api.contentstack.com',
|
|
107
117
|
},
|
|
108
118
|
};
|
|
109
119
|
exports.regions = regions;
|
|
@@ -187,6 +197,7 @@ class UserConfig {
|
|
|
187
197
|
developerHubUrl: regionObject['developerHubUrl'],
|
|
188
198
|
personalizeUrl: regionObject['personalizeUrl'],
|
|
189
199
|
launchHubUrl: regionObject['launchHubUrl'],
|
|
200
|
+
composableStudioUrl: regionObject['composableStudioUrl'],
|
|
190
201
|
};
|
|
191
202
|
return sanitizedRegion;
|
|
192
203
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -455,7 +455,8 @@
|
|
|
455
455
|
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --developer-hub <custom_developer_hub_url>",
|
|
456
456
|
"$ 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>",
|
|
457
457
|
"$ 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>",
|
|
458
|
-
"$ csdx config:set:region --
|
|
458
|
+
"$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --composable-studio <custom_composable_studio_url>",
|
|
459
|
+
"$ 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> --composable-studio <custom_composable_studio_url>"
|
|
459
460
|
],
|
|
460
461
|
"flags": {
|
|
461
462
|
"cda": {
|
|
@@ -529,6 +530,13 @@
|
|
|
529
530
|
"hasDynamicHelp": false,
|
|
530
531
|
"multiple": false,
|
|
531
532
|
"type": "option"
|
|
533
|
+
},
|
|
534
|
+
"composable-studio": {
|
|
535
|
+
"description": "Custom host to set for Composable Studio API",
|
|
536
|
+
"name": "composable-studio",
|
|
537
|
+
"hasDynamicHelp": false,
|
|
538
|
+
"multiple": false,
|
|
539
|
+
"type": "option"
|
|
532
540
|
}
|
|
533
541
|
},
|
|
534
542
|
"hasDynamicHelp": false,
|
|
@@ -548,5 +556,5 @@
|
|
|
548
556
|
]
|
|
549
557
|
}
|
|
550
558
|
},
|
|
551
|
-
"version": "1.
|
|
559
|
+
"version": "1.16.0"
|
|
552
560
|
}
|
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.16.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run clean && npm run compile",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@contentstack/cli-command": "~1.
|
|
25
|
-
"@contentstack/cli-utilities": "~1.
|
|
24
|
+
"@contentstack/cli-command": "~1.7.0",
|
|
25
|
+
"@contentstack/cli-utilities": "~1.15.0",
|
|
26
26
|
"@oclif/core": "^4.3.0",
|
|
27
27
|
"@oclif/plugin-help": "^6.2.28",
|
|
28
28
|
"lodash": "^4.17.21"
|