Skip to content

Latest commit

 

History

History
74 lines (65 loc) · 5.59 KB

CLI.md

File metadata and controls

74 lines (65 loc) · 5.59 KB
title description published date tags editor dateCreated
CLI
true
2022-09-18 05:25:18 UTC
markdown
2022-09-18 04:48:35 UTC

Command Line Interface (CLI)

FlexGet is usually invoked as a Daemon or via cron, configured with its configuration file. Many functions can also be performed on the command line. The following information can be seen on the command line by invoking flexget --help or the equivalent flexget -h.

Usage

FlexGet is invoked from the command line like so:

flexget <argument> <command> <command-arguments>

For example, the FlexGet configuration file can be checked against configuration errors by calling flexget check. This particularly useful command should be ran whenever you make changes or after upgrading.

<command>

In the above example, check is the <command> being used.

<argument>

One-letter "shortcut" arguments are prefixed with a single dash (-). The long form of arguments are prefixed with two dashes (--).

Some arguments are directed to FlexGet itself, such as --loglevel. They change the overall settings of the FlexGet operation or output. These are placed before the command when invoking FlexGet.

Most commands also have arguments. In the command flexget execute --task awesome, --task awesome is an argument to the execute command. These direct specific commands to operate in certain ways, or to perform particular functions, such as executing the task named awesome in the above example. Because they affect specific commands, they follow those commands when invoking FlexGet.

Some commands will have mandatory arguments called positional arguments or actions. These are not prefixed and look like commands. FlexGet has a lot of list-type options/arguments. These usually support different output table styles.

Commands

Clicking on the commands will take you to a page with more information about it.

Command Description
archive Search and manipulate the archive database
backlog View or clear entries from the backlog plugin
check Validate configuration file and print errors
daemon Run continuously, executing tasks according to schedules defined in config
database Utilities to manage the FlexGet database
doc Display plugin documentation
entry-list View and manage entry lists
jinja-filters View avaialble Jinja filters
execute Execute tasks now
failed List or clear remembered failures
history View the history of entries that FlexGet has accepted
inject Inject an entry from command line into tasks
irc View and manage IRC connections
movie-list View and manage movie lists
plugins Print registered plugin summaries
regexp-list View and manage regexp lists
rejected List or clear remembered rejections
seen View or forget entries remembered by the seen plugin
series View and manipulate the series plugin database
status View task health status
t4ll View and manipulate the Torrent411 plugin database
trakt View and manage Trakt authentication
web Manage web server settings

FlexGet-level arguments

Argument Description
-h, --help Show help message and exit. Note that most commands support this as an argument to the command as well, such as flexget series show -h for help on how to use series show. This particular argument always follows the command (and any arguments to the command).
-V, --version Print FlexGet version and exit.
--test Copies the database and executes task(s) in a testing mode. Prints a verbose log of what would happen on normal execution. (Note some plugin network functionality is disabled during --test.)
-c CONFIG Specify configuration file (optionally with path). Default: config.yml
--logfile LOGFILE, -l LOGFILE Specify a custom logfile filename (optionally with path). Default: flexget.log in the config directory.
--loglevel LEVEL, -L LEVEL Set the verbosity of the logger. Levels: critical, error, warning, info, verbose, debug, trace
--bugreport Create a detailed bug report for use in reporting an issue on GitHub. Note that the output might contain private data, such as URLs or IP addresses, so edit that out before posting or submitting it.
--profile [OUTFILE] Use the Python profiler for this run to debug performance issues.
--cron Used when executing FlexGet non-interactively. This allows background maintenance to run, disables stdout and stderr output, and reduces the logging level to info.
--debug-warnings Elevate warnings to errors for debugging purposes, so a traceback is shown.
--debug-db-sessions Debug session starts and ends, for finding problems with database locks.