-
Notifications
You must be signed in to change notification settings - Fork 33
trakts CLI Reference
All commands have descriptive help messages available. So in case of doubt, simply add --help
to the (sub)command to see the help docs (Example: trakts autostart --help
and trakts --help
). For reference, the various available commands are:
Shows the status of the trakt authentication. If no token is found, or if the token in expired, it runs the authetication flow for trakt.tv.
$ trakts auth
-
--force
: Ignore the existing token, and force the authentication again.
Controls the autostart behaviour of the scrobbler.
$ trakts autostart <subcommand>
Registers the app to be started automatically with computer startup.
Disables app autostart.
Manage the backlog of watched media yet to be synced with trakt servers (mostly due to internet connectivity issues). Read this for more info.
$ trakts backlog <subcommand>
Lists all the files in the backlog.
Try to add the unsynced files to trakt history.
Edits the scrobbler config settings. See Configuration section for more details.
$ trakts config <subcommand>
This command will list the parameters in the config, along with their current values.
$ trakts config list
players.monitored = ['mpv', 'vlc']
players.skip_interval = 5
general.enable_notifs = True
fileinfo.whitelist = ['/path/to/movies', '/path/to/anime', '/path/to/TV']
-
--all
: List ALL the config parameters, including those not overriden by the user.
Set the value for a config parameter, overriding the previous value.
- Separate multiple values with spaces.
$ trakts config set players.monitored mpv vlc mpc-be
User config updated with 'players.monitored = ['mpv', 'vlc', 'mpc-be']'
- For values containing space(s), surround them with double-quotes.
$ trakts config set fileinfo.whitelist D:\Media\Movies "C:\Users\My Name\Shows"
User config updated with 'fileinfo.whitelist = ['D:\\Media\\Movies', 'C:\\Users\\My Name\\Shows']'
-
--add
: Avoid overwriting the previous list values (whitelist, monitored, etc.).
$ trakts config set players.monitored mpv vlc
User config updated with 'players.monitored = ['mpv', 'vlc']'
$ trakts config set --add players.monitored plex mpc-hc # NOTE "--add" used here
User config updated with 'players.monitored = ['mpv', 'vlc', 'plex', 'mpc-hc']'
Reset a config value to its default.
$ trakts config unset players.mpc-hc.poll_interval
Successfully unset players.mpc-hc.poll_interval
Runs the initial setup of the scrobbler.
$ trakts init
Access the log file, mainly for debugging purposes.
$ trakts log <subcommand>
Opens the latest log file in your default editor. If this doesn't work, use the path command and open the file yourself.
Prints the location of the log file.
Command to run the auth flow for Plex.
$ trakts plex
-
--force
: Ignore the existing token, and force the authentication again.
Run the scrobbler in the foreground. Mainly needed in case you have disabled the autostart service, and want to run the app manually.
$ trakts run
Starts the trakt-scrobbler service. If already running, does nothing.
$ trakts start
-
--restart
: Force restart the service.
Shows the status of trakt-scrobbler service.
$ trakts status
Stops the trakt-scrobbler service.
$ trakts stop
Shortcut command to add folder(s) to whitelist in config.
$ trakts whitelist <subcommand>
Add folder(s) to whitelist. Don't forget to restart the scrobbler after this.
$ trakts whitelist add D:\Media\Movies "C:\Users\My Name\Shows"
- For folders containing spaces, use double quotes
List the current folders in whitelist.
$ trakts whitelist show
Interactively remove folder(s) from whitelist.
$ trakts whitelist remove
# follow the on screen instructions now
Check whether the given file/folder is in the whitelist.
$ trakts whitelist test D:\Media\Movies