Why can't I access the CLI on my local store?

Hey,

I’m getting this (see below) error message issue when I’m trying to work with the shopify cli on my local store. I had no issues before and it happened all of a sudden. How would I be able to fix it?

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. 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 STORE.myshopify.com.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.

I also get the same error. With a bit of googling, I managed to find a solution.

What I had to do was create a staff account using the email address I used to login to the store in the web browser. This will then give that email address the necessary permission to work with Shopify CLI.

You will need to enable the correct permissions for theme editing and any other permissions if you think you will need to use them. Click on “Settings” then “Users and permissions” to configure it.

I hope this helps and let me know if you need any further details.

hello! I have this problem, since Monday, for 6 months I worked with this without any problem and from one day to the next having all the permissions I get this error, I logged out, logged in again and everything continues like this, it only leaves me from one account As you mention, can you give me a solution for partner?

hello! I have this problem, since Monday, for 6 months I worked with this without any problem and from one day to the next having all the permissions I get this error, I logged out, logged in again and everything continues like this, it only leaves me from one account As you mention, can you give me a solution for partner?

I logged out in shopify cli in terminal with auth logout and reconnect to the new theme with shopify cli interminal with shopify theme dev --store store-name and It worked fine

I had the same problem. Fixed it by running in terminal

shopify theme dev --store https://yoururl.myshopify.com

For some reason the default login doesn’t seem to connect to your store with all the correct permissions. You have to specify the store URL.

Hope that helps.

GOOD! i fix the problem! but i got another one!!! Client network socket disconnected before secure TLS connection was established!

Okay lol, I had the same problem, and the solution was funny for my case a little bit, just make sure you typed the store name correctly without curly brackets, if still having the same error then its definetly your account doesnt have the neccessary credentials to login.