Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing without browser experience is not great... #6

Open
penberg opened this issue Jul 19, 2023 · 9 comments
Open

Installing without browser experience is not great... #6

penberg opened this issue Jul 19, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@penberg
Copy link
Contributor

penberg commented Jul 19, 2023

Installing to /home/penberg/.turso

Turso CLI installed!

If you are a new user, you can sign up with turso auth signup.

If you already have an account, please login with turso auth login.

/usr/bin/xdg-open: line 881: www-browser: command not found
/usr/bin/xdg-open: line 881: links2: command not found
/usr/bin/xdg-open: line 881: elinks: command not found
/usr/bin/xdg-open: line 881: links: command not found
/usr/bin/xdg-open: line 881: lynx: command not found
/usr/bin/xdg-open: line 881: w3m: command not found
xdg-open: no method available for opening 'https://api.turso.tech/signup?port=33341&redirect=true'
error: Unable to open browser.
Visit this URL on this device to log in:
https://api.turso.tech/signup?port=33341&redirect=true
Waiting for authentication...
@penberg penberg added the bug Something isn't working label Jul 19, 2023
@hrutik7
Copy link

hrutik7 commented Sep 11, 2023

any update on this !

@haaawk
Copy link
Collaborator

haaawk commented Sep 11, 2023

What is the expected experience when a user has no browser?

@tindecken
Copy link

is there any workarround on it?

@hrutik7
Copy link

hrutik7 commented Oct 6, 2023

use turso cli commands and if you are windows use wsl 22.x version

@GV14982
Copy link

GV14982 commented Oct 7, 2023

While it's not ideal, they have this in their docs: https://docs.turso.tech/reference/turso-cli#running-remotely

@armandabric
Copy link

armandabric commented Nov 29, 2023

The issue is that the turso auth signup is always run at the end of the install script. Even with a TURSO_API_TOKEN environment variable it's triggered.

turso-install/install.sh

Lines 154 to 158 in a154864

printf "\nTurso CLI installed!\n\n"
printf "If you are a new user, you can sign up with ${bright_blue}turso auth signup${reset}.\n\n"
printf "If you already have an account, please login with ${bright_blue}turso auth login${reset}.\n\n"
$INSTALL_DIRECTORY/turso auth signup

Given that the signup/login instruction are printed at the end of the installation, could we consider to remove the auto signup?

Right now I'm stuck, I was looking to install the turso CLI on github actions to create database for each PR.

@teneburu
Copy link

teneburu commented Dec 2, 2023

This problem got me as well.

@penberg
Copy link
Contributor Author

penberg commented Dec 14, 2023

The following pull request should improve the experience a bit once we roll out a new CLI release. tursodatabase/turso-cli#737. I think what we could do is implement a turso auth whoami command and use that to skip the turso auth signup step in the script if we're logged in.

@penberg
Copy link
Contributor Author

penberg commented Dec 14, 2023

@armandabric There's now a TURSO_INSTALL_SKIP_SIGNUP environment variable that you can use to make the script skip the sign up part. Let us know if it works for your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants