A developer encountered an authorization error when using shopify theme push to deploy to a specific store in their Shopify Partners account. The issue was device-specific (occurring only on their work machine) and store-specific, though shopify theme dev worked normally and adding the --store flag resolved the problem.
Proposed Solutions:
Authentication reset: Log out using shopify auth logout, then re-authenticate when running commands for different stores
Pull before dev: Run shopify theme pull followed by shopify theme dev when working in new/empty project folders
Add path flag: Include the --path flag with absolute directory path for all Shopify CLI 3 commands (e.g., shopify theme dev --path C:\Shopify\builder\shopify)
Resolution Status:
Multiple users confirmed the shopify theme pull command and --path flag solutions successfully resolved similar authorization issues. The original poster’s specific case remains unclear, though they reported the --store flag workaround was effective.
This is assuming you are editing two different stores that are associated with two different email addresses and either you are the owner or staff of both accounts:
Enter “auth logout”. This will give you - sucessfully logged out of [storename]
Go to another project’s terminal and enter "shopify theme dev --store=[another store’s name]
A new tab opens for authentication. You’ll have to log into the admin panel with the email assosciated with another account.
You will see "Logged into store [storename] in partner organization [org name] upon sucessful authentication.
Goodluck!
Hi @raymart-pc , I encountered the same issue. If you are creating a new project in an empty folder, after executing @smush1 's commands, please run the shopify theme pull command followed by the shopify theme dev command.