diff --git a/tidal_dl_ng/cli.py b/tidal_dl_ng/cli.py index 4902f74..c4f8b31 100644 --- a/tidal_dl_ng/cli.py +++ b/tidal_dl_ng/cli.py @@ -101,6 +101,18 @@ def login(ctx: typer.Context) -> bool: return result +@app.command(name="logout") +def logout() -> bool: + settings = Settings() + tidal = Tidal(settings) + result = tidal.logout() + + if result: + print("You have been successfully logged out.") + + return result + + @app.command(name="dl") def download( ctx: typer.Context,