Skip to main content

app logs
command

Opens a real-time stream of detailed app logs from the selected app and store. Use the --source argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the shopify app logs sources command to view a list of sources. Use the --status argument to filter on status, either success or failure.

shopify app logs --status=success --source=extension.discount-function

The following flags are available for the app logs command:

string
env: SHOPIFY_FLAG_CLIENT_ID

The Client ID of your app.

env: SHOPIFY_FLAG_NO_COLOR

Disable color output.

string
env: SHOPIFY_FLAG_PATH

The path to your app directory.

env: SHOPIFY_FLAG_RESET

Reset all your settings.

string
env: SHOPIFY_FLAG_SOURCE

Filters output to the specified log source.

string
env: SHOPIFY_FLAG_STATUS

Filters output to the specified status (success or failure).

env: SHOPIFY_FLAG_VERBOSE

Increase the verbosity of the output.

Anchor to -c, --config <value>
-c, --config <value>
string
env: SHOPIFY_FLAG_APP_CONFIG

The name of the app configuration.

env: SHOPIFY_FLAG_JSON

Output the result as JSON.

string
env: SHOPIFY_FLAG_STORE

Store URL. Must be an existing development or Shopify Plus sandbox store.

Was this section helpful?

App logs

shopify app logs [flags]