You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jamesmengo In the above example there are two themes with the name "dev" so actually i would expect both ids you mentioned to be returned.
The issue is that --name="dev" returns themes with name dev and development so i'm looking for a flag that searches for an exact match for the theme name.
I have edited the example above as I can see it was confusing.
Would specifying the theme ID via the --theme flag, or using a unique name work for your use case?
Passing in an id would not be possible because I dynamically generate preview themes on the fly so I need a way to check whether I should create or update a preview theme. If a theme name matches I then use the theme id to then update the theme.
Thanks for the suggestion! I'll share this with the team to see if this is something we have the bandwidth to build
Not sure about the specifics of your workflow, but an idea I have for the meantime is to avoid conflicts with your development theme by using a different namespace such as preview
I understand that the workaround is imperfect. Feel free to share more about your workflow as well if you'd like us to see if there are any other workarounds or existing features that could address your problem :)
What area(s) will this request affect?
Theme
What type of change do you want to see?
New feature
Overview
Example
shopify theme list --environment='development_eu' --name="dev" --json
currently outputs:It would be nice to have a flag that looks for an exact match such that the output returns
Motivation
The above impacts our CI/CD pipeline to view preview links from
main
againstdev
due to the multiple matches from the list command above.The text was updated successfully, but these errors were encountered: