@contentstack/cli-cm-clone 2.0.0-beta.5 → 2.0.0-beta.6
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 +61 -2
- package/package.json +2 -2
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.
|
|
19
|
+
@contentstack/cli-cm-clone/2.0.0-beta.6 darwin-arm64 node-v24.12.0
|
|
20
20
|
$ csdx --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ csdx COMMAND
|
|
@@ -38,6 +38,62 @@ 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
|
+
```
|
|
41
97
|
|
|
42
98
|
## `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]`
|
|
43
99
|
|
|
@@ -77,6 +133,9 @@ DESCRIPTION
|
|
|
77
133
|
Use this plugin to automate the process of cloning a stack in few steps.
|
|
78
134
|
|
|
79
135
|
|
|
136
|
+
ALIASES
|
|
137
|
+
$ csdx cm:stack-clone
|
|
138
|
+
|
|
80
139
|
EXAMPLES
|
|
81
140
|
$ csdx cm:stacks:clone
|
|
82
141
|
|
|
@@ -91,5 +150,5 @@ EXAMPLES
|
|
|
91
150
|
$ 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>
|
|
92
151
|
```
|
|
93
152
|
|
|
94
|
-
_See code: [src/commands/cm/stacks/clone.
|
|
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)_
|
|
95
154
|
<!-- commandsstop -->
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-clone",
|
|
3
3
|
"description": "Contentstack stack clone plugin",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.6",
|
|
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
9
|
"@contentstack/cli-cm-export": "~2.0.0-beta.5",
|
|
10
|
-
"@contentstack/cli-cm-import": "~2.0.0-beta.
|
|
10
|
+
"@contentstack/cli-cm-import": "~2.0.0-beta.5",
|
|
11
11
|
"@contentstack/cli-command": "~1.7.2",
|
|
12
12
|
"@contentstack/cli-utilities": "~1.17.0",
|
|
13
13
|
"@oclif/core": "^4.3.0",
|