-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ‘shopify theme duplicate’ command #3908
Comments
This is a clone of the (closed) issue here: Just to reiterate, this would be very useful for CI/CD workflows. |
+1 for this! |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
Still relevant |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. P.S. You can learn more about why we stale issues here. |
still relevant |
This issue is still relevant. We actually have another reason for it - to keep all theme translations. We tried the long way to first download current published theme and then publish it as a new theme. In that case theme translations get removed and lost. But if we use theme duplicate, all theme translations are kept in the duplicated theme. CLI command that would behave the same would actually enable us to use CI/CD the way we need, because currently we need to work directly on the published theme. |
We are just starting our shopify implementation and being able to duplicate a theme programmatically seems like a critical requirement for CI/CD and general deployment automation. |
I would also love for this command to be available with ability to rename the theme at the same time. A use case could be, making a backup before deploying changes via CI/CD. Something like ⤵︎ shopify theme duplicate --environment production --rename-to "📦 Pre Deployment Backup" Bonus points:If it could return a theme id in some way, so we can use automate something like ⤵︎
Just a thought 💡 |
Agreed, setting up our CI/CD pipelines right now and surprised this is not a feature of the CLI. |
Another vote for this. |
What area(s) will this request affect?
Theme
What type of change do you want to see?
New feature
Overview
Introduce a theme duplicate command in the cli, so developers can duplicate a theme in the library.
Motivation
Pushing an entire new theme via cli takes considerably longer than duplicating a pre existing theme - especially in cases where the merchant has lots of assets.
In my workflow, I never overwrite the live theme directly. Instead, when deploying, I create a new theme and allow the merchant to review it before making the decision to publish.
With the duplicate command, I could simply duplicate the live theme and push any changes to it - in that case only the files that have changed will be overwritten.
The text was updated successfully, but these errors were encountered: