theme duplicatecommand
If you want to duplicate your local theme, you need to run shopify theme push
first.
If no theme ID is specified, you're prompted to select the theme that you want to duplicate from the list of themes in your store. You're asked to confirm that you want to duplicate the specified theme.
Prompts and confirmations are not shown when duplicate is run in a CI environment or the --force
flag is used, therefore you must specify a theme ID using the --theme
flag.
You can optionally name the duplicated theme using the --name
flag.
If you use the --json
flag, then theme information is returned in JSON format, which can be used as a machine-readable input for scripts or continuous integration.
Sample JSON output:
Anchor to flagsFlags
The following flags are available for the theme duplicate
command:
Disable color output.
Password generated from the Theme Access app.
Increase the verbosity of the output.
The environment to apply to the current command.
Force the duplicate operation to run without prompts or confirmations.
Output the result as JSON.
Name of the newly duplicated theme.
Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
Theme ID or name of the remote theme.