mergin/cli.py
def cli(ctx, url, auth_token, username, password):
    """
    Command line interface for the Mergin client module.
    For user authentication on server there are two options:

     1. authorization token environment variable (MERGIN_AUTH) is defined, or
     2. username and password need to be given either as environment variables (MERGIN_USERNAME, MERGIN_PASSWORD),
     or as command options (--username, --password).

    Run `mergin --username <your_user> login` to see how to set the token variable manually.
    """
    mc = get_client(url=url, auth_token=auth_token, username=username, password=password)
    ctx.obj = {"client": mc}

    Command line interface for the Mergin client module.
    For user authentication on server there are two options:

     1. authorization token environment variable (MERGIN_AUTH) is defined, or
     2. username and password need to be given either as environment variables (MERGIN_USERNAME, MERGIN_PASSWORD),
     or as command options (--username, --password).

    Run `mergin --username <your_user> login` to see how to set the token variable manually.
    
Command line interface for the Mergin client module.
For user authentication on server there are two options.

1. authorization token environment variable (MERGIN_AUTH) is defined, or
2. username and password need to be given either as environment variables (MERGIN_USERNAME, MERGIN_PASSWORD),
or as command options (--username, --password).

Run `mergin --username  login` to see how to set the token variable manually.
Command line interface for the Mergin client module . For user authentication on server there are two options . 1 . authorization token environment variable ( MERGIN_AUTH ) is defined or 2 . username and password need to be given either as environment variables ( MERGIN_USERNAME MERGIN_PASSWORD ) or as command options ( -- username -- password ) . Run ` mergin -- username login ` to see how to set the token variable manually .
def cli(ctx, url, auth_token, username, password):
    mc = get_client(url=url, auth_token=auth_token, username=username, password=password)
    ctx.obj = {"client": mc}
def cli ( ctx , url , auth_token , username , password ) : mc = get_client ( url = url , auth_token = auth_token , username = username , password = password ) ctx . obj = { "client" : mc }
Command line interface for the Mergin client module.
Command line interface for the Mergin client module .
"""
    Command line interface for the Mergin client module.
    For user authentication on server there are two options:

     1. authorization token environment variable (MERGIN_AUTH) is defined, or
     2. username and password need to be given either as environment variables (MERGIN_USERNAME, MERGIN_PASSWORD),
     or as command options (--username, --password).

    Run `mergin --username <your_user> login` to see how to set the token variable manually.
    """
ctx
url
auth_token
username
password