shopify theme serve not working in Shopify CLI

Solved
UmeshGhediya
New Member
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)

Accepted Solutions
Shreyank
Excursionist
17 2 3

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
New Member
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 9 (9)
Shreyank
Excursionist
17 2 3

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
New Member
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

criticDev
New Member
2 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
New Member
2 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
New Member
1 0 6

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
34 0 0

This fixed my issue! Thanks

BugShallNotPass
Excursionist
29 1 2

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
Stash Shopify app - hide products from search results and search engines
40sherrin
New Member
1 0 0

It was so helpful thanks

jbk1
Tourist
4 1 1

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.