SHOPIFY CLI: You are not authorized to edit themes on [store].myshopify.com

I’m currently having issue when deploying to a specific store in our Shopify partners account

Context:

  • We are using our own development tool that uses the command “shopify theme push” when deploying

  • shopify theme dev command is working

  • The issue only occurs with a specific store under our Shopify Partners account

  • The issue only occurs on my work device and not on my personal device. On my personal device, it works perfectly

  • I tried deploying using shopify theme push --store=[storename], and it worked as expected.

See screenshots below:

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:

  1. Enter “auth logout”. This will give you - sucessfully logged out of [storename]
  2. Go to another project’s terminal and enter "shopify theme dev --store=[another store’s name]
  3. A new tab opens for authentication. You’ll have to log into the admin panel with the email assosciated with another account.
  4. You will see "Logged into store [storename] in partner organization [org name] upon sucessful authentication.
    Goodluck!

Hi @smush1 thanks for your reply. Unfortunately this doesn’t work. Tried your suggestion multiple times

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.

Good luck!

It’s a simple fix, that’s helped me after 3 days of searching.

Shopify CLI 3 requires to add –path flag with path to your theme directory.

shopify theme dev --path {your_shopify_theme_directory}

Just replace {your_shopify_theme_directory} with your theme directory.

As an example (path should be absolute):

shopify theme dev --path C:\Shopify\builder\shopify

Don’t forget to add –path to all your shopify scripts: shopify theme dev, shopify theme push etc.

Thanks, the shopify theme pull command fixed it for me!

Thanks @Vivek_Vanga , it finally worked. Very much appreciated

Thank you so much. It worked for me (March, 2025)