Log in as a LaminDB user
Details
Depending on the input, one of these commands will be run (in this order):
If
user
is set thenlamin login <user>
Else if
api_key
is set then set theLAMIN_API_KEY
environment variable temporarily withwithr::with_envvar()
and runlamin login
Else if there is a stored user handle run
lamin login <handle>
Else if the
LAMIN_API_KEY
environment variable is set runlamin login
Otherwise, exit with an error