shopify app function replay
Replays a function run from an app log.
Runs the function from your current directory for testing purposes. To learn how you can monitor and debug functions when errors occur, refer to Shopify Functions error handling.
Usage
shopify app function replay [flags]Summary
Replays a function run from an app log.
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.--path <value>string— The path to your function directory. optional Environment:SHOPIFY_FLAG_PATH.--reset— Reset all your settings. optional Environment:SHOPIFY_FLAG_RESET.--verbose— Increase the verbosity of the output. optional Environment:SHOPIFY_FLAG_VERBOSE.-c, --config <value>string— The name of the app configuration. optional Environment:SHOPIFY_FLAG_APP_CONFIG.-j, --json— Output the result as JSON. Automatically disables color output. optional Environment:SHOPIFY_FLAG_JSON.-l, --log <value>string— Specifies a log identifier to replay instead of selecting from a list. The identifier is provided in the output ofshopify app devand is the suffix of the log file name. optional Environment:SHOPIFY_FLAG_LOG.-w, --watch— Re-run the function when the source code changes. optional Environment:SHOPIFY_FLAG_WATCH.