@contentstack/cli-cm-clone 2.0.0-beta.3 → 2.0.0-beta.4

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
@@ -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/2.0.0-beta.2 darwin-arm64 node-v22.14.0
19
+ @contentstack/cli-cm-clone/2.0.0-beta.4 darwin-arm64 node-v24.12.0
20
20
  $ csdx --help [COMMAND]
21
21
  USAGE
22
22
  $ csdx COMMAND
@@ -38,62 +38,6 @@ USAGE
38
38
 
39
39
  <!-- commands -->
40
40
  * [`csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksclone---source-branch-value---target-branch-value---source-management-token-alias-value---destination-management-token-alias-value--n-value---type-ab---source-stack-api-key-value---destination-stack-api-key-value---import-webhook-status-disablecurrent)
41
- * [`csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksclone---source-branch-value---target-branch-value---source-management-token-alias-value---destination-management-token-alias-value--n-value---type-ab---source-stack-api-key-value---destination-stack-api-key-value---import-webhook-status-disablecurrent)
42
-
43
- ## `csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`
44
-
45
- Clone data (structure/content or both) of a stack into another stack
46
-
47
- ```
48
- USAGE
49
- $ csdx cm:stack-clone cm:stacks:clone [--source-branch <value>] [--target-branch <value>]
50
- [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b]
51
- [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]
52
-
53
- FLAGS
54
- -c, --config=<value> Path for the external configuration
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>
61
- <options: disable|current>
62
- --skip-audit (optional) Skips the audit fix that occurs during an import
63
- operation.
64
- --source-branch=<value> Branch of the source stack.
65
- --source-branch-alias=<value> Alias of Branch of the source stack.
66
- --source-management-token-alias=<value> Source management token alias.
67
- --source-stack-api-key=<value> Source stack API key
68
- --target-branch=<value> Branch of the target stack.
69
- --target-branch-alias=<value> Alias of Branch of the target stack.
70
- --type=<option> Type of data to clone. You can select option a or b.
71
- a) Structure (all modules except entries & assets).
72
- b) Structure with content (all modules including entries & assets).
73
-
74
- <options: a|b>
75
-
76
- DESCRIPTION
77
- Clone data (structure/content or both) of a stack into another stack
78
- Use this plugin to automate the process of cloning a stack in few steps.
79
-
80
-
81
- ALIASES
82
- $ csdx cm:stack-clone
83
-
84
- EXAMPLES
85
- $ csdx cm:stacks:clone
86
-
87
- $ csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name> --yes
88
-
89
- $ csdx cm:stacks:clone --source-stack-api-key <apiKey> --destination-stack-api-key <apiKey>
90
-
91
- $ csdx cm:stacks:clone --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
92
-
93
- $ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
94
-
95
- $ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias> --type <value a or b>
96
- ```
97
41
 
98
42
  ## `csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`
99
43
 
@@ -133,9 +77,6 @@ DESCRIPTION
133
77
  Use this plugin to automate the process of cloning a stack in few steps.
134
78
 
135
79
 
136
- ALIASES
137
- $ csdx cm:stack-clone
138
-
139
80
  EXAMPLES
140
81
  $ csdx cm:stacks:clone
141
82
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-clone",
3
3
  "description": "Contentstack stack clone plugin",
4
- "version": "2.0.0-beta.3",
4
+ "version": "2.0.0-beta.4",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
7
7
  "dependencies": {
8
8
  "@colors/colors": "^1.6.0",
9
- "@contentstack/cli-cm-export": "~2.0.0-beta.3",
9
+ "@contentstack/cli-cm-export": "~2.0.0-beta.4",
10
10
  "@contentstack/cli-cm-import": "~2.0.0-beta.3",
11
11
  "@contentstack/cli-command": "~1.7.0",
12
12
  "@contentstack/cli-utilities": "~1.15.0",
@@ -60,12 +60,8 @@
60
60
  "clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
61
61
  },
62
62
  "csdxConfig": {
63
- "expiredCommands": {
64
- "cm:stack-clone": "csdx cm:stacks:clone"
65
- },
66
63
  "shortCommandName": {
67
- "cm:stacks:clone": "CLN",
68
- "cm:stack-clone": "O-CLN"
64
+ "cm:stacks:clone": "CLN"
69
65
  }
70
66
  }
71
67
  }
@@ -84,11 +84,11 @@ class StackCloneCommand extends Command {
84
84
  }
85
85
  config.forceStopMarketplaceAppsPrompt = yes;
86
86
  config.skipAudit = cloneCommandFlags['skip-audit'];
87
- log.debug('Clone configuration prepared', {
87
+ log.debug('Clone configuration prepared', {
88
88
  ...cloneContext,
89
- cloneType: config.cloneType,
89
+ cloneType: config.cloneType,
90
90
  skipAudit: config.skipAudit,
91
- forceStopMarketplaceAppsPrompt: config.forceStopMarketplaceAppsPrompt
91
+ forceStopMarketplaceAppsPrompt: config.forceStopMarketplaceAppsPrompt
92
92
  });
93
93
 
94
94
  if (cloneType) {
@@ -106,7 +106,7 @@ class StackCloneCommand extends Command {
106
106
  if (targetStackBranch) {
107
107
  config.targetStackBranch = targetStackBranch;
108
108
  }
109
- if (targetStackBranchAlias) {
109
+ if (targetStackBranchAlias) {
110
110
  config.targetStackBranchAlias = targetStackBranchAlias;
111
111
  }
112
112
  if (sourceStackApiKey) {
@@ -265,32 +265,32 @@ StackCloneCommand.examples = [
265
265
  'csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias> --type <value a or b>',
266
266
  ];
267
267
 
268
- StackCloneCommand.aliases = ['cm:stack-clone'];
268
+ StackCloneCommand.aliases = [];
269
269
 
270
270
  StackCloneCommand.flags = {
271
271
  'source-branch': flags.string({
272
272
  required: false,
273
273
  multiple: false,
274
274
  description: 'Branch of the source stack.',
275
- exclusive: ['source-branch-alias']
275
+ exclusive: ['source-branch-alias'],
276
276
  }),
277
277
  'source-branch-alias': flags.string({
278
278
  required: false,
279
279
  multiple: false,
280
280
  description: 'Alias of Branch of the source stack.',
281
- exclusive: ['source-branch']
281
+ exclusive: ['source-branch'],
282
282
  }),
283
283
  'target-branch': flags.string({
284
284
  required: false,
285
285
  multiple: false,
286
286
  description: 'Branch of the target stack.',
287
- exclusive: ['target-branch-alias']
287
+ exclusive: ['target-branch-alias'],
288
288
  }),
289
289
  'target-branch-alias': flags.string({
290
290
  required: false,
291
291
  multiple: false,
292
292
  description: 'Alias of Branch of the target stack.',
293
- exclusive: ['target-branch']
293
+ exclusive: ['target-branch'],
294
294
  }),
295
295
  'source-management-token-alias': flags.string({
296
296
  required: false,