Skip to content

theseus login

Sign in and save the login.

Usage: theseus login [--workspace <name-or-id>] [--api <origin>] [--json] [--no-browser]
OptionValueWhen omitted
--workspacename-or-idChoose during sign-in
--apioriginConfigured API origin
--jsonSwitchfalse
--no-browserSwitchfalse

JSON output: JSON lines: event="code" with verification link and code; event="signed-in" on completion; event="error", code, error on failure.

Exit codes: 0 Success; 1 Failure; 2 Invalid arguments; 130 Interrupted by Ctrl-C.

Full command help and examples
Usage: theseus login [--workspace <name-or-id>] [--api <origin>] [--json] [--no-browser]

Sign in and save the login. Prints a code and a link, opens your
browser, and waits until you approve the code there. A live login is kept as it is.

Options:
  --workspace <name-or-id> Sign in to this workspace. With several and none named, a terminal
                          asks; without one, the login is saved without a workspace and
                          theseus workspace <name-or-id> picks it later
  --api <origin>          Choose an HTTPS or loopback API origin
  --json                  Print JSON lines: {"event":"code",...} once the code is ready, then
                          {"event":"signed-in",...}, or {"event":"error","code",...};
                          messages for the person go to stderr
  --no-browser            Only print the link, for a person approving on another device

THESEUS_HOME keeps every local file, this login included, in another directory.
End the login with theseus logout, then delete that directory.