I have been having issues trying to login to the store from the CLI and cannot understand what is going on. First i was having issues authenticating as i kept getting an error about not having the authority to develop on this store even though i am the store owner, but suddenly the error changed to this GraphQL error shown below
╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ GraphQL Error (Code: 401): {"response":{"errors":"[API] Service is not valid for │
│ authentication","status":401,"headers":{}},"request":{"query":"mutation themeCreate($name: String!, $source: URL!, $role: │
│ ThemeRole!) {\n themeCreate(name: $name, source: $source, role: $role) {\n theme {\n id\n name\n role\n │
│ __typename\n }\n userErrors {\n field\n message\n __typename\n }\n __typename\n │
│ }\n}","variables":{"name":"Development │
│ (49f701-MacBookAir)","source":"https://cdn.shopify.com/static/online-store/theme-skeleton.zip","role":"DEVELOPMENT"}}} │
│ │
│ To investigate the issue, examine this stack trace: │
│ at makeRequest (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-6HJM24C2.js:27291) │
│ at processTicksAndRejections (node:internal/process/task_queues:105) │
│ at performRequest [as request] │
│ (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-VBX7R3AF.js:136558) │
│ at async runRequestWithNetworkLevelRetry │
│ (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-6HJM24C2.js:27346) │
│ at async makeVerboseRequest │
│ (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-6HJM24C2.js:27357) │
│ at async retryAwareRequest │
│ (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-6HJM24C2.js:27444) │
│ at (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-VBX7R3AF.js:136563) │
│ at (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/chunk-DOEVJAN2.js:29563) │
│ at async themeCreate (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/index.js:204936) │
│ at create (opt/homebrew/Cellar/shopify-cli/3.78.2/libexec/lib/node_modules/@shopify/cli/dist/index.js:205278) │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
I was running this command from the getting started to be able to connect the store from the CLI
shopify theme dev --store {store-name}