@contentstack/cli-cm-export 1.11.1 → 1.11.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/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.11.
|
|
51
|
+
@contentstack/cli-cm-export/1.11.2 linux-x64 node-v18.20.2
|
|
52
52
|
$ csdx --help [COMMAND]
|
|
53
53
|
USAGE
|
|
54
54
|
$ csdx COMMAND
|
|
@@ -15,7 +15,7 @@ class ExportCommand extends cli_command_1.Command {
|
|
|
15
15
|
let exportConfig = await (0, utils_1.setupExportConfig)(flags);
|
|
16
16
|
// Note setting host to create cma client
|
|
17
17
|
exportConfig.host = this.cmaHost;
|
|
18
|
-
exportDir = exportConfig.data || exportConfig.exportDir;
|
|
18
|
+
exportDir = exportConfig.cliLogsPath || exportConfig.data || exportConfig.exportDir;
|
|
19
19
|
const managementAPIClient = await (0, cli_utilities_1.managementSDKClient)(exportConfig);
|
|
20
20
|
const moduleExporter = new export_1.ModuleExporter(managementAPIClient, exportConfig);
|
|
21
21
|
await moduleExporter.start();
|
package/lib/utils/logger.js
CHANGED
|
@@ -122,7 +122,7 @@ function init(_logPath) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
const log = async (config, message, type) => {
|
|
125
|
-
const logsPath = config.data;
|
|
125
|
+
const logsPath = config.cliLogsPath || config.data;
|
|
126
126
|
// ignoring the type argument, as we are not using it to create a logfile anymore
|
|
127
127
|
if (type !== 'error') {
|
|
128
128
|
// removed type argument from init method
|
|
@@ -33,7 +33,7 @@ async function createNodeCryptoInstance(config) {
|
|
|
33
33
|
return "Encryption key can't be empty.";
|
|
34
34
|
return true;
|
|
35
35
|
},
|
|
36
|
-
message: 'Enter
|
|
36
|
+
message: 'Enter Marketplace app configurations encryption key',
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
return new cli_utilities_1.NodeCrypto(cryptoArgs);
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.11.
|
|
2
|
+
"version": "1.11.2",
|
|
3
3
|
"commands": {
|
|
4
4
|
"cm:stacks:export": {
|
|
5
5
|
"id": "cm:stacks:export",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"aliases": [
|
|
13
13
|
"cm:export"
|
|
14
14
|
],
|
|
15
|
+
"hiddenAliases": [],
|
|
15
16
|
"examples": [
|
|
16
17
|
"csdx cm:stacks:export --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir>",
|
|
17
18
|
"csdx cm:stacks:export --config <path/to/config/dir>",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export",
|
|
3
3
|
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"repository": "https://github.com/contentstack/cli"
|
|
101
|
-
}
|
|
101
|
+
}
|