@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone
1616$ csdx COMMAND
1717running command...
1818$ csdx (--version)
19- @contentstack/cli-cm-clone/2.0.0-beta.5 darwin-arm64 node-v24.12.0
19+ @contentstack/cli-cm-clone/2.0.0-beta.6 darwin-arm64 node-v24.12.0
2020$ csdx --help [COMMAND]
2121USAGE
2222 $ csdx COMMAND
3838
3939<!-- commands -->
4040* [ ` 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+ ```
4197
4298## ` 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] `
4399
@@ -77,6 +133,9 @@ DESCRIPTION
77133 Use this plugin to automate the process of cloning a stack in few steps.
78134
79135
136+ ALIASES
137+ $ csdx cm:stack-clone
138+
80139EXAMPLES
81140 $ csdx cm:stacks:clone
82141
@@ -91,5 +150,5 @@ EXAMPLES
91150 $ 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>
92151```
93152
94- _ See code: [ src/commands/cm/stacks/clone.js ] ( https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.js ) _
153+ _ See code: [ src/commands/cm/stacks/clone.ts ] ( https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.ts ) _
95154<!-- commandsstop -->
0 commit comments