The new version of Shopify CLI logs me out each time I login.
I can only deploy 20/25 extensions before the app reaches a 401 authentication error and itโs unable to completion the deployment of all the extensions.
1 Like
Hey @keiraarts
Looks like this was also reported here
There isnโt a login command. When you use other commands โ themes, app, hydrogen related โ the CLI will make sure youโre logged in, asserting you have all the necessary access.
For the authentication error you are seeing, is it logging you out during the deployment? Any more context you can share around that, we can look in to that for sure.
Itโll update my draft extensions and then fail at random while deploying. Is there any logs I can share to help debug why this might be happening? At a roadblock of being unable to deploy any updated to the app since Friday.
Hey @keiraarts ,
Looks like youโve made a post in the public github and thereโs work to improve this behaviour. For any other changes you notice, thatโs going to be the best place to report it
opened 01:30AM - 18 May 25 UTC
Type: Bug
### Please confirm that you have:
- [x] Searched [existing issues](.) to see ifโฆ your issue is a duplicate. (If youโve found a duplicate issue, feel free to add additional information in a comment on it.)
- [x] Reproduced the issue in [the latest CLI version](https://www.npmjs.com/package/@shopify/cli).
### In which of these areas are you experiencing a problem?
Extension
### Expected behavior
On the latest version of the Shopify CLI, I am being signed out halfway through the process of uploading a large number of extensions. This happens at random, at various lengths of completion of my extension code, and there is no interactive prompt to sign-in after Shopify fails an authentication.
### Actual behavior
On Shopify CLI version 3.75.4 I can not re-create the issue of being signed out randomly during deployment.
npm install -g @shopify/cli@3.75.4
### Verbose output
<details>
<summary>Verbose output</summary>
```
successfully for extension: admin-product-block
21:23:25 โ customer-segment-edited-o โ Draft updated
successfully for extension: customer-segment-edited-orders
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โบ Press d โ toggle development store preview: โ on
โบ Press g โ open GraphiQL (Admin API) in your browser
โบ Press p โ preview in your browser
โบ Press q โ quit
Preview URL: https://therapeutic-everything-statement
-mc.trycloudflare.com/extensions/dev-console
GraphiQL URL: http://localhost:3457/graphiql
file:///Users/keiraclimson/.nvm/versions/node/v22.11.0/lib/node_modules/@shopify/cli/dist/index.js:218890
if (!(a2 instanceof y)) throw a2;
^
AbortError: The currently available CLI credentials are invalid.
2025-05-18T01:31:17.258Z: Request to https://partners.shopify.com/api/cli/graphql completed in 21365 ms
With response headers:
- content-type: text/html
โญโ error โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โ
โ The Partners GraphQL API responded โ
โ unsuccessfully with the HTTP status 502 and โ
โ errors: โ
โ โ
โ {} โ
โ โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
error Command failed with exit code 1.
```
</details>
### Reproduction steps
1. Sign-in to the CLI on the latest version.
2. Attempt to upload a 100 Shopify extensions which Shopify takes about 500ms per extension to upload.
3. After 30-50 seconds you will be signed out at random.
Is there a limit for the authentication token and Shopify expires the token faster than it can upload all of the extensions?
### Operating System
Mac OS
### Shopify CLI version (`shopify --version`)
3.8.0
### Shell
Bash
### Node version (run `node -v` if you're not sure)
v22
### What language and version are you using in your application?
Typescript