# CLI deploy not working

**URL:** <https://answers.netlify.com/t/cli-deploy-not-working/153001>\
**Category:** Support\
**Tags:** deployment\
**Created:** [July 1, 2025, 1:07pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001 "2025-07-01T13:07:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiuseppeP96](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/giuseppep96/32/71002_2.png) [@GiuseppeP96](https://answers.netlify.com/u/GiuseppeP96)\
**Post date:** [July 1, 2025, 1:07pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/1 "2025-07-01T13:07:26Z")

</div>

Hi,  
my deploy pipeline using the cli tool is not working anymore.  
Here’s some logging info:

```auto
$ netlify status --auth $NETLIFY_AUTH_TOKEN
──────────────────────┐
 Current Netlify User │
──────────────────────┘
Email: ***@***.com
────────────────────┐
 Netlify Project Info │
────────────────────┘
Admin URL: undefined
Project URL: undefined
Project Id: ***
$ netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --dir /app/build/web --prod
​
Netlify Build                                                 
────────────────────────────────────────────────────────────────
​
❯ Version
  @netlify/build 33.5.0
​
❯ Flags
  {}
​
Configuration error                                           
────────────────────────────────────────────────────────────────
​
  Error message
  Failed retrieving site data for site ***: Not Found. Double-check your login status with 'netlify status' or contact support with details of your error.
​

```

Anything i can do to fix?

---

<div class="post-metadata">

**Author:** ![sid.m](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/sid.m/32/50638_2.png) [@sid.m](https://answers.netlify.com/u/sid.m)\
**Post date:** [July 8, 2025, 4:04pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/2 "2025-07-08T16:04:49Z")

</div>

Have you double checked your login using `netlify status` as recommended?

---

<div class="post-metadata">

**Author:** ![GiuseppeP96](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/giuseppep96/32/71002_2.png) [@GiuseppeP96](https://answers.netlify.com/u/GiuseppeP96)\
**Post date:** [July 8, 2025, 6:36pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/3 "2025-07-08T18:36:59Z")

</div>

Yes and the result is already on first post, just before the deploy command.

---

<div class="post-metadata">

**Author:** ![sid.m](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/sid.m/32/50638_2.png) [@sid.m](https://answers.netlify.com/u/sid.m)\
**Post date:** [July 10, 2025, 7:47pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/4 "2025-07-10T19:47:44Z")

</div>

Thank you I missed that! Have you tried unlinking the site and relinking it? What version of the CLI are you using?

---

<div class="post-metadata">

**Author:** ![GiuseppeP96](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/giuseppep96/32/71002_2.png) [@GiuseppeP96](https://answers.netlify.com/u/GiuseppeP96)\
**Post date:** [July 11, 2025, 6:06am UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/5 "2025-07-11T06:06:43Z")

</div>

I think i’m using the latest version as i’m installing it running a gitlab pipeline with node 22 ([https://deb.nodesource.com/setup\_22.x](https://deb.nodesource.com/setup_22.x)).  
It was working ok previously.  
How and where should i try to unlink and relink the site?

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [August 13, 2025, 10:02pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/6 "2025-08-13T22:02:01Z")

</div>

Hi, @GiuseppeP96. To me, this looks like either the auth token is expired or the site id is incorrect. If this is still occurring please let us know and we’ll open a support ticket to troubleshoot.

---

<div class="post-metadata">

**Author:** ![GiuseppeP96](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/giuseppep96/32/71002_2.png) [@GiuseppeP96](https://answers.netlify.com/u/GiuseppeP96)\
**Post date:** [August 14, 2025, 4:26pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/7 "2025-08-14T16:26:10Z")

</div>

Hi there,

yes it is still happening. and the site id in the **netlify deploy** command is the same one as the one returned by netlify status command as you can see in the logs reported above.

The token i created had no expiration.

---

<div class="post-metadata">

**Author:** ![sid.m](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/sid.m/32/50638_2.png) [@sid.m](https://answers.netlify.com/u/sid.m)\
**Post date:** [August 15, 2025, 4:06pm UTC](https://answers.netlify.com/t/cli-deploy-not-working/153001/9 "2025-08-15T16:06:18Z")

</div>

I’ve routed this ticket to our helpdesk, we’ll follow up via email.
