Shopify has added a command to its CLI that lists your app's recent logs straight in the terminal. It's called shopify app logs, it arrived in Shopify CLI 5.1, and if you run a custom app or an integration on a Shopify store, it's worth ten minutes of your time this week.
Nothing breaks if you ignore it. Shopify says it's optional and needs no changes to existing apps. But it makes one of the dullest jobs in looking after a Shopify integration a lot quicker, and that's the job that tends not to get done.
What the command actually does
According to Shopify's changelog, the command returns the same logs you'd see in the Dev Dashboard: webhook deliveries, Admin API requests, Shopify Function runs and so on. It fetches a batch of historical records for one app and then exits. It doesn't sit there streaming.
Run it with no options and you get up to 20 records from the last hour, across every log type. From there you can narrow it down:
- --type picks the kind of log: webhook, graphql, rest, function, app-event, app-billing-event or ui-extension.
- --since and --until set the time window. You can look back up to 7 days, one day at a time.
- --limit returns up to 1,000 records.
- --json gives you each full record, which Shopify pitches at scripts and coding agents.
You can also filter by store, by result, and by things like webhook topic, HTTP status code, GraphQL operation name, request ID or Function handle. Running shopify app logs --help shows which filters apply to which log type.
Shopify's own example for finding failed webhook deliveries from the last day looks like this:
shopify app logs --type webhook --status failure --since 24h --limit 5
That one line is the bit I like. Five failed webhooks, the last 24 hours, in your terminal, without clicking through a dashboard.
A couple of catches
You sign in to the CLI with your own user account to use it. Shopify says automation tokens for CI/CD don't work with this command yet, so you can't drop it into a pipeline or a scheduled job on a server today. For now it's a tool for a person at a keyboard (or a coding agent running on that person's machine).
It's also not the same as the old shopify app logs. CLI 5.0 removed an earlier command of that name which streamed Function logs. If you want live Function logs while you're developing, Shopify says to keep using shopify app dev. The new command is for looking back, not watching live.
And the window is short. The CLI looks back 7 days. Shopify's Dev Dashboard docs say logs are kept for 30 days there, with each search covering at most 7 days. Either way, this is not an audit trail. If you need to know what happened to an order three months ago, you need your own logging.
Why this matters for custom apps and integrations
Most Shopify integrations are quiet. They take an order webhook, push it to the warehouse or the ERP, pull stock back, and nobody thinks about them until a customer rings up asking where their parcel is.
When that happens, the first question is always the same. Did Shopify send the webhook, and did our app accept it? Before, answering that meant logging in to the right dashboard, finding the right app and clicking about. Now it's one command from the app's directory, or from anywhere with --client-id.
The JSON output is the more interesting part for us. Pipe it through jq, or hand it to Claude Code and ask what's failing and why. A coding agent that can see the actual failed requests, with status codes and request IDs, is far more useful than one guessing from the source code alone. You still check what it tells you, obviously. But it shortens the gap between "something's wrong" and "here's the request that failed".
What I'd do this week
If you have a custom Shopify app or integration, here's a short list:
- Update to Shopify CLI 5.1 or later on whichever machine you use for the app.
- Run shopify app logs --type webhook --status failure --since 24h and see what comes back. If it's empty, good. If it isn't, you've just found something nobody told you about.
- Do the same for GraphQL and REST requests and look at the status codes. A steady trickle of errors is often the first sign of a scope change, an expired token or an API version that's about to go.
- Check your own app logs the same way. Shopify's log tells you what it sent and what came back. Your server's log tells you what your code did with it. You need both.
- Decide who looks at this, and how often. A tool nobody runs is no better than no tool.
That last one matters most. With the run of Shopify changes over the last couple of months (IP allowlists, expiring tokens, network access declarations, protected customer data on abandoned checkout links), there's been plenty that can quietly start failing. The changelog tells you what's changing. The logs tell you whether it's hit you.
If you don't know where to start
If you inherited a Shopify app and you're not sure what it does, which webhooks it listens to or whether anyone is watching it, that's the honest place to start. Our code audit is £250 + VAT. We go through the code, the server and the database and give you a written report with a fixed price for each fix.
If you'd rather someone just kept an eye on it, that's what Look after it is for. It starts from £355 a month + VAT and covers fixes, security updates, hosting and backups. And if you need a new integration built properly in the first place, have a look at our Shopify integrations page or the wider custom Shopify development page.
One last thing while you're poking at logs: if you find API keys or tokens hard-coded into the app, I've written a plain-English guide on why API keys in your code matter and how to fix it.
Got a Shopify app you're not sure about? Book a call and we'll have a look.
Cheers, Rob

