Skip to main content
Authenticates with Baseten and stores the credential for reuse by other Truss commands. truss login is an alias for truss auth login. With no flags, it runs interactively and prompts you to choose between pasting an API key and logging in through your browser. To authenticate non-interactively, pass --browser or --api-key. For details on how Truss stores credentials and how to manage multiple remotes, see truss auth.

Options

Log in through your browser using the OAuth device flow. Mutually exclusive with --api-key.
TEXT
Baseten API key. If provided, the command runs in non-interactive mode. Mutually exclusive with --browser.
TEXT
Name of the remote to create or update in ~/.trussrc. Defaults to baseten.
humanfriendly | W | WARNING | I | INFO | D | DEBUG
default:"humanfriendly"
Logging verbosity. humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.
Disable interactive prompts. Use in CI/automated contexts where stdin isn’t a TTY.
Examples: Authenticate interactively and choose a method when prompted:
You should see:
Authenticate non-interactively with an API key:
Log in through your browser:
The CLI opens your browser to the verification page with your user code pre-filled. Approve the request, and the CLI automatically stores the OAuth tokens and prints: