My shopify populate products command cannot run

NguyenBinh
New Member
1 0 2

My shopify populate products command is not working even though I followed the instructions and checked my store login to my store first.

NguyenBinh_2-1625125630390.png

 

Replies 23 (23)
satelin2002
Tourist
3 0 1

same here 

 

shopify populate products
✗ Command not allowed with current login. Please check your login details with shopify whoami. You may need to request additional permissions for this action.

kikeice9
New Member
2 0 3

I had the same issue, only add your user to the store staff members and it will work.

satelin2002
Tourist
3 0 1

i am already the owner and not letting me add as a staff member.

PLA
New Member
2 0 4

✗ Command not allowed with current login. Please check your login details with shopify whoami. You may need to request additional permissions for this action.

Same here- 

How to resolve this? shopify whoami 

satelin2002
Tourist
3 0 1

Can someone please take a look

 

this blocks us from doing the app tutorial

PLA
New Member
2 0 4

I've managed to resolve this by login out completely. Logged into another test store, and back in the one I am working on.

dannyboy2
New Member
1 0 0

Getting the same error. shopify whoami indicates I am logged into my development store. Please help.

kikeice9
New Member
2 0 3

In the store panel, you must have access to it, add your user as a staff member then it should work without any trouble.

supersweetsites
New Member
1 0 19

If you just made the dev store and you are the owner, you need to sign in using from the your-store-name.myshopify.com/admin page at least once before the Shopify CLI will work. Best way is to open up the admin login page in an incognito browser and sign in. Then you can sign in using the Shopify CLI and you should be able to use the populate products command.

Panos152
New Member
1 0 0

When you type shopify create into the terminal, it will prompt you for what type of app you’d like to create. You’ll have the choice of creating an app with react front end, or in ruby on rails.

DanielSaavedra
New Member
1 0 0

This fixed it for me. Thank you!

arsnl
New Member
1 0 16

I had the same issue.

It look like when you create a new development store from your Shopify Partner account, Shopify create a temporary admin user for this store. However, this admin user is not automatically linked to your Shopify Partner account (the one you are using with the Shopify CLI).

To fix this issue, you have to follow these steps.

- Open a new tab in your browser in incognito mode and go to your store admin page (https://your-store-name.myshopify.com/admin). The reason why you need to be in incognito mode is to make sure Shopify ask you for your credentials.

- The store admin page will then ask you your credentials. The email is your Shopify Partner account email and the password is the development store password. If you don't know your development store password, go on your non-incognito mode browser tabs and check https://your-store-name.myshopify.com/admin/online_store/preferences?tutorial=unlock

- Shopify will then send you a 6 digits code to your email and ask you to enter this code in order to link the development store admin account to your Shopify Partner account.

- After linking the development store admin account to your Shopify Partner account, you should be able to populate the product for this development store. However, since your token access are now different, you'll need to refresh it by doing a `shopify login` with the CLI.

- After that, you can do a `shopify populate products` and it's gonna work.

I hope this is gonna help you and future Shopify Partners!

devontriley
New Member
1 0 2

This is definitely the correct fix for the problem. Worked for me and makes total sense. Thanks so much!!

Abhishek_Soni
New Member
2 0 1

Have the same issue. Tried all the methods but it is still not working. if anyone get solution for this please reply.

Abhishek_Soni
New Member
2 0 1

facing same problem. Did you get solution for this. please help. I have tried whole day but did not get any thing.

cmist123
New Member
1 0 1

You can select the store you want to login to using the login prompt;

shopify login --store=STORE

where STORE is the 'abc' from 'abc.myshopify.com'

alfredosotoz
New Member
1 0 1

This work from me:

1) Logout from the console: shopify logout

2) Instead of accesing my development store from my partners dashboard, went directly to my store address and login in from there.

Example:

Store Name: AwesomeProducts 

URL: awesome-products.myshopify.com -> Login

You are going to be redirected to your default browser, login from there.

3) Go back to the console, then run: shopify login --store=awesome-products.myshopify.com

4) Then run again shopify populate products

Hope it works for other folks out there!

HueyHuang
Shopify Partner
5 0 0

Caution

You can't use Shopify CLI with development stores if you only have Partner staff member access to the store. 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.

If you're the store owner, then you need to log in to the store directly using the store URL at least once (for example, using my-example-store.myshopify.com/admin) before you log in using Shopify CLI. Logging in to the Shopify admin directly connects the development store with your Shopify login.

 

https://shopify.dev/themes/tools/cli/core-commands

I try to relog to my develop store directly and then I get the access to run populate command

mogobanyamwaro
New Member
1 0 0

First login to your store For example,if your store is "MyCocktailStore.myshopify.com", then login from your terminal as =>shopify login --store=MyCocktailStore