simplelogincmd.cli.util.init.sl

sl(cfg)

Initialize a SimpleLogin client

The client is automatically logged in if an API key exists in the given configuration. If not, the user is prompted to log in.

Parameters:

cfg (Config) – The application configuration used to configure this client

Raises:

simplelogincmd.cli.exceptions.NotLoggedInError – If the user fails authentication

Returns:

The configured SimpleLogin client, ready to make requests

Return type:

SimpleLogin