---
title: Access app logs in Shopify CLI - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/posts/query-your-app-s-logs-in-shopify-cli-with-shopify-app-logs
  md: >-
    https://shopify.dev/changelog/posts/query-your-app-s-logs-in-shopify-cli-with-shopify-app-logs.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: Shopify CLI
    handle: shopify-cli
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2026-11-20T14:15:26-05:00'
  postedAt: '2026-11-23T12:00:00-05:00'
  updatedAt: '2026-11-20T17:07:11-05:00'
  effectiveAt: '2026-11-21T12:00:00-05:00'
---

November 23, 2026

# Access app logs in Shopify CLI

DateNovember 23, 2026

FlagsNew

TagsShopify CLI

[Shopify CLI](https://shopify.dev/docs/api/shopify-cli) version 5.1 adds the `shopify app logs` command, which lists your app’s recent logs in your terminal. It returns the same logs you see in the Dev Dashboard, such as webhook deliveries, Admin API requests, and Shopify Function runs. This is an optional new command and doesn’t require changes to existing apps.

## What changed

* `shopify app logs` returns historical log records for one app, then exits. By default, it returns up to 20 records from the last hour, across all log types.
* You can filter by log type with `--type`: `webhook`, `graphql`, `rest`, `function`, `app-event`, `app-billing-event`, and `ui-extension`.
* You can filter by store, result, and fields such as webhook topic, HTTP status code, GraphQL operation name, request ID, or Function handle.
* You can set a time window with `--since` and `--until`. You can look back up to 7 days, in windows of up to 1 day, and return up to 1,000 records with `--limit`.
* You can add `--json` to get each full record, for scripts and coding agents.

## Examples

To find failed webhook deliveries from the last 24 hours:

```bash
shopify app logs --type webhook --status failure --since 24h --limit 5
```

This command filters webhook deliveries by status, time window, and limit so you can focus on the most recent failures.

To see the newest GraphQL requests first, as JSON:

```bash
shopify app logs --type graphql --since 1h --sort timestamp --order desc --json
```

This command returns recent GraphQL Admin API requests in JSON, sorted by timestamp, so you can feed logs into your own tools.

## Who’s affected

All apps can now use Shopify CLI to access logs. You sign in to Shopify CLI with your user account to run `shopify app logs`. Automation tokens for CI/CD don’t work with this command yet.

Shopify CLI 5.0 removed the earlier `shopify app logs` command that streamed Function logs. The new command lists historical logs instead. To stream Function logs while you develop, you should keep using `shopify app dev`.

## What to do

1. Update to [Shopify CLI 5.1 or later](https://shopify.dev/docs/api/shopify-cli#installation).
2. Run `shopify app logs` from your app’s directory, or pass `--client-id` to specify a particular app.
3. Run `shopify app logs --help` to see each log type and the filters that apply to it.

You don’t need to change your app code to use this feature.

## Related docs

* [`shopify app logs` command reference](https://shopify.dev/docs/api/shopify-cli/app/app-logs)
* [Monitor and query logs in the Dev Dashboard](https://shopify.dev/docs/apps/build/dev-dashboard/monitoring-and-logs#logs)
