Skip to content

Commit

Permalink
📝 Clarify login command
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 24, 2024
1 parent d4cb114 commit 390e1e8
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions lamin_cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def list_commands(self, ctx: click.Context) -> Mapping[str, click.Command]:
},
{
"name": "Configuration commands",
"commands": ["register", "cache", "set"],
"commands": ["cache", "set"],
},
{
"name": "Schema commands",
Expand All @@ -72,6 +72,7 @@ def lamin_group_decorator(f):
@wraps(f)
def wrapper(*args, **kwargs):
return f(*args, **kwargs)

return wrapper


Expand All @@ -97,11 +98,16 @@ def main():
@main.command()
@click.argument("user", type=str)
@click.option("--key", type=str, default=None, help="API key")
@click.option("--password", type=str, default=None, help="legacy password")
def login(user: str, key: Optional[str], password: Optional[str]):
"""Login using a user email address or handle.
"""Log into LaminHub.
Upon logging in the first time, you need to pass your API key via
Examples: `lamin login marge` or `lamin login [email protected]`
```
lamin login [email protected] --key YOUR_API_KEY
```
After this, you can either use `lamin login myhandle` or `lamin login [email protected]`
"""
from lamindb_setup._setup_user import login

Expand Down Expand Up @@ -202,14 +208,6 @@ def save(filepath: str, key: str, description: str):
sys.exit(1)


@main.command()
def register():
"""Register an instance on the hub."""
from lamindb_setup._register_instance import register as register_

return register_()


main.add_command(cache)


Expand Down

0 comments on commit 390e1e8

Please sign in to comment.