shopify app execute
Execute GraphQL queries and mutations.
Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.
For operations that process large amounts of data, use bulk execute instead.
Usage
shopify app execute [flags]Summary
Execute GraphQL queries and mutations.
Flags
--client-id <value>string— The Client ID of your app. optional Environment:SHOPIFY_FLAG_CLIENT_ID.--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.--path <value>string— The path to your app directory. optional Environment:SHOPIFY_FLAG_PATH.--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.--reset— Reset all your settings. optional Environment:SHOPIFY_FLAG_RESET.--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.-c, --config <value>string— The name of the app configuration. optional Environment:SHOPIFY_FLAG_APP_CONFIG.-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. The app must be installed on the store. If not specified, you will be prompted to select a store. optional 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.