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

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

raymart-pc
Shopify Partner
3 0 0

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:

 

Screenshot 2024-07-19 at 3.10.18 PM.png

Screenshot 2024-07-19 at 3.18.23 PM.png

Replies 6 (6)

smush1
Shopify Partner
7 0 3

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!
raymart-pc
Shopify Partner
3 0 0

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

Vivek_Vanga
Shopify Partner
1 0 2

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!

alexvancap
Shopify Partner
1 0 0

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

MiguelCirculy
Shopify Partner
4 0 0

Thanks @Vivek_Vanga, it finally worked. Very much appreciated

DMBPWR
Shopify Partner
1 0 0

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.