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
Since Shopify CLI 3.73.0, there's a new shopify theme metafields pull command that creates the .shopify/metafields.json file containing the metafields definitions.
Are there any plans to import this file into Shopify admin in the future?
Motivation
This would be very useful when you want to use the same metafields on several stores (for example, a single store owner with several stores) without having to create the definitions manually.
The text was updated successfully, but these errors were encountered:
Hello @msev@rcasimmons. Thanks for the interest in this command! Internally, the command just uses the public GraphQL Admin Endpoints which you could use today to upload metafields across shops.
The reason I'd choose this approach over using the metafields CLI command is that the metafields command is used internally for tooling purposes (e.g. code completion). The file will only have a subset of metafield definitions defined on Admin (and is subject to change depending on the tool's needs). The GraphQL queries/mutations are more stable and you should be able to fetch the name, namespace, key, description, and type without running into any permission issues.
What area(s) will this request affect?
Theme
What type of change do you want to see?
New feature
Overview
Since Shopify CLI 3.73.0, there's a new
shopify theme metafields pull
command that creates the.shopify/metafields.json
file containing the metafields definitions.Are there any plans to import this file into Shopify admin in the future?
Motivation
This would be very useful when you want to use the same metafields on several stores (for example, a single store owner with several stores) without having to create the definitions manually.
The text was updated successfully, but these errors were encountered: