All things Shopify and commerce
My shopify populate products command is not working even though I followed the instructions and checked my store login to my store first.
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.
I had the same issue, only add your user to the store staff members and it will work.
i am already the owner and not letting me add as a staff member.
✗ 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
Can someone please take a look
this blocks us from doing the app tutorial
I've managed to resolve this by login out completely. Logged into another test store, and back in the one I am working on.
Getting the same error. shopify whoami indicates I am logged into my development store. Please help.
In the store panel, you must have access to it, add your user as a staff member then it should work without any trouble.
First login to your store For example,if your store is "MyCocktailStore.myshopify.com", then login from your terminal as =>shopify login --store=MyCocktailStore
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.
This fixed it for me. Thank you!
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!
Thanks that helped me resolve the issue
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.
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!
This is definitely the correct fix for the problem. Worked for me and makes total sense. Thanks so much!!
Have the same issue. Tried all the methods but it is still not working. if anyone get solution for this please reply.
facing same problem. Did you get solution for this. please help. I have tried whole day but did not get any thing.
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'
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
Adding a different user as a staff worked for me. I don't remember why but the store owner user I setup used a different email than my main Shopify partner email. So, I was able to use my main partner email as the staff member. And I was already logged into my terminal under that user anyway.
Creating a staff member in the new development store with the same email as the email my partner account uses worked for me!!!
I guess why the populate command borks for some people is that they (like me) decided to give their playground developer store admin a different email from the one they use for their partner email. I don't think this is such an unusual thing to want to do.
A key concept here is that different staff/owner/partner "users" are treated specially is they share an email address, given that email addresses are unique to a person. This is not immediately as obvious or as intuitive as Shopify devs might think given that a fair number of people were tripped up following what should be a simple tutorial.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024