Nguyễn Điệp
Nguyễn Điệp

Reputation: 27

command shopify theme serve show error when i'm the owner

i try to use command shopify theme serve in my project. My account is owner and i also create a staff account with all sensitive permissions. But the terminal always return You can't use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store. .
How i can fix this

Upvotes: 0

Views: 2454

Answers (4)

S s
S s

Reputation: 877

I ran into this exact problem even though I have a domain for my shopify store. Here's how to fix it:

Step 1: Install all packages

npm install -g @shopify/cli @shopify/theme

Step 2: Log into shopify and copy the store ID from the URL you get

https://admin.shopify.com/store/hu52hw-ut

Here you can see it's hu52hw-ut.

Step 3: Logout

shopify auth logout

Step 4: Pull the theme using .myshopify.com instead of your domain

shopify theme pull --store=hu52hw-ut.myshopify.com --path=./development

This is necessary even if you have given the store it's own domain. --store=yourdomain.myshopify.com or --store=yourdomain.com did not work for me, but the above did.

Upvotes: 0

Danilo Simonatto
Danilo Simonatto

Reputation: 13

If it doesn't work with store url like:

shopify login --store store.myshopify.com

Try with the store name only

shopify login --store store

That worked for me.

Upvotes: 0

Gil Perez
Gil Perez

Reputation: 1125

As of Shopify CLI version 3.49.2, the following method worked for me when I needed to switch stores:

Shopify CLI Logout

> shopify auth logout

Shopify CLI Login:

> shopify theme pull --store=verizon

example: https://admin.shopify.com/store/verizon/

Upvotes: 1

Elliott Mejia
Elliott Mejia

Reputation: 56

I've had a plethora of issues with Shopify CLI, so I can help here. This has happened when I have been logged in for a while. I will need more information, but will provide a few catch-all solutions.

1.Are you using a developer account, or are you logged into a store? Try logging out and logging in again as the owner account.

  1. What version are you using?
shopify version
  1. Have you tried logging out and logging back into your store? This usually rectifies it.
shopify logout
shopify login --store=[your .myshopifyURL]
  1. Are you using ruby or homebrew? I have found ruby to be much more stable, and it allows to switch between Shopify CLI versions.

  2. Try switching to a previous shopify version 2.20 or 2.19 if you continue seeing issues. Again, this will need to be done with ruby, as homebrew does not allow any version backtracking.

Edit: make sure your login command looks like this:

shopify login --store=verizon.myshopify.com

You can paste this link from shopify admin, as it is the same link.

Upvotes: 4

Related Questions