@contentstack/cli 2.0.0-beta.10 → 2.0.0-beta.11

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
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (--version|-v)
21
- @contentstack/cli/2.0.0-beta.10 linux-x64 node-v22.22.0
21
+ @contentstack/cli/2.0.0-beta.11 linux-x64 node-v22.22.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -41,10 +41,12 @@ USAGE
41
41
  * [`csdx cm:branches:delete [-uid <value>] [-k <value>]`](#csdx-cmbranchesdelete--uid-value--k-value)
42
42
  * [`csdx cm:branches:diff [--base-branch <value>] [--compare-branch <value>] [-k <value>][--module <value>] [--format <value>] [--csv-path <value>]`](#csdx-cmbranchesdiff---base-branch-value---compare-branch-value--k-value--module-value---format-value---csv-path-value)
43
43
  * [`csdx cm:branches:merge [-k <value>][--compare-branch <value>] [--no-revert] [--export-summary-path <value>] [--use-merge-summary <value>] [--comment <value>] [--base-branch <value>]`](#csdx-cmbranchesmerge--k-value--compare-branch-value---no-revert---export-summary-path-value---use-merge-summary-value---comment-value---base-branch-value)
44
+ * [`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)
44
45
  * [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
45
46
  * [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
46
47
  * [`csdx cm:stacks:bulk-assets`](#csdx-cmstacksbulk-assets)
47
48
  * [`csdx cm:stacks:bulk-entries`](#csdx-cmstacksbulk-entries)
49
+ * [`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)
48
50
  * [`csdx cm:stacks:export [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`](#csdx-cmstacksexport---config-value---stack-api-key-value---data-dir-value---alias-value---module-value---content-types-value---branch-value---secured-assets)
49
51
  * [`csdx cm:stacks:import [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport---config-value---stack-api-key-value---data-dir-value---alias-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
50
52
  * [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport-setup--k-value--d-value--a-value---modules-valuevalue)
@@ -487,6 +489,61 @@ EXAMPLES
487
489
 
488
490
  _See code: [@contentstack/cli-cm-branches](https://github.com/contentstack/cli/blob/main/packages/contentstack-export/src/commands/cm/branches/merge.ts)_
489
491
 
492
+ ## `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]`
493
+
494
+ Clone data (structure/content or both) of a stack into another stack
495
+
496
+ ```
497
+ USAGE
498
+ $ csdx cm:stack-clone cm:stacks:clone [--source-branch <value>] [--target-branch <value>]
499
+ [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b]
500
+ [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]
501
+
502
+ FLAGS
503
+ -c, --config=<value> Path for the external configuration
504
+ -n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
505
+ -y, --yes Force override all Marketplace prompts.
506
+ --destination-management-token-alias=<value> Destination management token alias.
507
+ --destination-stack-api-key=<value> Destination stack API key
508
+ --import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
509
+ import webhook. <options: disable|current>
510
+ <options: disable|current>
511
+ --skip-audit (optional) Skips the audit fix that occurs during an import
512
+ operation.
513
+ --source-branch=<value> Branch of the source stack.
514
+ --source-branch-alias=<value> Alias of Branch of the source stack.
515
+ --source-management-token-alias=<value> Source management token alias.
516
+ --source-stack-api-key=<value> Source stack API key
517
+ --target-branch=<value> Branch of the target stack.
518
+ --target-branch-alias=<value> Alias of Branch of the target stack.
519
+ --type=<option> Type of data to clone. You can select option a or b.
520
+ a) Structure (all modules except entries & assets).
521
+ b) Structure with content (all modules including entries & assets).
522
+
523
+ <options: a|b>
524
+
525
+ DESCRIPTION
526
+ Clone data (structure/content or both) of a stack into another stack
527
+ Use this plugin to automate the process of cloning a stack in few steps.
528
+
529
+
530
+ ALIASES
531
+ $ csdx cm:stack-clone
532
+
533
+ EXAMPLES
534
+ $ csdx cm:stacks:clone
535
+
536
+ $ csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name> --yes
537
+
538
+ $ csdx cm:stacks:clone --source-stack-api-key <apiKey> --destination-stack-api-key <apiKey>
539
+
540
+ $ csdx cm:stacks:clone --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
541
+
542
+ $ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
543
+
544
+ $ 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>
545
+ ```
546
+
490
547
  ## `csdx cm:stacks:audit`
491
548
 
492
549
  Perform audits and find possible errors in the exported Contentstack data
@@ -740,6 +797,63 @@ EXAMPLES
740
797
 
741
798
  _See code: [@contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations/blob/v1.0.0-beta/src/commands/cm/stacks/bulk-entries.ts)_
742
799
 
800
+ ## `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]`
801
+
802
+ Clone data (structure/content or both) of a stack into another stack
803
+
804
+ ```
805
+ USAGE
806
+ $ csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias
807
+ <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>]
808
+ [--destination-stack-api-key <value>] [--import-webhook-status disable|current]
809
+
810
+ FLAGS
811
+ -c, --config=<value> Path for the external configuration
812
+ -n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
813
+ -y, --yes Force override all Marketplace prompts.
814
+ --destination-management-token-alias=<value> Destination management token alias.
815
+ --destination-stack-api-key=<value> Destination stack API key
816
+ --import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
817
+ import webhook. <options: disable|current>
818
+ <options: disable|current>
819
+ --skip-audit (optional) Skips the audit fix that occurs during an import
820
+ operation.
821
+ --source-branch=<value> Branch of the source stack.
822
+ --source-branch-alias=<value> Alias of Branch of the source stack.
823
+ --source-management-token-alias=<value> Source management token alias.
824
+ --source-stack-api-key=<value> Source stack API key
825
+ --target-branch=<value> Branch of the target stack.
826
+ --target-branch-alias=<value> Alias of Branch of the target stack.
827
+ --type=<option> Type of data to clone. You can select option a or b.
828
+ a) Structure (all modules except entries & assets).
829
+ b) Structure with content (all modules including entries & assets).
830
+
831
+ <options: a|b>
832
+
833
+ DESCRIPTION
834
+ Clone data (structure/content or both) of a stack into another stack
835
+ Use this plugin to automate the process of cloning a stack in few steps.
836
+
837
+
838
+ ALIASES
839
+ $ csdx cm:stack-clone
840
+
841
+ EXAMPLES
842
+ $ csdx cm:stacks:clone
843
+
844
+ $ csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name> --yes
845
+
846
+ $ csdx cm:stacks:clone --source-stack-api-key <apiKey> --destination-stack-api-key <apiKey>
847
+
848
+ $ csdx cm:stacks:clone --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
849
+
850
+ $ csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>
851
+
852
+ $ 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>
853
+ ```
854
+
855
+ _See code: [@contentstack/cli-cm-clone](https://github.com/contentstack/cli/blob/main/packages/contentstack-clone/src/commands/cm/stacks/clone.ts)_
856
+
743
857
  ## `csdx cm:stacks:export [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`
744
858
 
745
859
  Export content from a stack
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "commands": {},
3
- "version": "2.0.0-beta.10"
3
+ "version": "2.0.0-beta.11"
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli",
3
3
  "description": "Command-line tool (CLI) to interact with Contentstack",
4
- "version": "2.0.0-beta.10",
4
+ "version": "2.0.0-beta.11",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run.js"
@@ -22,23 +22,23 @@
22
22
  "prepack": "pnpm compile && oclif manifest && oclif readme"
23
23
  },
24
24
  "dependencies": {
25
- "@contentstack/cli-audit": "~2.0.0-beta.3",
26
- "@contentstack/cli-cm-export": "~2.0.0-beta.8",
27
- "@contentstack/cli-cm-import": "~2.0.0-beta.7",
28
- "@contentstack/cli-auth": "~2.0.0-beta.4",
25
+ "@contentstack/cli-audit": "~2.0.0-beta.4",
26
+ "@contentstack/cli-cm-export": "~2.0.0-beta.9",
27
+ "@contentstack/cli-cm-import": "~2.0.0-beta.8",
28
+ "@contentstack/cli-auth": "~2.0.0-beta.5",
29
29
  "@contentstack/cli-bulk-operations": "^1.0.0-beta",
30
- "@contentstack/cli-cm-bootstrap": "~2.0.0-beta.7",
31
- "@contentstack/cli-cm-branches": "~1.6.3",
32
- "@contentstack/cli-cm-clone": "~2.0.0-beta.8",
33
- "@contentstack/cli-cm-export-to-csv": "~1.11.0",
34
- "@contentstack/cli-cm-import-setup": "~2.0.0-beta.3",
35
- "@contentstack/cli-cm-seed": "~2.0.0-beta.7",
36
- "@contentstack/cli-command": "~1.7.2",
37
- "@contentstack/cli-config": "~2.0.0-beta",
30
+ "@contentstack/cli-cm-bootstrap": "~2.0.0-beta.8",
31
+ "@contentstack/cli-cm-branches": "~2.0.0-beta",
32
+ "@contentstack/cli-cm-clone": "~2.0.0-beta.10",
33
+ "@contentstack/cli-cm-export-to-csv": "~2.0.0-beta",
34
+ "@contentstack/cli-cm-import-setup": "~2.0.0-beta.4",
35
+ "@contentstack/cli-cm-seed": "~2.0.0-beta.8",
36
+ "@contentstack/cli-command": "~2.0.0-beta",
37
+ "@contentstack/cli-config": "~2.0.0-beta.1",
38
38
  "@contentstack/cli-launch": "^1.9.6",
39
- "@contentstack/cli-migration": "~2.0.0-beta.4",
40
- "@contentstack/cli-utilities": "~1.17.2",
41
- "@contentstack/cli-variants": "~2.0.0-beta.4",
39
+ "@contentstack/cli-migration": "~2.0.0-beta.5",
40
+ "@contentstack/cli-utilities": "~2.0.0-beta",
41
+ "@contentstack/cli-variants": "~2.0.0-beta.5",
42
42
  "@contentstack/management": "~1.27.5",
43
43
  "@contentstack/utils": "~1.7.0",
44
44
  "@oclif/core": "^4.8.0",
@@ -56,7 +56,7 @@
56
56
  "semver": "^7.7.4",
57
57
  "short-uuid": "^4.2.2",
58
58
  "uuid": "^9.0.1",
59
- "winston": "^3.17.0"
59
+ "winston": "^3.19.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@oclif/test": "^4.1.16",