The Turso CLI uses an access token to authenticate with Turso. You can login using the command:
turso auth login
This will open a browser window, asking you to log into your account with GitHub.
If you’re using Windows with WSL or a remote CI/CD environment, pass the
Once you’re logged in, you can manage your account and databases. You can explore all of the commands via the docs, or by using the
--help flag for each subcommand:
The Turso CLI requires you to reauthenticate after one week. Don’t share your token.
If you’re new to Turso, you can create an account using the Turso CLI:
turso auth signup
You can get the username of the currently logged in user using the Turso CLI:
turso auth whoami
You can logout of the Turso CLI using the
turso auth logout
You can obtain the current access token used to authenticate Turso:
turso auth token