shopify store execute
Execute GraphQL queries and mutations on a store.
Executes an Admin API GraphQL query or mutation on the specified store using previously stored app authentication.
Run shopify store auth first to create stored auth for the store.
Mutations are disabled by default. Re-run with --allow-mutations if you intend to modify store data.
Usage
shopify store execute [flags]Summary
Execute GraphQL queries and mutations on a store.
Flags
--allow-mutations— Allow GraphQL mutations to run against the target store. optional Environment:SHOPIFY_FLAG_ALLOW_MUTATIONS.--no-color— Disable color output. optional Environment:SHOPIFY_FLAG_NO_COLOR.--output-file <value>string— The file name where results should be written, instead of STDOUT. optional Environment:SHOPIFY_FLAG_OUTPUT_FILE.--query-file <value>string— Path to a file containing the GraphQL query or mutation. Can't be used with --query. optional Environment:SHOPIFY_FLAG_QUERY_FILE.--variable-file <value>string— Path to a file containing GraphQL variables in JSON format. Can't be used with --variables. optional Environment:SHOPIFY_FLAG_VARIABLE_FILE.--verbose— Increase the verbosity of the output. optional Environment:SHOPIFY_FLAG_VERBOSE.--version <value>string— The API version to use for the query or mutation. Defaults to the latest stable version. optional Environment:SHOPIFY_FLAG_VERSION.-j, --json— Output the result as JSON. Automatically disables color output. optional Environment:SHOPIFY_FLAG_JSON.-q, --query <value>string— The GraphQL query or mutation, as a string. optional Environment:SHOPIFY_FLAG_QUERY.-s, --store <value>string— The myshopify.com domain of the store to execute against. required Environment:SHOPIFY_FLAG_STORE.-v, --variables <value>string— The values for any GraphQL variables in your query or mutation, in JSON format. optional Environment:SHOPIFY_FLAG_VARIABLES.