@contentstack/cli-cm-clone 1.13.0 → 1.13.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 +25 -23
- package/package.json +18 -23
- package/src/commands/cm/stacks/clone.js +11 -11
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.13.
|
|
19
|
+
@contentstack/cli-cm-clone/1.13.2 darwin-x64 node-v22.14.0
|
|
20
20
|
$ csdx --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ csdx COMMAND
|
|
@@ -52,20 +52,21 @@ USAGE
|
|
|
52
52
|
|
|
53
53
|
FLAGS
|
|
54
54
|
-c, --config=<value> Path for the external configuration
|
|
55
|
-
-n, --stack-name=<value>
|
|
56
|
-
-y, --yes
|
|
57
|
-
--destination-management-token-alias=<value>
|
|
58
|
-
--destination-stack-api-key=<value> Destination stack API
|
|
59
|
-
--import-webhook-status=<option> [default: disable] [
|
|
55
|
+
-n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
|
|
56
|
+
-y, --yes Force override all Marketplace prompts.
|
|
57
|
+
--destination-management-token-alias=<value> Destination management token alias.
|
|
58
|
+
--destination-stack-api-key=<value> Destination stack API key
|
|
59
|
+
--import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
|
|
60
|
+
import webhook. <options: disable|current>
|
|
60
61
|
<options: disable|current>
|
|
61
|
-
--skip-audit Skips the audit fix.
|
|
62
|
+
--skip-audit (optional) Skips the audit fix that occurs during an import operation.
|
|
62
63
|
--source-branch=<value> Branch of the source stack.
|
|
63
|
-
--source-management-token-alias=<value> Source
|
|
64
|
-
--source-stack-api-key=<value> Source stack API
|
|
64
|
+
--source-management-token-alias=<value> Source management token alias.
|
|
65
|
+
--source-stack-api-key=<value> Source stack API key
|
|
65
66
|
--target-branch=<value> Branch of the target stack.
|
|
66
|
-
--type=<option> Type of data to clone
|
|
67
|
-
a) Structure (all modules except entries & assets)
|
|
68
|
-
b) Structure with content (all modules including entries & assets)
|
|
67
|
+
--type=<option> Type of data to clone. You can select option a or b.
|
|
68
|
+
a) Structure (all modules except entries & assets).
|
|
69
|
+
b) Structure with content (all modules including entries & assets).
|
|
69
70
|
|
|
70
71
|
<options: a|b>
|
|
71
72
|
|
|
@@ -103,20 +104,21 @@ USAGE
|
|
|
103
104
|
|
|
104
105
|
FLAGS
|
|
105
106
|
-c, --config=<value> Path for the external configuration
|
|
106
|
-
-n, --stack-name=<value>
|
|
107
|
-
-y, --yes
|
|
108
|
-
--destination-management-token-alias=<value>
|
|
109
|
-
--destination-stack-api-key=<value> Destination stack API
|
|
110
|
-
--import-webhook-status=<option> [default: disable] [
|
|
107
|
+
-n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
|
|
108
|
+
-y, --yes Force override all Marketplace prompts.
|
|
109
|
+
--destination-management-token-alias=<value> Destination management token alias.
|
|
110
|
+
--destination-stack-api-key=<value> Destination stack API key
|
|
111
|
+
--import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
|
|
112
|
+
import webhook. <options: disable|current>
|
|
111
113
|
<options: disable|current>
|
|
112
|
-
--skip-audit Skips the audit fix.
|
|
114
|
+
--skip-audit (optional) Skips the audit fix that occurs during an import operation.
|
|
113
115
|
--source-branch=<value> Branch of the source stack.
|
|
114
|
-
--source-management-token-alias=<value> Source
|
|
115
|
-
--source-stack-api-key=<value> Source stack API
|
|
116
|
+
--source-management-token-alias=<value> Source management token alias.
|
|
117
|
+
--source-stack-api-key=<value> Source stack API key
|
|
116
118
|
--target-branch=<value> Branch of the target stack.
|
|
117
|
-
--type=<option> Type of data to clone
|
|
118
|
-
a) Structure (all modules except entries & assets)
|
|
119
|
-
b) Structure with content (all modules including entries & assets)
|
|
119
|
+
--type=<option> Type of data to clone. You can select option a or b.
|
|
120
|
+
a) Structure (all modules except entries & assets).
|
|
121
|
+
b) Structure with content (all modules including entries & assets).
|
|
120
122
|
|
|
121
123
|
<options: a|b>
|
|
122
124
|
|
package/package.json
CHANGED
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-clone",
|
|
3
3
|
"description": "Contentstack stack clone plugin",
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@colors/colors": "^1.
|
|
9
|
-
"@contentstack/cli-cm-export": "~1.
|
|
10
|
-
"@contentstack/cli-cm-import": "~1.
|
|
11
|
-
"@contentstack/cli-command": "~1.3.
|
|
12
|
-
"@contentstack/cli-utilities": "~1.8.
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"fancy-test": "^1.4.10",
|
|
17
|
-
"inquirer": "8.2.4",
|
|
18
|
-
"lodash": "^4.17.20",
|
|
8
|
+
"@colors/colors": "^1.6.0",
|
|
9
|
+
"@contentstack/cli-cm-export": "~1.15.0",
|
|
10
|
+
"@contentstack/cli-cm-import": "~1.20.0",
|
|
11
|
+
"@contentstack/cli-command": "~1.3.3",
|
|
12
|
+
"@contentstack/cli-utilities": "~1.8.4",
|
|
13
|
+
"chalk": "^4.1.2",
|
|
14
|
+
"inquirer": "8.2.6",
|
|
15
|
+
"lodash": "^4.17.21",
|
|
19
16
|
"merge": "^2.1.1",
|
|
20
|
-
"ora": "^5.1
|
|
17
|
+
"ora": "^5.4.1",
|
|
21
18
|
"prompt": "^1.3.0",
|
|
22
|
-
"rimraf": "^5.0.
|
|
23
|
-
"winston": "^3.
|
|
19
|
+
"rimraf": "^5.0.10",
|
|
20
|
+
"winston": "^3.17.0"
|
|
24
21
|
},
|
|
25
22
|
"devDependencies": {
|
|
26
|
-
"@oclif/test": "^
|
|
27
|
-
"chai": "^4.
|
|
28
|
-
"eslint": "^8.
|
|
23
|
+
"@oclif/test": "^4.1.6",
|
|
24
|
+
"chai": "^4.5.0",
|
|
25
|
+
"eslint": "^8.57.1",
|
|
29
26
|
"eslint-config-oclif": "^4.0.0",
|
|
30
|
-
"
|
|
31
|
-
"jest": "^29.4.2",
|
|
32
|
-
"mocha": "^10.0.0",
|
|
27
|
+
"mocha": "^10.8.2",
|
|
33
28
|
"nyc": "^15.1.0",
|
|
34
|
-
"oclif": "^3.
|
|
35
|
-
"sinon": "^19.0.
|
|
29
|
+
"oclif": "^3.17.2",
|
|
30
|
+
"sinon": "^19.0.2"
|
|
36
31
|
},
|
|
37
32
|
"engines": {
|
|
38
33
|
"node": ">=14.0.0"
|
|
@@ -211,36 +211,36 @@ StackCloneCommand.flags = {
|
|
|
211
211
|
'source-management-token-alias': flags.string({
|
|
212
212
|
required: false,
|
|
213
213
|
multiple: false,
|
|
214
|
-
description: 'Source
|
|
214
|
+
description: 'Source management token alias.',
|
|
215
215
|
}),
|
|
216
216
|
'destination-management-token-alias': flags.string({
|
|
217
217
|
required: false,
|
|
218
218
|
multiple: false,
|
|
219
|
-
description: '
|
|
219
|
+
description: 'Destination management token alias.',
|
|
220
220
|
}),
|
|
221
221
|
'stack-name': flags.string({
|
|
222
222
|
char: 'n',
|
|
223
223
|
required: false,
|
|
224
224
|
multiple: false,
|
|
225
|
-
description: '
|
|
225
|
+
description: 'Provide a name for the new stack to store the cloned content.',
|
|
226
226
|
}),
|
|
227
227
|
type: flags.string({
|
|
228
228
|
required: false,
|
|
229
229
|
multiple: false,
|
|
230
230
|
options: ['a', 'b'],
|
|
231
|
-
description: `Type of data to clone
|
|
232
|
-
a) Structure (all modules except entries & assets)
|
|
233
|
-
b) Structure with content (all modules including entries & assets)
|
|
231
|
+
description: ` Type of data to clone. You can select option a or b.
|
|
232
|
+
a) Structure (all modules except entries & assets).
|
|
233
|
+
b) Structure with content (all modules including entries & assets).
|
|
234
234
|
`,
|
|
235
235
|
}),
|
|
236
236
|
'source-stack-api-key': flags.string({
|
|
237
|
-
description: 'Source stack API
|
|
237
|
+
description: 'Source stack API key',
|
|
238
238
|
}),
|
|
239
239
|
'destination-stack-api-key': flags.string({
|
|
240
|
-
description: 'Destination stack API
|
|
240
|
+
description: 'Destination stack API key',
|
|
241
241
|
}),
|
|
242
242
|
'import-webhook-status': flags.string({
|
|
243
|
-
description: '[
|
|
243
|
+
description: '[default: disable] (optional) The status of the import webhook. <options: disable|current>',
|
|
244
244
|
options: ['disable', 'current'],
|
|
245
245
|
required: false,
|
|
246
246
|
default: 'disable',
|
|
@@ -248,10 +248,10 @@ b) Structure with content (all modules including entries & assets)
|
|
|
248
248
|
yes: flags.boolean({
|
|
249
249
|
char: 'y',
|
|
250
250
|
required: false,
|
|
251
|
-
description: '
|
|
251
|
+
description: 'Force override all Marketplace prompts.',
|
|
252
252
|
}),
|
|
253
253
|
'skip-audit': flags.boolean({
|
|
254
|
-
description: 'Skips the audit fix.',
|
|
254
|
+
description: ' (optional) Skips the audit fix that occurs during an import operation.',
|
|
255
255
|
}),
|
|
256
256
|
config: flags.string({
|
|
257
257
|
char: 'c',
|