Runs the function from your current directory for [testing purposes](/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](/docs/api/functions/errors).
shopify app function replay [flags]
The following flags are available for the `app function replay` command:
env: SHOPIFY_FLAG_CLIENT_ID
The Client ID of your app.
env: SHOPIFY_FLAG_NO_COLOR
Disable color output.
env: SHOPIFY_FLAG_PATH
The path to your function directory.
env: SHOPIFY_FLAG_RESET
Reset all your settings.
env: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output.
env: SHOPIFY_FLAG_APP_CONFIG
The name of the app configuration.
env: SHOPIFY_FLAG_JSON
Output the result as JSON.
env: SHOPIFY_FLAG_LOG
Specifies a log identifier to replay instead of selecting from a list. The identifier is provided in the output of `shopify app dev` and is the suffix of the log file name.
env: SHOPIFY_FLAG_WATCH
Re-run the function when the source code changes.