GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing www.contentstack.com — Cloning a Stack | V2.x.x | Contentstack Cloning a StackupdateLast updated November 6, 2026 OverviewContentstack enables you to clone a stack and its associated structure and content using the cm:stacks:clone CLI command. This process lets you export data from a source stack and import it into a new or existing stack, facilitating rapid setup, testing, or migration. This guide uses the latest Contentstack CLI commands to ensure a seamless cloning experience. Note Before executing this command, ensure you have the required permissions for creating or accessing the destination stack. To know more about user roles and their permissions, refer to this documentation. Prerequisites
CommandsThe cm:stacks:clone command lets you export content from the source stack and import it into the destination stack instantly. NoteBy default, an audit fix is performed on the exported content before import. This helps identify and address potential issues in the exported data. OptionsUse the following options while performing the clone operation:
Below is an example of a config file 1234567891011121314 {
"master_locale": {
"name": "English - United States",
"code": "en-us"
},
"export": {
// export specific configs
"fetchConcurrency": 1
} ,
"import": {
// import specific configs
"entriesPublish": false
}
}On passing the --config flag, the config will be passed to export and import in the --clone command. You can pass separate or common config for export and import as given in the above sample config file. Note If the --yes flag is not passed, you’ll be prompted to enter an encryption key when cloning a Marketplace app with its configuration. You have three attempts to provide the correct key. After three failed attempts, the cloning process must be restarted from the beginning. Steps to Clone a StackFollow the steps below to clone a stack using the cm:stacks:clone command:
After you complete these prompts, the source stack’s content will be cloned to the destination stack. Alternatively, you can also run the entire operation using a single command with parameters as given below: 1 csdx cm:stacks:clone -n "<>" --source-management-token-alias "<>" --destination-management-token-alias "<>" --target-branch "<>" --source-branch "<>" --type a|b {choose either a or b} -yExamples:
Points to Remember
Additional ResourcesLearn more about the CLI-supported clone operations in the CLI-Supported Features for Export, Import, and Clone Operations document. ExamplesClone both structure and content into a brand new stack, naming it as you go. 1 csdx cm:stacks:clone --source-stack-api-key <SOURCE_API_KEY> --stack-name <NEW_STACK_NAME> --type a Clone into an existing destination stack using saved management token aliases rather than API keys. 1 csdx cm:stacks:clone --source-management-token-alias <SOURCE_ALIAS> --destination-management-token-alias <DEST_ALIAS> Clone one branch into another, skipping the audit fix that otherwise runs during the import half of the operation. 1 csdx cm:stacks:clone --source-stack-api-key <SOURCE_API_KEY> --destination-stack-api-key <DEST_API_KEY> --source-branch <SOURCE_BRANCH> --target-branch <TARGET_BRANCH> --skip-audit Limitations
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |