UNPKG

@contentstack/cli-cm-clone

Version:
169 lines 6.14 kB
{ "commands": { "cm:stacks:clone": { "aliases": [ "cm:stack-clone" ], "args": {}, "description": "Clone data (structure/content or both) of a stack into another stack\nUse this plugin to automate the process of cloning a stack in few steps.\n", "examples": [ "csdx cm:stacks:clone", "csdx cm:stacks:clone --source-branch <source-branch-name> --target-branch <target-branch-name> --yes", "csdx cm:stacks:clone --source-stack-api-key <apiKey> --destination-stack-api-key <apiKey>", "csdx cm:stacks:clone --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>", "csdx cm:stacks:clone --source-branch --target-branch --source-management-token-alias <management token alias> --destination-management-token-alias <management token alias>", "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>" ], "flags": { "source-branch": { "description": "Branch of the source stack.", "exclusive": [ "source-branch-alias" ], "name": "source-branch", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "source-branch-alias": { "description": "Alias of Branch of the source stack.", "exclusive": [ "source-branch" ], "name": "source-branch-alias", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "target-branch": { "description": "Branch of the target stack.", "exclusive": [ "target-branch-alias" ], "name": "target-branch", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "target-branch-alias": { "description": "Alias of Branch of the target stack.", "exclusive": [ "target-branch" ], "name": "target-branch-alias", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "source-management-token-alias": { "description": "Source management token alias.", "name": "source-management-token-alias", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "destination-management-token-alias": { "description": "Destination management token alias.", "name": "destination-management-token-alias", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "stack-name": { "char": "n", "description": "Provide a name for the new stack to store the cloned content.", "name": "stack-name", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" }, "type": { "description": " Type of data to clone. You can select option a or b.\n a) Structure (all modules except entries & assets).\n b) Structure with content (all modules including entries & assets).\n ", "name": "type", "required": false, "hasDynamicHelp": false, "multiple": false, "options": [ "a", "b" ], "type": "option" }, "source-stack-api-key": { "description": "Source stack API key", "name": "source-stack-api-key", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "destination-stack-api-key": { "description": "Destination stack API key", "name": "destination-stack-api-key", "hasDynamicHelp": false, "multiple": false, "type": "option" }, "import-webhook-status": { "description": "[default: disable] (optional) The status of the import webhook. <options: disable|current>", "name": "import-webhook-status", "required": false, "default": "disable", "hasDynamicHelp": false, "multiple": false, "options": [ "disable", "current" ], "type": "option" }, "yes": { "char": "y", "description": "Force override all Marketplace prompts.", "name": "yes", "required": false, "allowNo": false, "type": "boolean" }, "skip-audit": { "description": " (optional) Skips the audit fix that occurs during an import operation.", "name": "skip-audit", "allowNo": false, "type": "boolean" }, "config": { "char": "c", "description": "Path for the external configuration", "name": "config", "required": false, "hasDynamicHelp": false, "multiple": false, "type": "option" } }, "hasDynamicHelp": false, "hiddenAliases": [], "id": "cm:stacks:clone", "pluginAlias": "@contentstack/cli-cm-clone", "pluginName": "@contentstack/cli-cm-clone", "pluginType": "core", "strict": true, "usage": "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]", "isESM": false, "relativePath": [ "lib", "commands", "cm", "stacks", "clone.js" ] } }, "version": "1.20.1" }