cli
cli copied to clipboard
Shopify theme list command to find exact match by theme name
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:
[
{
"id": 138723655843,
"name": "dev",
"processing": false,
"createdAtRuntime": false,
"role": "unpublished"
},
{
"id": 138723885219,
"name": "dev",
"processing": false,
"createdAtRuntime": false,
"role": "unpublished"
},
{
"id": 138629152931,
"name": "Development (a0ffa7-MacBook-Pro-2)",
"processing": false,
"createdAtRuntime": false,
"role": "development"
},
{
"id": 138680959139,
"name": "Development (229622-Andrews-MacBook-Pro)",
"processing": false,
"createdAtRuntime": false,
"role": "development"
}
]
It would be nice to have a flag that looks for an exact match such that the output returns
[
{
"id": 138723655843,
"name": "dev",
"processing": false,
"createdAtRuntime": false,
"role": "unpublished"
},
{
"id": 138723885219,
"name": "dev",
"processing": false,
"createdAtRuntime": false,
"role": "unpublished"
},
]
Motivation
The above impacts our CI/CD pipeline to view preview links from main
against dev
due to the multiple matches from the list command above.