CLI deploy not working

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

$ 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?

1 Like

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

1 Like

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

1 Like

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

1 Like

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).
It was working ok previously.
How and where should i try to unlink and relink the site?

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.

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.

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

1 Like