@contentstack/cli-config 1.16.0 → 1.16.2
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/LICENSE +1 -1
- package/README.md +15 -16
- package/lib/commands/config/set/region.js +7 -7
- package/oclif.manifest.json +6 -6
- package/package.json +3 -3
package/LICENSE
CHANGED
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.16.
|
|
21
|
+
@contentstack/cli-config/1.16.2 linux-x64 node-v22.21.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -392,24 +392,23 @@ 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>] [--studio <value>]
|
|
396
396
|
|
|
397
397
|
ARGUMENTS
|
|
398
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
|
-
--
|
|
411
|
-
|
|
412
|
-
required
|
|
401
|
+
-d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and
|
|
402
|
+
name flags are required
|
|
403
|
+
-m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host
|
|
404
|
+
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 required
|
|
406
|
+
--developer-hub=<value> Custom host to set for Developer hub API
|
|
407
|
+
--launch=<value> Custom host to set for Launch API
|
|
408
|
+
--personalize=<value> Custom host to set for Personalize API
|
|
409
|
+
--studio=<value> Custom host to set for Studio API
|
|
410
|
+
--ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
|
|
411
|
+
required
|
|
413
412
|
|
|
414
413
|
DESCRIPTION
|
|
415
414
|
Set region for CLI
|
|
@@ -439,9 +438,9 @@ EXAMPLES
|
|
|
439
438
|
|
|
440
439
|
$ 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>
|
|
441
440
|
|
|
442
|
-
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --
|
|
441
|
+
$ 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>
|
|
443
442
|
|
|
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> --
|
|
443
|
+
$ 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>
|
|
445
444
|
```
|
|
446
445
|
|
|
447
446
|
_See code: [src/commands/config/set/region.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
|
|
@@ -13,7 +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['
|
|
16
|
+
let composableStudioUrl = regionSetFlags['studio'];
|
|
17
17
|
let selectedRegion = args.region;
|
|
18
18
|
if (!(cda && cma && uiHost && name) && !selectedRegion) {
|
|
19
19
|
selectedRegion = await utils_1.interactive.askRegions();
|
|
@@ -62,7 +62,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
62
62
|
cli_utilities_1.cliux.success(`Developer Hub URL: ${customRegion.developerHubUrl}`);
|
|
63
63
|
cli_utilities_1.cliux.success(`Personalize URL: ${customRegion.personalizeUrl}`);
|
|
64
64
|
cli_utilities_1.cliux.success(`Launch URL: ${customRegion.launchHubUrl}`);
|
|
65
|
-
cli_utilities_1.cliux.success(`
|
|
65
|
+
cli_utilities_1.cliux.success(`Studio URL: ${customRegion.composableStudioUrl}`);
|
|
66
66
|
}
|
|
67
67
|
catch (error) {
|
|
68
68
|
this.logger.error('failed to set the region', error);
|
|
@@ -79,7 +79,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
79
79
|
cli_utilities_1.cliux.success(`Developer Hub URL: ${regionDetails.developerHubUrl}`);
|
|
80
80
|
cli_utilities_1.cliux.success(`Personalize URL: ${regionDetails.personalizeUrl}`);
|
|
81
81
|
cli_utilities_1.cliux.success(`Launch URL: ${regionDetails.launchHubUrl}`);
|
|
82
|
-
cli_utilities_1.cliux.success(`
|
|
82
|
+
cli_utilities_1.cliux.success(`Studio URL: ${regionDetails.composableStudioUrl}`);
|
|
83
83
|
}
|
|
84
84
|
else {
|
|
85
85
|
cli_utilities_1.cliux.error(`Invalid region specified.`);
|
|
@@ -128,8 +128,8 @@ RegionSetCommand.flags = {
|
|
|
128
128
|
launch: cli_utilities_1.flags.string({
|
|
129
129
|
description: 'Custom host to set for Launch API',
|
|
130
130
|
}),
|
|
131
|
-
|
|
132
|
-
description: 'Custom host to set for
|
|
131
|
+
studio: cli_utilities_1.flags.string({
|
|
132
|
+
description: 'Custom host to set for Studio API',
|
|
133
133
|
}),
|
|
134
134
|
};
|
|
135
135
|
RegionSetCommand.examples = [
|
|
@@ -145,8 +145,8 @@ RegionSetCommand.examples = [
|
|
|
145
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>',
|
|
146
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>',
|
|
147
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>',
|
|
148
|
-
'$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --
|
|
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> --
|
|
148
|
+
'$ 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>',
|
|
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> --studio <custom_studio_url>',
|
|
150
150
|
];
|
|
151
151
|
RegionSetCommand.args = {
|
|
152
152
|
region: cli_utilities_1.args.string({ description: 'Name for the region' }),
|
package/oclif.manifest.json
CHANGED
|
@@ -455,8 +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 --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name \"India\" --
|
|
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> --
|
|
458
|
+
"$ 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>",
|
|
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> --studio <custom_studio_url>"
|
|
460
460
|
],
|
|
461
461
|
"flags": {
|
|
462
462
|
"cda": {
|
|
@@ -531,9 +531,9 @@
|
|
|
531
531
|
"multiple": false,
|
|
532
532
|
"type": "option"
|
|
533
533
|
},
|
|
534
|
-
"
|
|
535
|
-
"description": "Custom host to set for
|
|
536
|
-
"name": "
|
|
534
|
+
"studio": {
|
|
535
|
+
"description": "Custom host to set for Studio API",
|
|
536
|
+
"name": "studio",
|
|
537
537
|
"hasDynamicHelp": false,
|
|
538
538
|
"multiple": false,
|
|
539
539
|
"type": "option"
|
|
@@ -556,5 +556,5 @@
|
|
|
556
556
|
]
|
|
557
557
|
}
|
|
558
558
|
},
|
|
559
|
-
"version": "1.16.
|
|
559
|
+
"version": "1.16.2"
|
|
560
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.16.
|
|
4
|
+
"version": "1.16.2",
|
|
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.7.
|
|
25
|
-
"@contentstack/cli-utilities": "~1.
|
|
24
|
+
"@contentstack/cli-command": "~1.7.1",
|
|
25
|
+
"@contentstack/cli-utilities": "~1.16.0",
|
|
26
26
|
"@oclif/core": "^4.3.0",
|
|
27
27
|
"@oclif/plugin-help": "^6.2.28",
|
|
28
28
|
"lodash": "^4.17.21"
|