Getting error in the CLI when i try to connect my partner account with cli

I am attempting to use Shopify CLI to develop a theme for the store, but I encounter the following error upon login: You are not authorized to use the CLI to develop in the selected store.

Shopify CLI cannot be used with development stores if you have only Partner staff member access. To use Shopify CLI on a development store, you must be either the store owner or have a staff account on the store.

If you are the store owner, please log in directly to the store using the store URL at least once before logging in with Shopify CLI. Logging in to the Shopify admin directly will connect the development store with your Shopify login

I have the same issue… Using Git Bash on Win11. The owner email for the site is my partner email login so I have tried that login and get the error above. I created a staff account will full access and get the same error.

I also tried logging out of the browser and Shopify CLI to start fresh - same issue.

This my first attempt at getting the CLI going, so far not so good :frowning:, Is it not possible to use a dev store within a partner account?

  1. I found a simple solution for this error: start by creating a folder with the basic file structure of a Shopify theme, including all the necessary files.

  2. Next, create a GitHub repository and upload these files to the repository.

  3. After that, create a development store through the Shopify Partner Dashboard. Connect the GitHub repository to your store, select the repository, and then begin editing the code to start your theme development.

Due to this error, I have wasted two days trying to resolve it. I even reached out to Shopify support, but unfortunately, they were unable to assist.

/my-shopify-theme

├── assets/ # Contains all the theme’s static files
│ ├── css/ # Custom CSS files (e.g., theme.css)
│ ├── images/ # Image assets (e.g., logo, banners)
│ ├── js/ # JavaScript files (e.g., theme.js)
│ ├── fonts/ # Fonts used in the theme
│ └── theme.js # Main JavaScript file

├── config/ # Configuration settings for the theme
│ ├── settings_data.json # Stores theme settings (e.g., colors, typography)
│ └── settings_schema.json # Schema file for theme settings (used in Shopify admin)

├── layout/ # Layout templates for the theme
│ ├── theme.liquid # Main template file (used for rendering the full page)
│ └── password.liquid # Template file for password

├── locales/ # Translation files (language support)
│ ├── en.default.json # English translations (default)
│ └── fr.default.json # French translations (if supported)

├── sections/ # Reusable sections for theme customization
│ ├── header.liquid # Header section (includes navigation, logo, etc.)
│ ├── footer.liquid # Footer section (includes footer links, social icons, etc.)
│ ├── product.liquid # Product section (for individual product pages)
│ └── collection.liquid # Collection section (for collection pages)

├── snippets/ # Small reusable snippets or components
│ ├── product-card.liquid # Product card snippet
│ ├── cart-drawer.liquid # Cart drawer snippet
│ └── social-icons.liquid # Social media icons snippet

├── templates/ # Template files for different page types
│ ├── index.liquid # Homepage template
│ ├── product.liquid # Product page template
│ ├── collection.liquid # Collection page template
│ ├── page.liquid # Static page template (e.g., About Us)
│ └── blog.liquid # Blog post template

└── config.yml # Configuration file (if using a development framework like Slate or Themekit)

I was able to get around this by using just the store name without the .myshopify.com URL extension on the theme dev command. Many other workarounds suggested using the full store URL, but that didn’t work.

shopify theme dev --store STORENAME

As shown in the Getting Started guide - Create a theme

Thank you so much for sharing the information. However, we are encountering repeated errors during the implementation. Your assistance would greatly help us resolve this issue

I also discovered a solution: if you encounter an error in the Command Prompt, try using Windows PowerShell instead. Additionally, entering the full URL of the store seems to resolve the issue and works properly

once again thankyou so much