@contentstack/cli-cm-export 1.22.0 → 1.22.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 +3 -3
- package/lib/commands/cm/stacks/export.d.ts +0 -1
- package/lib/commands/cm/stacks/export.js +8 -21
- package/lib/export/modules/composable-studio.d.ts +1 -1
- package/lib/export/modules/composable-studio.js +12 -12
- package/lib/export/modules-js/assets.js +1 -1
- package/lib/export/modules-js/environments.js +1 -1
- package/lib/export/modules-js/extensions.js +1 -1
- package/lib/export/modules-js/global-fields.js +1 -1
- package/lib/export/modules-js/labels.js +1 -1
- package/lib/export/modules-js/marketplace-apps.js +1 -1
- package/lib/export/modules-js/stack.js +1 -1
- package/lib/export/modules-js/webhooks.js +1 -1
- package/lib/export/modules-js/workflows.js +1 -1
- package/lib/types/index.d.ts +0 -8
- package/lib/utils/basic-login.d.ts +1 -1
- package/lib/utils/basic-login.js +1 -1
- package/lib/utils/common-helper.d.ts +1 -1
- package/lib/utils/common-helper.js +1 -1
- package/lib/utils/logger.d.ts +1 -1
- package/lib/utils/logger.js +1 -1
- package/messages/index.json +58 -58
- package/oclif.manifest.json +2 -2
- package/package.json +6 -6
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
|
|
|
48
48
|
$ csdx COMMAND
|
|
49
49
|
running command...
|
|
50
50
|
$ csdx (--version)
|
|
51
|
-
@contentstack/cli-cm-export/1.22.
|
|
51
|
+
@contentstack/cli-cm-export/1.22.2 linux-x64 node-v22.21.1
|
|
52
52
|
$ csdx --help [COMMAND]
|
|
53
53
|
USAGE
|
|
54
54
|
$ csdx COMMAND
|
|
@@ -83,7 +83,7 @@ FLAGS
|
|
|
83
83
|
-m, --module=<value> [optional] Specific module name. If not specified, the export command will export all
|
|
84
84
|
the modules to the stack. The available modules are assets, content-types, entries,
|
|
85
85
|
environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks,
|
|
86
|
-
workflows, custom-roles, taxonomies, and
|
|
86
|
+
workflows, custom-roles, taxonomies, and studio.
|
|
87
87
|
-t, --content-types=<value>... [optional] The UID of the content type(s) whose content you want to export. In case
|
|
88
88
|
of multiple content types, specify the IDs separated by spaces.
|
|
89
89
|
-y, --yes [optional] Force override all Marketplace prompts.
|
|
@@ -133,7 +133,7 @@ FLAGS
|
|
|
133
133
|
-m, --module=<value> [optional] Specific module name. If not specified, the export command will export all
|
|
134
134
|
the modules to the stack. The available modules are assets, content-types, entries,
|
|
135
135
|
environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks,
|
|
136
|
-
workflows, custom-roles, taxonomies, and
|
|
136
|
+
workflows, custom-roles, taxonomies, and studio.
|
|
137
137
|
-t, --content-types=<value>... [optional] The UID of the content type(s) whose content you want to export. In case
|
|
138
138
|
of multiple content types, specify the IDs separated by spaces.
|
|
139
139
|
-y, --yes [optional] Force override all Marketplace prompts.
|
|
@@ -6,14 +6,15 @@ const export_1 = require("../../../export");
|
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
class ExportCommand extends cli_command_1.Command {
|
|
8
8
|
async run() {
|
|
9
|
-
var _a;
|
|
9
|
+
var _a, _b, _c;
|
|
10
10
|
let exportDir = (0, cli_utilities_1.pathValidator)('logs');
|
|
11
11
|
try {
|
|
12
12
|
const { flags } = await this.parse(ExportCommand);
|
|
13
13
|
const exportConfig = await (0, utils_1.setupExportConfig)(flags);
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
// Store apiKey in configHandler for session.json (return value not needed)
|
|
15
|
+
(0, cli_utilities_1.createLogContext)(((_b = (_a = this.context) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.command) || 'cm:stacks:export', exportConfig.apiKey, exportConfig.authenticationMethod);
|
|
16
|
+
// For log entries, only pass module (other fields are in session.json)
|
|
17
|
+
exportConfig.context = { module: '' };
|
|
17
18
|
//log.info(`Using Cli Version: ${this.context?.cliVersion}`, exportConfig.context);
|
|
18
19
|
// Assign exportConfig variables
|
|
19
20
|
this.assignExportConfig(exportConfig);
|
|
@@ -21,10 +22,10 @@ class ExportCommand extends cli_command_1.Command {
|
|
|
21
22
|
const managementAPIClient = await (0, cli_utilities_1.managementSDKClient)(exportConfig);
|
|
22
23
|
const moduleExporter = new export_1.ModuleExporter(managementAPIClient, exportConfig);
|
|
23
24
|
await moduleExporter.start();
|
|
24
|
-
if (!((
|
|
25
|
+
if (!((_c = exportConfig.branches) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
25
26
|
(0, utils_1.writeExportMetaFile)(exportConfig);
|
|
26
27
|
}
|
|
27
|
-
cli_utilities_1.log.success(`The content of the stack ${exportConfig.apiKey} has been exported successfully
|
|
28
|
+
cli_utilities_1.log.success(`The content of the stack ${exportConfig.apiKey} has been exported successfully!`);
|
|
28
29
|
cli_utilities_1.log.info(`The exported content has been stored at '${exportDir}'.`, exportConfig.context);
|
|
29
30
|
cli_utilities_1.log.success(`The log has been stored at '${(0, cli_utilities_1.getLogPath)()}'.`, exportConfig.context);
|
|
30
31
|
}
|
|
@@ -33,20 +34,6 @@ class ExportCommand extends cli_command_1.Command {
|
|
|
33
34
|
cli_utilities_1.log.info(`The log has been stored at '${(0, cli_utilities_1.getLogPath)()}'.`);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
// Create export context object
|
|
37
|
-
createExportContext(apiKey, authenticationMethod) {
|
|
38
|
-
var _a, _b, _c;
|
|
39
|
-
return {
|
|
40
|
-
command: ((_b = (_a = this.context) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.command) || 'cm:stacks:export',
|
|
41
|
-
module: '',
|
|
42
|
-
userId: cli_utilities_1.configHandler.get('userUid') || '',
|
|
43
|
-
email: cli_utilities_1.configHandler.get('email') || '',
|
|
44
|
-
sessionId: ((_c = this.context) === null || _c === void 0 ? void 0 : _c.sessionId) || '',
|
|
45
|
-
apiKey: apiKey || '',
|
|
46
|
-
orgId: cli_utilities_1.configHandler.get('oauthOrgUid') || '',
|
|
47
|
-
authenticationMethod: authenticationMethod || 'Basic Auth',
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
37
|
// Assign values to exportConfig
|
|
51
38
|
assignExportConfig(exportConfig) {
|
|
52
39
|
// Note setting host to create cma client
|
|
@@ -116,7 +103,7 @@ ExportCommand.flags = {
|
|
|
116
103
|
}),
|
|
117
104
|
module: cli_utilities_1.flags.string({
|
|
118
105
|
char: 'm',
|
|
119
|
-
description: '[optional] Specific module name. If not specified, the export command will export all the modules to the stack. The available modules are assets, content-types, entries, environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, taxonomies, and
|
|
106
|
+
description: '[optional] Specific module name. If not specified, the export command will export all the modules to the stack. The available modules are assets, content-types, entries, environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, taxonomies, and studio.',
|
|
120
107
|
parse: (0, cli_utilities_1.printFlagDeprecation)(['-m'], ['--module']),
|
|
121
108
|
}),
|
|
122
109
|
'content-types': cli_utilities_1.flags.string({
|
|
@@ -9,7 +9,7 @@ export default class ExportComposableStudio {
|
|
|
9
9
|
constructor({ exportConfig }: Omit<ModuleClassParams, 'stackAPIClient' | 'moduleName'>);
|
|
10
10
|
start(): Promise<void>;
|
|
11
11
|
/**
|
|
12
|
-
* Export
|
|
12
|
+
* Export Studio projects connected to the current stack
|
|
13
13
|
*/
|
|
14
14
|
exportProjects(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -9,34 +9,34 @@ class ExportComposableStudio {
|
|
|
9
9
|
this.exportConfig = exportConfig;
|
|
10
10
|
this.composableStudioConfig = exportConfig.modules['composable-studio'];
|
|
11
11
|
this.exportConfig.context.module = 'composable-studio';
|
|
12
|
-
// Initialize HttpClient with
|
|
12
|
+
// Initialize HttpClient with Studio API base URL
|
|
13
13
|
this.apiClient = new cli_utilities_1.HttpClient();
|
|
14
14
|
this.apiClient.baseUrl(`${this.composableStudioConfig.apiBaseUrl}/${this.composableStudioConfig.apiVersion}`);
|
|
15
15
|
}
|
|
16
16
|
async start() {
|
|
17
|
-
cli_utilities_1.log.debug('Starting
|
|
17
|
+
cli_utilities_1.log.debug('Starting Studio project export process...', this.exportConfig.context);
|
|
18
18
|
if (!(0, cli_utilities_1.isAuthenticated)()) {
|
|
19
|
-
cli_utilities_1.cliux.print('WARNING!!! To export
|
|
19
|
+
cli_utilities_1.cliux.print('WARNING!!! To export Studio projects, you must be logged in. Please check csdx auth:login --help to log in', { color: 'yellow' });
|
|
20
20
|
return Promise.resolve();
|
|
21
21
|
}
|
|
22
22
|
this.composableStudioPath = (0, node_path_1.resolve)(this.exportConfig.data, this.exportConfig.branchName || '', this.composableStudioConfig.dirName);
|
|
23
|
-
cli_utilities_1.log.debug(`
|
|
23
|
+
cli_utilities_1.log.debug(`Studio folder path: ${this.composableStudioPath}`, this.exportConfig.context);
|
|
24
24
|
await utils_1.fsUtil.makeDirectory(this.composableStudioPath);
|
|
25
|
-
cli_utilities_1.log.debug('Created
|
|
25
|
+
cli_utilities_1.log.debug('Created Studio directory', this.exportConfig.context);
|
|
26
26
|
this.exportConfig.org_uid = this.exportConfig.org_uid || (await (0, utils_1.getOrgUid)(this.exportConfig));
|
|
27
27
|
cli_utilities_1.log.debug(`Organization UID: ${this.exportConfig.org_uid}`, this.exportConfig.context);
|
|
28
28
|
await this.exportProjects();
|
|
29
|
-
cli_utilities_1.log.debug('
|
|
29
|
+
cli_utilities_1.log.debug('Studio project export process completed', this.exportConfig.context);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Export
|
|
32
|
+
* Export Studio projects connected to the current stack
|
|
33
33
|
*/
|
|
34
34
|
async exportProjects() {
|
|
35
35
|
var _a, _b;
|
|
36
|
-
cli_utilities_1.log.debug('Starting
|
|
36
|
+
cli_utilities_1.log.debug('Starting Studio project export...', this.exportConfig.context);
|
|
37
37
|
try {
|
|
38
38
|
// Get authentication details - following personalization-api-adapter pattern
|
|
39
|
-
cli_utilities_1.log.debug('Initializing
|
|
39
|
+
cli_utilities_1.log.debug('Initializing Studio API authentication...', this.exportConfig.context);
|
|
40
40
|
await cli_utilities_1.authenticationHandler.getAuthDetails();
|
|
41
41
|
const token = cli_utilities_1.authenticationHandler.accessToken;
|
|
42
42
|
cli_utilities_1.log.debug(`Authentication type: ${cli_utilities_1.authenticationHandler.isOauthEnabled ? 'OAuth' : 'Token'}`, this.exportConfig.context);
|
|
@@ -71,15 +71,15 @@ class ExportComposableStudio {
|
|
|
71
71
|
}
|
|
72
72
|
// Use the first connected project (stacks should have only one project)
|
|
73
73
|
this.composableStudioProject = connectedProject[0];
|
|
74
|
-
cli_utilities_1.log.debug(`Found
|
|
74
|
+
cli_utilities_1.log.debug(`Found Studio project: ${this.composableStudioProject.name}`, this.exportConfig.context);
|
|
75
75
|
// Write the project to file
|
|
76
76
|
const composableStudioFilePath = (0, node_path_1.resolve)(this.composableStudioPath, this.composableStudioConfig.fileName);
|
|
77
|
-
cli_utilities_1.log.debug(`Writing
|
|
77
|
+
cli_utilities_1.log.debug(`Writing Studio project to: ${composableStudioFilePath}`, this.exportConfig.context);
|
|
78
78
|
utils_1.fsUtil.writeFile(composableStudioFilePath, this.composableStudioProject);
|
|
79
79
|
cli_utilities_1.log.success(cli_utilities_1.messageHandler.parse('COMPOSABLE_STUDIO_EXPORT_COMPLETE', this.composableStudioProject.name), this.exportConfig.context);
|
|
80
80
|
}
|
|
81
81
|
catch (error) {
|
|
82
|
-
cli_utilities_1.log.debug('Error occurred while exporting
|
|
82
|
+
cli_utilities_1.log.debug('Error occurred while exporting Studio project', this.exportConfig.context);
|
|
83
83
|
(0, cli_utilities_1.handleAndLogError)(error, Object.assign({}, this.exportConfig.context));
|
|
84
84
|
}
|
|
85
85
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -123,15 +123,7 @@ export interface ComposableStudioProject {
|
|
|
123
123
|
uid: string;
|
|
124
124
|
}
|
|
125
125
|
export interface Context {
|
|
126
|
-
command: string;
|
|
127
126
|
module: string;
|
|
128
|
-
userId: string | undefined;
|
|
129
|
-
email: string | undefined;
|
|
130
|
-
sessionId: string | undefined;
|
|
131
|
-
clientId?: string | undefined;
|
|
132
|
-
apiKey: string;
|
|
133
|
-
orgId: string;
|
|
134
|
-
authenticationMethod?: string;
|
|
135
127
|
}
|
|
136
128
|
export { default as DefaultConfig } from './default-config';
|
|
137
129
|
export { default as ExportConfig } from './export-config';
|
package/lib/utils/basic-login.js
CHANGED
package/lib/utils/logger.d.ts
CHANGED
package/lib/utils/logger.js
CHANGED
package/messages/index.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ASSET_EXPORT_COMPLETE": "Asset export process completed successfully",
|
|
3
|
-
"ASSET_FOLDERS_EXPORT_COMPLETE": "Asset folder structure exported successfully",
|
|
4
|
-
"ASSET_METADATA_EXPORT_COMPLETE": "Asset metadata exported successfully",
|
|
5
|
-
"ASSET_VERSIONED_METADATA_EXPORT_COMPLETE": "Versioned asset metadata exported successfully",
|
|
6
|
-
"ASSET_DOWNLOAD_COMPLETE": "Asset download completed successfully",
|
|
7
|
-
"ASSET_DOWNLOAD_SUCCESS": "Asset '%s' (UID: %s) downloaded successfully",
|
|
8
|
-
"ASSET_DOWNLOAD_FAILED": "Failed to download asset '%s' (UID: %s)",
|
|
9
|
-
"ASSET_WRITE_FAILED": "Failed to write asset file '%s' (UID: %s)",
|
|
10
|
-
"ASSET_QUERY_FAILED": "Failed to query asset data from the API",
|
|
11
|
-
"ASSET_VERSIONED_QUERY_FAILED": "Failed to query versioned asset data from the API",
|
|
12
|
-
"ASSET_COUNT_QUERY_FAILED": "Failed to retrieve total asset count",
|
|
2
|
+
"ASSET_EXPORT_COMPLETE": "Asset export process completed successfully",
|
|
3
|
+
"ASSET_FOLDERS_EXPORT_COMPLETE": "Asset folder structure exported successfully",
|
|
4
|
+
"ASSET_METADATA_EXPORT_COMPLETE": "Asset metadata exported successfully",
|
|
5
|
+
"ASSET_VERSIONED_METADATA_EXPORT_COMPLETE": "Versioned asset metadata exported successfully",
|
|
6
|
+
"ASSET_DOWNLOAD_COMPLETE": "Asset download completed successfully",
|
|
7
|
+
"ASSET_DOWNLOAD_SUCCESS": "Asset '%s' (UID: %s) downloaded successfully",
|
|
8
|
+
"ASSET_DOWNLOAD_FAILED": "Failed to download asset '%s' (UID: %s)",
|
|
9
|
+
"ASSET_WRITE_FAILED": "Failed to write asset file '%s' (UID: %s)",
|
|
10
|
+
"ASSET_QUERY_FAILED": "Failed to query asset data from the API",
|
|
11
|
+
"ASSET_VERSIONED_QUERY_FAILED": "Failed to query versioned asset data from the API",
|
|
12
|
+
"ASSET_COUNT_QUERY_FAILED": "Failed to retrieve total asset count",
|
|
13
13
|
|
|
14
|
-
"CONTENT_TYPE_EXPORT_COMPLETE": "Content types exported successfully",
|
|
15
|
-
"CONTENT_TYPE_NO_TYPES": "No content types found",
|
|
16
|
-
"CONTENT_TYPE_EXPORT_FAILED": "Failed to export content types",
|
|
17
|
-
"CONTENT_TYPE_NO_TYPES_RETURNED": "API returned no content types for the given query",
|
|
14
|
+
"CONTENT_TYPE_EXPORT_COMPLETE": "Content types exported successfully",
|
|
15
|
+
"CONTENT_TYPE_NO_TYPES": "No content types found",
|
|
16
|
+
"CONTENT_TYPE_EXPORT_FAILED": "Failed to export content types",
|
|
17
|
+
"CONTENT_TYPE_NO_TYPES_RETURNED": "API returned no content types for the given query",
|
|
18
18
|
|
|
19
|
-
"ENVIRONMENT_EXPORT_COMPLETE": "Successfully exported %s environment(s)",
|
|
20
|
-
"ENVIRONMENT_EXPORT_SUCCESS": "Environment '%s' exported successfully",
|
|
21
|
-
"ENVIRONMENT_NOT_FOUND": "No environments found in the current stack",
|
|
19
|
+
"ENVIRONMENT_EXPORT_COMPLETE": "Successfully exported %s environment(s)",
|
|
20
|
+
"ENVIRONMENT_EXPORT_SUCCESS": "Environment '%s' exported successfully",
|
|
21
|
+
"ENVIRONMENT_NOT_FOUND": "No environments found in the current stack",
|
|
22
22
|
|
|
23
|
-
"EXTENSION_EXPORT_COMPLETE": "Successfully exported %s extension(s)",
|
|
24
|
-
"EXTENSION_EXPORT_SUCCESS": "Extension '%s' exported successfully",
|
|
25
|
-
"EXTENSION_NOT_FOUND": "No extensions found in the current stack",
|
|
23
|
+
"EXTENSION_EXPORT_COMPLETE": "Successfully exported %s extension(s)",
|
|
24
|
+
"EXTENSION_EXPORT_SUCCESS": "Extension '%s' exported successfully",
|
|
25
|
+
"EXTENSION_NOT_FOUND": "No extensions found in the current stack",
|
|
26
26
|
|
|
27
|
-
"GLOBAL_FIELDS_EXPORT_COMPLETE": "Successfully exported %s global field(s)",
|
|
27
|
+
"GLOBAL_FIELDS_EXPORT_COMPLETE": "Successfully exported %s global field(s)",
|
|
28
28
|
|
|
29
|
-
"LABELS_EXPORT_COMPLETE": "Successfully exported %s label(s)",
|
|
30
|
-
"LABEL_EXPORT_SUCCESS": "Label '%s' exported successfully",
|
|
31
|
-
"LABELS_NOT_FOUND": "No labels found in the current stack",
|
|
29
|
+
"LABELS_EXPORT_COMPLETE": "Successfully exported %s label(s)",
|
|
30
|
+
"LABEL_EXPORT_SUCCESS": "Label '%s' exported successfully",
|
|
31
|
+
"LABELS_NOT_FOUND": "No labels found in the current stack",
|
|
32
32
|
|
|
33
|
-
"LOCALES_EXPORT_COMPLETE": "Successfully exported %s locale(s) including %s master locale(s)",
|
|
33
|
+
"LOCALES_EXPORT_COMPLETE": "Successfully exported %s locale(s) including %s master locale(s)",
|
|
34
34
|
|
|
35
|
-
"TAXONOMY_EXPORT_COMPLETE": "Successfully exported %s taxonomy entries",
|
|
36
|
-
"TAXONOMY_EXPORT_SUCCESS": "Taxonomy '%s' exported successfully",
|
|
37
|
-
"TAXONOMY_NOT_FOUND": "No taxonomies found in the current stack",
|
|
35
|
+
"TAXONOMY_EXPORT_COMPLETE": "Successfully exported %s taxonomy entries",
|
|
36
|
+
"TAXONOMY_EXPORT_SUCCESS": "Taxonomy '%s' exported successfully",
|
|
37
|
+
"TAXONOMY_NOT_FOUND": "No taxonomies found in the current stack",
|
|
38
38
|
|
|
39
|
-
"WEBHOOK_EXPORT_COMPLETE": "Successfully exported %s webhook(s)",
|
|
40
|
-
"WEBHOOK_EXPORT_SUCCESS": "Webhook '%s' exported successfully",
|
|
41
|
-
"WEBHOOK_NOT_FOUND": "No webhooks found in the current stack",
|
|
39
|
+
"WEBHOOK_EXPORT_COMPLETE": "Successfully exported %s webhook(s)",
|
|
40
|
+
"WEBHOOK_EXPORT_SUCCESS": "Webhook '%s' exported successfully",
|
|
41
|
+
"WEBHOOK_NOT_FOUND": "No webhooks found in the current stack",
|
|
42
42
|
|
|
43
|
-
"WORKFLOW_EXPORT_COMPLETE": "Successfully exported %s workflow(s)",
|
|
44
|
-
"WORKFLOW_EXPORT_SUCCESS": "Workflow '%s' exported successfully",
|
|
45
|
-
"WORKFLOW_NOT_FOUND": "No workflows found in the current stack",
|
|
43
|
+
"WORKFLOW_EXPORT_COMPLETE": "Successfully exported %s workflow(s)",
|
|
44
|
+
"WORKFLOW_EXPORT_SUCCESS": "Workflow '%s' exported successfully",
|
|
45
|
+
"WORKFLOW_NOT_FOUND": "No workflows found in the current stack",
|
|
46
46
|
|
|
47
|
-
"PERSONALIZE_URL_NOT_SET": "Cannot export Personalize project: URL not configured",
|
|
48
|
-
"PERSONALIZE_SKIPPING_WITH_MANAGEMENT_TOKEN": "Skipping Personalize project export: Management token not supported",
|
|
49
|
-
"PERSONALIZE_MODULE_NOT_IMPLEMENTED": "Module '%s' implementation not found",
|
|
50
|
-
"PERSONALIZE_NOT_ENABLED": "Personalize feature is not enabled for this organization",
|
|
47
|
+
"PERSONALIZE_URL_NOT_SET": "Cannot export Personalize project: URL not configured",
|
|
48
|
+
"PERSONALIZE_SKIPPING_WITH_MANAGEMENT_TOKEN": "Skipping Personalize project export: Management token not supported",
|
|
49
|
+
"PERSONALIZE_MODULE_NOT_IMPLEMENTED": "Module '%s' implementation not found",
|
|
50
|
+
"PERSONALIZE_NOT_ENABLED": "Personalize feature is not enabled for this organization",
|
|
51
51
|
|
|
52
|
-
"MARKETPLACE_APPS_EXPORT_COMPLETE": "Successfully exported %s marketplace app(s)",
|
|
53
|
-
"MARKETPLACE_APP_CONFIG_EXPORT": "Exporting configuration for app '%s'",
|
|
54
|
-
"MARKETPLACE_APP_CONFIG_SUCCESS": "Successfully exported configuration for app '%s'",
|
|
55
|
-
"MARKETPLACE_APP_EXPORT_SUCCESS": "Successfully exported app '%s'",
|
|
56
|
-
"MARKETPLACE_APPS_NOT_FOUND": "No marketplace apps found in the current stack",
|
|
57
|
-
"MARKETPLACE_APP_CONFIG_EXPORT_FAILED": "Failed to export configuration for app '%s'",
|
|
58
|
-
"MARKETPLACE_APP_MANIFEST_EXPORT_FAILED": "Failed to export manifest for app '%s'",
|
|
52
|
+
"MARKETPLACE_APPS_EXPORT_COMPLETE": "Successfully exported %s marketplace app(s)",
|
|
53
|
+
"MARKETPLACE_APP_CONFIG_EXPORT": "Exporting configuration for app '%s'",
|
|
54
|
+
"MARKETPLACE_APP_CONFIG_SUCCESS": "Successfully exported configuration for app '%s'",
|
|
55
|
+
"MARKETPLACE_APP_EXPORT_SUCCESS": "Successfully exported app '%s'",
|
|
56
|
+
"MARKETPLACE_APPS_NOT_FOUND": "No marketplace apps found in the current stack",
|
|
57
|
+
"MARKETPLACE_APP_CONFIG_EXPORT_FAILED": "Failed to export configuration for app '%s'",
|
|
58
|
+
"MARKETPLACE_APP_MANIFEST_EXPORT_FAILED": "Failed to export manifest for app '%s'",
|
|
59
59
|
|
|
60
|
-
"COMPOSABLE_STUDIO_EXPORT_START": "Starting
|
|
61
|
-
"COMPOSABLE_STUDIO_NOT_FOUND": "No
|
|
62
|
-
"COMPOSABLE_STUDIO_EXPORT_COMPLETE": "Successfully exported
|
|
63
|
-
"COMPOSABLE_STUDIO_EXPORT_FAILED": "Failed to export
|
|
64
|
-
"COMPOSABLE_STUDIO_AUTH_REQUIRED": "To export
|
|
60
|
+
"COMPOSABLE_STUDIO_EXPORT_START": "Starting Studio project export...",
|
|
61
|
+
"COMPOSABLE_STUDIO_NOT_FOUND": "No Studio project found for this stack",
|
|
62
|
+
"COMPOSABLE_STUDIO_EXPORT_COMPLETE": "Successfully exported Studio project '%s'",
|
|
63
|
+
"COMPOSABLE_STUDIO_EXPORT_FAILED": "Failed to export Studio project: %s",
|
|
64
|
+
"COMPOSABLE_STUDIO_AUTH_REQUIRED": "To export Studio projects, you must be logged in",
|
|
65
65
|
|
|
66
|
-
"ENTRIES_EXPORT_COMPLETE": "Successfully exported entries (Content Type: %s, Locale: %s)",
|
|
67
|
-
"ENTRIES_EXPORT_SUCCESS": "All entries exported successfully",
|
|
68
|
-
"ENTRIES_VERSIONED_EXPORT_SUCCESS": "Successfully exported versioned entry (Content Type: %s, UID: %s, Locale: %s)",
|
|
69
|
-
"ENTRIES_EXPORT_VERSIONS_FAILED": "Failed to export versions for content type '%s' (UID: %s)",
|
|
66
|
+
"ENTRIES_EXPORT_COMPLETE": "Successfully exported entries (Content Type: %s, Locale: %s)",
|
|
67
|
+
"ENTRIES_EXPORT_SUCCESS": "All entries exported successfully",
|
|
68
|
+
"ENTRIES_VERSIONED_EXPORT_SUCCESS": "Successfully exported versioned entry (Content Type: %s, UID: %s, Locale: %s)",
|
|
69
|
+
"ENTRIES_EXPORT_VERSIONS_FAILED": "Failed to export versions for content type '%s' (UID: %s)",
|
|
70
70
|
|
|
71
|
-
"BRANCH_EXPORT_FAILED": "Failed to export contents from branch (UID: %s)",
|
|
71
|
+
"BRANCH_EXPORT_FAILED": "Failed to export contents from branch (UID: %s)",
|
|
72
72
|
|
|
73
|
-
"ROLES_NO_CUSTOM_ROLES": "No custom roles found in the current stack",
|
|
74
|
-
"ROLES_EXPORTING_ROLE": "Exporting role '%s'"
|
|
73
|
+
"ROLES_NO_CUSTOM_ROLES": "No custom roles found in the current stack",
|
|
74
|
+
"ROLES_EXPORTING_ROLE": "Exporting role '%s'"
|
|
75
75
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"module": {
|
|
85
85
|
"char": "m",
|
|
86
|
-
"description": "[optional] Specific module name. If not specified, the export command will export all the modules to the stack. The available modules are assets, content-types, entries, environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, taxonomies, and
|
|
86
|
+
"description": "[optional] Specific module name. If not specified, the export command will export all the modules to the stack. The available modules are assets, content-types, entries, environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, taxonomies, and studio.",
|
|
87
87
|
"name": "module",
|
|
88
88
|
"hasDynamicHelp": false,
|
|
89
89
|
"multiple": false,
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
]
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
"version": "1.22.
|
|
162
|
+
"version": "1.22.2"
|
|
163
163
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export",
|
|
3
3
|
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-command": "~1.7.
|
|
8
|
+
"@contentstack/cli-command": "~1.7.1",
|
|
9
9
|
"@oclif/core": "^4.3.3",
|
|
10
|
-
"@contentstack/cli-variants": "~1.3.
|
|
11
|
-
"@contentstack/cli-utilities": "~1.
|
|
10
|
+
"@contentstack/cli-variants": "~1.3.6",
|
|
11
|
+
"@contentstack/cli-utilities": "~1.16.0",
|
|
12
12
|
"async": "^3.2.6",
|
|
13
13
|
"big-json": "^3.2.0",
|
|
14
14
|
"bluebird": "^3.7.2",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"winston": "^3.17.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@contentstack/cli-auth": "~1.6.
|
|
25
|
-
"@contentstack/cli-config": "~1.
|
|
24
|
+
"@contentstack/cli-auth": "~1.6.3",
|
|
25
|
+
"@contentstack/cli-config": "~1.16.2",
|
|
26
26
|
"@contentstack/cli-dev-dependencies": "~1.3.1",
|
|
27
27
|
"@oclif/plugin-help": "^6.2.28",
|
|
28
28
|
"@oclif/test": "^4.1.13",
|