Unable to run supabase link
pnpm --filter web supabase link --debug
Using project host: supabase.co
Supabase CLI 2.48.3
Loading project ref from file: supabase/.temp/project-ref
Using access token for profile: supabase
2025/11/25 14:59:28 HTTP GET: https://api.supabase.com/v1/projects
Selected project: dicgdsoftghnnnwfajvn
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/api-keys?reveal=true
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/auth
2025/11/25 14:59:31 HTTP GET: https://dicgdsoftghnnnwfajvn.supabase.co/auth/v1/health
2025/11/25 14:59:31 HTTP GET: https://dicgdsoftghnnnwfajvn.supabase.co/rest/v1/
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/storage
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/database/pooler
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/network-restrictions
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/postgrest
2025/11/25 14:59:31 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/database/postgres
Using connection pooler: postgresql://postgres.dicgdsoftghnnnwfajvn:[YOUR-PASSWORD]@aws-1-us-east-1.pooler.supabase.com:6543/postgres
Initialising login role...
2025/11/25 14:59:32 HTTP POST: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/cli/login-role
failed to connect as temp role: failed to connect to
host=aws-1-us-east-1.pooler.supabase.com user=cli_login_postgres.dicgdsoftghnnnwfajvn database=postgres: dial error (dial tcp 18.213.155.45:6543: connect: connection refused)
Retry (1/8): ^Ccontext canceled
Forgot your password? Reset it from the Dashboard: https://supabase.com/dashboard/project/dicgdsoftghnnnwfajvn/settings/database8 Replies
Upgrate to the latest version which was released earlier today and try again https://github.com/supabase/cli/issues/4503
GitHub
Supabase link fails to connect to postgres on latest (2.61.2) · Is...
Describe the bug Running supabase link using 2.61.2 (latest as of writing this issue) fails to connect to postgres with error: Connecting to remote database... failed to connect to postgres: failed...
I still see the same error -
open supabase/.temp/profile: no such file or directory
Supabase CLI 2.62.5
Using profile: supabase (supabase.co)
Loading project ref from file: supabase/.temp/project-ref
Using access token for profile: supabase
2025/11/25 15:07:33 HTTP GET: https://api.supabase.com/v1/projects
Selected project: dicgdsoftghnnnwfajvn
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/api-keys?reveal=true
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/auth
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/database/postgres
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/storage
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/network-restrictions
2025/11/25 15:07:35 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/postgrest
2025/11/25 15:07:36 HTTP GET: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/config/database/pooler
2025/11/25 15:07:36 HTTP GET: https://dicgdsoftghnnnwfajvn.supabase.co/rest/v1/
2025/11/25 15:07:36 HTTP GET: https://dicgdsoftghnnnwfajvn.supabase.co/auth/v1/health
2025/11/25 15:07:36 HTTP GET: https://dicgdsoftghnnnwfajvn.supabase.co/storage/v1/version
Using connection pooler: postgresql://postgres.dicgdsoftghnnnwfajvn@aws-1-us-east-1.pooler.supabase.com:5432/postgres
Initialising login role...
2025/11/25 15:07:36 HTTP POST: https://api.supabase.com/v1/projects/dicgdsoftghnnnwfajvn/cli/login-role
failed to connect as temp role: failed to connect to
host=aws-1-us-east-1.pooler.supabase.com user=cli_login_postgres.dicgdsoftghnnnwfajvn database=postgres: failed SASL auth (expected AuthenticationSASLFinal message but received unexpected message *pgproto3.AuthenticationSASL)
Retry (1/8):You would need to remove the
.temp directory first and then do the linking all over first.that didn't work either 🙁
Check that your IP isn't on the Network Ban list https://supabase.com/dashboard/project/_/database/settings#network-restrictions

Not much more I can do to help as you can see from the issue I linked that it was fixed for many by the latest CLI
ok it seems to have started working. 🤷♂️
thanks!!