Skip to contents

Log in as a LaminDB user

Usage

lamin_login(user = NULL, api_key = NULL)

Arguments

user

Handle for the user to login as

api_key

API key for a user

Details

Depending on the input, one of these commands will be run (in this order):

  1. If user is set then lamin login <user>

  2. Else if api_key is set then set the LAMIN_API_KEY environment variable temporarily with withr::with_envvar() and run lamin login

  3. Else if there is a stored user handle run lamin login <handle>

  4. Else if the LAMIN_API_KEY environment variable is set run lamin login

Otherwise, exit with an error