Connecting cursor to shopify

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

Other

Expected behavior

logged in

Actual behavior

error

Reproduction steps

not sure

Verbose output

│                                                                                                      │
│  You are not authorized to use the CLI to develop in the provided store: divaniesofa.myshopify.com   │
│                                                                                                      │
│  Next steps                                                                                          │
│    • Ensure you have logged in to the store using the Shopify admin at least once.                   │
│    • Ensure you are the store owner, or have a staff account if you are attempting to log in to a    │
│      dev store.                                                                                      │
│    • Ensure you are using the permanent store domain, not a vanity domain.                           │
│                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯

PS C:\Users\chirc\Downloads\divani> shopify theme dev --store=divaniesofa

To run this command, log in to Shopify.
User verification code: VSWL-TKJL
👉 Press any key to open the login page on your browser
Opened link to start the auth process: https://accounts.shopify.com/activate-with-code?device_code%5Buser_code%5D=VSWL-TKJL
╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                      │
│  You are not authorized to use the CLI to develop in the provided store: divaniesofa.myshopify.com   │
│                                                                                                      │
│  Next steps                                                                                          │
│    • Ensure you have logged in to the store using the Shopify admin at least once.                   │
│    • Ensure you are the store owner, or have a staff account if you are attempting to log in to a    │
│      dev store.                                                                                      │
│    • Ensure you are using the permanent store domain, not a vanity domain.                           │
│                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯

PS C:\Users\chirc\Downloads\divani> shopify auto logout
?  Command `auto logout` not found. Did you mean `auth logout`?
✔  Yes, confirm

✅ Success! Logged out from all the accounts.
PS C:\Users\chirc\Downloads\divani> shopify theme dev --store=divaniesofa

To run this command, log in to Shopify.
User verification code: WLLZ-HVXX
👉 Press any key to open the login page on your browser
Opened link to start the auth process: https://accounts.shopify.com/activate-with-code?device_code%5Buser_code%5D=WLLZ-HVXX
╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                      │
│  You are not authorized to use the CLI to develop in the provided store: divaniesofa.myshopify.com   │
│                                                                                                      │
│  Next steps                                                                                          │
│    • Ensure you have logged in to the store using the Shopify admin at least once.                   │
│    • Ensure you are the store owner, or have a staff account if you are attempting to log in to a    │
│      dev store.                                                                                      │
│    • Ensure you are using the permanent store domain, not a vanity domain.                           │
│                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯

PS C:\Users\chirc\Downloads\divani> shopify theme dev --store=divaniesofa --verbose
2026-02-26T11:49:59.571Z: Running command theme dev
2026-02-26T11:49:59.581Z: Running system process:
  · Command: C:\Program Files\nodejs\node.exe C:\Users\chirc\AppData\Roaming\npm\node_modules\@shopify\cli\bin\run.js notifications list --ignore-errors     
  · Working directory: C:/Users/chirc/Downloads/divani

2026-02-26T11:49:59.599Z: Notifications to show: 0
2026-02-26T11:49:59.615Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2026-02-26T11:49:59.616Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store divaniesofa.myshopify.com:
[]

2026-02-26T11:49:59.617Z: Getting session store...
2026-02-26T11:49:59.618Z: Getting current session ID...
2026-02-26T11:49:59.619Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly",
  "https://api.shopify.com/auth/organization.store-management",
  "https://api.shopify.com/auth/organization.on-demand-user-access",
  "https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
  "adminApi": {
    "scopes": [],
    "storeFqdn": "divaniesofa.myshopify.com"
  }
}

2026-02-26T11:49:59.619Z: Initiating the full authentication flow...
2026-02-26T11:49:59.620Z: Requesting device authorization code...
2026-02-26T11:49:59.621Z: Sending POST request to URL https://accounts.shopify.com/oauth/device_authorization
With request headers:
 - Content-type: application/x-www-form-urlencoded

2026-02-26T11:50:00.374Z: Request to https://accounts.shopify.com/oauth/device_authorization completed in 752 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"5209a5804c3ba9d6634a88c2da4ac414"
 - server-timing: processing;dur=79, socket_queue;dur=1.595, edge;dur=0.031, util;dur=0.05, cfRequestDuration;dur=323.999882
 - x-request-id: 428931a5-6772-41d3-9146-2329f93719c6-1772106600

2026-02-26T11:50:00.378Z: Received device authorization code: {
  "verification_uri": "https://shopify.com/activate",
  "verification_uri_complete": "https://accounts.shopify.com/activate-with-code?device_code%5Buser_code%5D=KRBR-JWKS",
  "expires_in": 600,
  "interval": 5,
  "device_code": "d127b1b8-161f-4c0c-bacd-46bb4767eb85",
  "user_code": "KRBR-JWKS"
}

To run this command, log in to Shopify.
User verification code: KRBR-JWKS
👉 Press any key to open the login page on your browser
Opened link to start the auth process: https://accounts.shopify.com/activate-with-code?device_code%5Buser_code%5D=KRBR-JWKS
2026-02-26T11:50:08.511Z: Starting polling for the identity token...
2026-02-26T11:50:13.516Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code&device_code=d127b1b8-161f-4c0c-bacd-46bb4767eb85&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:


2026-02-26T11:50:14.461Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code&device_code=d127b1b8-161f-4c0c-bacd-46bb4767eb85&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 945 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=14, socket_queue;dur=1.163, edge;dur=1.037, util;dur=0.05, cfRequestDuration;dur=161.000013
 - x-request-id: 6184e6d3-aca0-4a95-963a-412287cf03cd-1772106614

2026-02-26T11:50:14.464Z: Polling for device authorization... status: authorization_pending
2026-02-26T11:50:19.481Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code&device_code=d127b1b8-161f-4c0c-bacd-46bb4767eb85&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:


2026-02-26T11:50:20.945Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code&device_code=d127b1b8-161f-4c0c-bacd-46bb4767eb85&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 1462 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"d55d35eb3f94cb0466bb1cac99ed7729"
 - server-timing: processing;dur=124, socket_queue;dur=2.045, edge;dur=1.039, util;dur=0.05, cfRequestDuration;dur=264.999866
 - x-request-id: 7d44fe43-c566-4e51-b8a2-3554037c6494-1772106620

2026-02-26T11:50:20.948Z: CLI token received. Exchanging it for application tokens...
2026-02-26T11:50:20.950Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=****
With request headers:


2026-02-26T11:50:20.951Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=****
With request headers:


2026-02-26T11:50:20.954Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.store-management+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.on-demand-user-access&subject_token=****
With request headers:


2026-02-26T11:50:20.955Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fdivaniesofa.myshopify.com%2Fadmin&store=divaniesofa.myshopify.com
With request headers:


2026-02-26T11:50:20.956Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.apps.manage&subject_token=****
With request headers:


2026-02-26T11:50:21.663Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fdivaniesofa.myshopify.com%2Fadmin&store=divaniesofa.myshopify.com completed in 706 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=28, socket_queue;dur=1.272, edge;dur=1.038, util;dur=0.1, cfRequestDuration;dur=171.000004
 - x-request-id: 8ce085df-bcd7-4f98-ae48-9ab3a7e194e7-1772106621

╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                      │
│  You are not authorized to use the CLI to develop in the provided store: divaniesofa.myshopify.com   │
│                                                                                                      │
│  Next steps                                                                                          │
│    • Ensure you have logged in to the store using the Shopify admin at least once.                   │
│    • Ensure you are the store owner, or have a staff account if you are attempting to log in to a    │
│      dev store.                                                                                      │
│    • Ensure you are using the permanent store domain, not a vanity domain.                           │
│                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯

2026-02-26T11:50:21.778Z: Running system process:
  · Command: npm prefix
  · Working directory: C:/Users/chirc/Downloads/divani

2026-02-26T11:50:21.783Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=**** completed in 826 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"62d4fb2264903c4d0e3880e638548e98"
 - server-timing: processing;dur=30, socket_queue;dur=1.801, edge;dur=1.041, util;dur=0.05, cfRequestDuration;dur=170.000076
 - x-request-id: df44e86b-ba20-4f05-8593-598f9b9a127e-1772106621

2026-02-26T11:50:21.794Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.store-management+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.on-demand-user-access&subject_token=**** completed in 837 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"62d4fb2264903c4d0e3880e638548e98"
 - server-timing: processing;dur=37, socket_queue;dur=1.287, edge;dur=1.047, util;dur=0.05, cfRequestDuration;dur=175.999880
 - x-request-id: 596bfb03-ddca-4022-be57-343046410ee6-1772106621

2026-02-26T11:50:21.798Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=**** completed in 842 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"62d4fb2264903c4d0e3880e638548e98"
 - server-timing: processing;dur=32, socket_queue;dur=1.192, edge;dur=1.043, util;dur=0.1, cfRequestDuration;dur=196.000099
 - x-request-id: 77ea7d29-bc6b-4eb3-b18e-c789f72a259d-1772106621

2026-02-26T11:50:21.803Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.apps.manage&subject_token=**** completed in 845 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"62d4fb2264903c4d0e3880e638548e98"
 - server-timing: processing;dur=55, socket_queue;dur=2.059, edge;dur=1.036, util;dur=0.2, cfRequestDuration;dur=195.000172
 - x-request-id: 4f5bcabc-b953-4ceb-9db3-34a68f49284d-1772106621

2026-02-26T11:50:22.075Z: Obtaining the dependency manager in directory C:\Users\chirc\Downloads\divani...
2026-02-26T11:50:22.383Z: Getting current session ID...
2026-02-26T11:50:22.387Z: Getting current session ID...
2026-02-26T11:50:22.814Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 421 ms
With response headers:
 - x-request-id: ff910ff1-8e52-47b9-941f-dfebef4208d3

2026-02-26T11:50:22.816Z: Analytics event sent: {
  "command": "theme dev",
  "time_start": 1772106599572,
  "time_end": 1772106621732,
  "total_time": 22160,
  "success": false,
  "cli_version": "3.90.1",
  "ruby_version": "",
  "node_version": "24.13.1",
  "is_employee": false,
  "uname": "windows amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "powershell",
  "env_device_id": "7a7b9c5494af33a2f077003762ae281adf615612",
  "env_cloud": "localhost",
  "env_package_manager": "unknown",
  "env_is_global": true,
  "env_auth_method": "none",
  "env_is_wsl": false,
  "env_build_repository": "Shopify/cli",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_all_timing_network_ms": 4007,
  "cmd_all_timing_prompts_ms": 7026,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/theme",
  "cmd_all_force": false,
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "7b0e5c9c0abe1f222d86138061481d86923e1053",
  "cmd_all_timing_active_ms": 11125,
  "cmd_all_exit": "expected_error",
  "user_id": "unknown",
  "request_ids": [],
  "args": "--store=divaniesofa --verbose",
  "error_message": "You are not authorized to use the CLI to develop in the provided store: divaniesofa.myshopify.com",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "env_shopify_variables": "{}",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2026-02-26T11:50:22.832Z: Getting current session ID...
2026-02-26T11:50:22.833Z: Reporting handled error to Bugsnag: You are not authorized to use the CLI to develop in the provided store: divaniesofa.myshopify.com
2026-02-26T11:50:22.961Z: Running system process:
  · Command: npm prefix
  · Working directory: C:/Users/chirc/Downloads/divani

2026-02-26T11:50:23.124Z: Obtaining the dependency manager in directory C:\Users\chirc\Downloads\divani...
2026-02-26T11:50:23.125Z: Getting current session ID...```

### Operating system
w11 pro

### CLI version
3.90.1



### Nodejs version
24.13.1

i made it work eventually after using a subdomain of the main shop