@contentstack/cli-cm-clone 1.7.1 → 1.9.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/LICENSE +1 -1
- package/README.md +3 -1
- package/package.json +4 -4
- package/src/commands/cm/stacks/clone.js +4 -0
- package/src/lib/util/clone-handler.js +2 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone
|
|
|
16
16
|
$ csdx COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ csdx (--version)
|
|
19
|
-
@contentstack/cli-cm-clone/1.
|
|
19
|
+
@contentstack/cli-cm-clone/1.9.0 darwin-arm64 node-v20.8.0
|
|
20
20
|
$ csdx --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ csdx COMMAND
|
|
@@ -57,6 +57,7 @@ FLAGS
|
|
|
57
57
|
--destination-stack-api-key=<value> Destination stack API Key
|
|
58
58
|
--import-webhook-status=<option> [default: disable] [Optional] Webhook state
|
|
59
59
|
<options: disable|current>
|
|
60
|
+
--skip-audit Skips the audit fix.
|
|
60
61
|
--source-branch=<value> Branch of the source stack.
|
|
61
62
|
--source-management-token-alias=<value> Source API key of the target stack token alias.
|
|
62
63
|
--source-stack-api-key=<value> Source stack API Key
|
|
@@ -106,6 +107,7 @@ FLAGS
|
|
|
106
107
|
--destination-stack-api-key=<value> Destination stack API Key
|
|
107
108
|
--import-webhook-status=<option> [default: disable] [Optional] Webhook state
|
|
108
109
|
<options: disable|current>
|
|
110
|
+
--skip-audit Skips the audit fix.
|
|
109
111
|
--source-branch=<value> Branch of the source stack.
|
|
110
112
|
--source-management-token-alias=<value> Source API key of the target stack token alias.
|
|
111
113
|
--source-stack-api-key=<value> Source stack API Key
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-clone",
|
|
3
3
|
"description": "Contentstack stack clone plugin",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-cm-export": "~1.10.
|
|
9
|
-
"@contentstack/cli-cm-import": "~1.
|
|
8
|
+
"@contentstack/cli-cm-export": "~1.10.2",
|
|
9
|
+
"@contentstack/cli-cm-import": "~1.13.0",
|
|
10
10
|
"@contentstack/cli-command": "~1.2.16",
|
|
11
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
11
|
+
"@contentstack/cli-utilities": "~1.5.10",
|
|
12
12
|
"@colors/colors": "^1.5.0",
|
|
13
13
|
"async": "^3.2.4",
|
|
14
14
|
"chalk": "^4.1.0",
|
|
@@ -29,6 +29,7 @@ class StackCloneCommand extends Command {
|
|
|
29
29
|
const listOfTokens = configHandler.get('tokens');
|
|
30
30
|
|
|
31
31
|
config.forceStopMarketplaceAppsPrompt = yes;
|
|
32
|
+
config.skipAudit = cloneCommandFlags['skip-audit'];
|
|
32
33
|
|
|
33
34
|
if (cloneType) {
|
|
34
35
|
config.cloneType = cloneType;
|
|
@@ -245,6 +246,9 @@ b) Structure with content (all modules including entries & assets)
|
|
|
245
246
|
required: false,
|
|
246
247
|
description: '[Optional] Override marketplace prompts',
|
|
247
248
|
}),
|
|
249
|
+
'skip-audit': flags.boolean({
|
|
250
|
+
description: 'Skips the audit fix.',
|
|
251
|
+
}),
|
|
248
252
|
};
|
|
249
253
|
|
|
250
254
|
StackCloneCommand.usage =
|
|
@@ -655,6 +655,8 @@ class CloneHandler {
|
|
|
655
655
|
cmd.push('--import-webhook-status', config.importWebhookStatus);
|
|
656
656
|
}
|
|
657
657
|
|
|
658
|
+
if (config.skipAudit) cmd.push('--skip-audit');
|
|
659
|
+
|
|
658
660
|
if (config.forceStopMarketplaceAppsPrompt) cmd.push('-y');
|
|
659
661
|
|
|
660
662
|
fs.writeFileSync(path.join(__dirname, 'dummyConfig.json'), JSON.stringify(config));
|