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

Topic summary

Users are encountering an error preventing CLI access to development stores, with the system indicating insufficient permissions for Partner staff member accounts.

Primary Solutions:

  • Create a staff account using the same email address used for browser login, ensuring proper permissions for theme editing are enabled via Settings > Users and permissions
  • Specify the store URL explicitly when connecting: shopify theme dev --store https://yoururl.myshopify.com
  • Log out and reconnect using shopify auth logout followed by reconnecting to the theme
  • Verify the store name is typed correctly without curly brackets

Key Issue:
The error appears suddenly for users who previously had working access, suggesting a permissions or authentication change rather than initial setup problems.

Status:
Multiple workarounds have been successful, though one user reports encountering a subsequent TLS connection error after resolving the initial issue. The root cause of why this suddenly affects previously working setups remains unclear.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

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.

1 Like

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

2 Likes

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.