Add plex-login command
MODIFY
plex_trakt_sync/cli.py
plex_trakt_sync/cli.py
from plex_trakt_sync.commands.clear_collections import clear_collections
from plex_trakt_sync.commands.inspect import inspect
+from plex_trakt_sync.commands.plex_login import plex_login
from plex_trakt_sync.commands.sync import sync
from plex_trakt_sync.commands.watch import watch
@@ -18,5 +19,6 @@ def cli(ctx):
cli.add_command(clear_collections)
cli.add_command(inspect)
+cli.add_command(plex_login)
cli.add_command(sync)
cli.add_command(watch)

ADD
plex_trakt_sync/commands/plex_login.py
+import click
+from plexapi.server import PlexServer
+from plex_trakt_sync.config import CONFIG
+from plex_trakt_sync.plex_api import PlexApi
+
+
+@click.command()
+def plex_login():
+ """
+ Log in to Plex Account
+ """

Add plex-login command