turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Cannot use the turbo login command on a headless server

Open JoeyEamigh opened this issue 4 years ago • 1 comments

What version of Turborepo are you using?

1.0.24

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Linux

Describe the Bug

When I run turbo login I get an error saying exec: "xdg-open": executable file not found in $PATH. I am on a headless system and therefore there is no way for a browser to automatically open.

Expected Behavior

The login to provide a hyperlink to login to Vercel's Turborepo instead of crashing

To Reproduce

Start a headless Linux server (I use Ubuntu 20.04), and run turbo login

bam that should do it

JoeyEamigh avatar Jan 02 '22 05:01 JoeyEamigh

@JoeyEamigh you should be able to use the env variables outlined here: https://turborepo.org/docs/ci/github-actions#remote-caching to configure remote caching in a headless environment.

tknickman avatar Jul 13 '22 19:07 tknickman

Closing as Tom has detailed how to provide credentials from CI.

anthonyshew avatar Dec 05 '23 06:12 anthonyshew