supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.07k stars 209 forks source link

CLI: how to login in non-browser/non-gui cloud vscode env? #2040

Closed gowy222 closed 8 months ago

gowy222 commented 8 months ago

online cloud vscode IDE cant login,

root@73a777eae898:/workspace# npx supabase login
Hello from Supabase! Press Enter to open browser and login automatically.

then:
Here is your login link in case browser did not open https://supabase.com/dashboard/cli/login?session_id=5c5.....
cannot open default browser: exec: "xdg-open": executable file not found in $PATH
Try rerunning the command with --debug to troubleshoot the error.

but the Linux online cloud vscode IDE dont has any browser.

sweatybridge commented 8 months ago

Thanks for reporting this issue. I believe the CLI should ignore this error to allow user to open the browser manually.

gowy222 commented 8 months ago

Thanks for reporting this issue. I believe the CLI should ignore this error to allow user to open the browser manually.

YES,

` npx supabase login --token XXXX //this works

`