Solved

shopify theme serve not working in Shopify CLI

UmeshGhediya
Shopify Partner
3 1 0

Hello,

I have an error like this in Shopify CLI 

  1. I have created new store from partner account
  2. Then I login in my new store
  3. I have already installed Shopify CLI in my system
  4. Then login in and init my theme
  5. Theme is download in my system
  6. Now I have run "shopify theme serve"

I got error like this

 

PS D:\learn-dawn> shopify theme serve                                                                                                 
X You are not authorized to edit themes on kidszone-theme.myshopify.com.
Make sure you are a user of that store, and allowed to edit themes.

 

 

Accepted Solutions (2)

Shreyank
Excursionist
17 2 6

This is an accepted solution.

Hi Umesh, 

    Make sure if this is a development store, you are logged in as a store owner. Since the staff members can not edit the themes on the development stores as per Shopify's documentation. Please try logging in using the store owner account. Please read this link for more details: https://shopify.dev/themes/tools/cli/getting-started

 

Best,

Shreyank

View solution in original post

UmeshGhediya
Shopify Partner
3 1 0

This is an accepted solution.

Hi @Shreyank 

Thank you for replay but this error solved before your answer 🙂

View solution in original post

Replies 11 (11)

Shreyank
Excursionist
17 2 6

This is an accepted solution.

Hi Umesh, 

    Make sure if this is a development store, you are logged in as a store owner. Since the staff members can not edit the themes on the development stores as per Shopify's documentation. Please try logging in using the store owner account. Please read this link for more details: https://shopify.dev/themes/tools/cli/getting-started

 

Best,

Shreyank

UmeshGhediya
Shopify Partner
3 1 0

This is an accepted solution.

Hi @Shreyank 

Thank you for replay but this error solved before your answer 🙂

criticDev
Shopify Partner
3 0 2

What did you do?

I am getting the same error and I haven't even created other user accounts.

I am logging in as the owner.

When I enter 'shopify whoami' it shows:

Logged into store business******.myshopify.com in partner organization criticDev.

criticDev
Shopify Partner
3 0 2

my mistake ... but for new people who are getting this error.

Just follow the "Caution Block" in before you started section at the following link:

https://shopify.dev/themes/tools/cli/getting-started

don't forget to logout from shopify-cli if you're already logged in.

 

abdullahdiaa
Visitor
1 0 10

If you're still facing same issue, try instructions in this video:

https://www.youtube.com/watch?v=CFSmlLfh6FE&t=240s

Charles_Marsh
Shopify Expert
35 0 0

This fixed my issue! Thanks

BugShallNotPass
Shopify Partner
32 1 9

Thank you! Just logging out and logging in back again via the CLI worked like a charm!

Xmas Shopify app - beautiful falling snow animation
New Arrivals Shopify app - automatically tag/untag products based on creation/publishing date
Motion - scrolling text announcements
Best Sellers Shopify app - and automate bestseller collections based on quantities or sales
Stash Shopify app - hide products from search results and search engines
40sherrin
Visitor
1 0 0

It was so helpful thanks

jbk1
Excursionist
24 3 3

The steps described in this video solved my issue, thanks, i.e. log out everywhere, log back in, making sure to the correct store (as store owner in my case), and I had access to edit theme.

arpitsharmaind
Visitor
2 0 1

Hi, i logged in using store owner, but i am also getting the same error. 

You are not authorized to edit themes on arpit-test-store.myshopify.com.
Make sure you are a user of that store, and allowed to edit themes.

I also tried using staff account with theme edit permission given. But same error i am receiving.

Thanks 

jsnavarroc
Visitor
1 0 0

 

I had the same problem; I think I found the bug: 

The error was when I had created the store the first time; I was logging through the application. As this option and I didn't access it for the first time through this link {shop}.myshopify.com/admin

jsnavarroc_1-1651011269218.png

 

 


Apparently, the app did not achieve to complete all the configuration, so I needed to open this link in another browser without cookies logging {shop}.myshopify.com/admin and then, logging there, this application asked me for multiple things about connecting with the new storage. and finally, I made shopify login --store {shop}.myshopify.com on the terminal, and then shopify theme serve