CLI Arguments

Here's the available CLI Arguments

CLI inputs always take priority over config values.

Use - instead of _ to separate words in an config option name when using it as a CLI argument: Ex: auto_dedupe needs to be auto-dedupe when using it via the CLI

You can pass any of the Config Settings and Global Settings options as a cli argument for the program.

For items not explained below, you can find their counterparts in the configuration options to see what they do.

CLI only arguments

appdata-folder

Type
Default

Path

<Current Working Directory>

Folder where Cyberdrop-DL will store it's database, cache and config files.

completed-after

Type
Default

date

None

Only retry downloads that were completed on or after this date. The date should be in ISO 8601 format, for example, 2021-12-23

This option has no effect unless you run CDL with --retry-all

completed-before

Type
Default

date

None

Only retry downloads that were completed on or before this date. The date should be in ISO 8601 format, for example, 2021-12-23

This option has no effect unless you run CDL with --retry-all

config

Type
Default

str

None

Name of config to load. Use ALL to run all configs sequentially

config-file

Type
Default

Path

None

Path to the CDL settings.yaml file to load

If both config and config-file are supplied, config-file takes priority

disable-cache

Type
Default
Action

BoolFlag

False

store_true

Disables read/writes to requests cache for the current run only. All config settings or arguments related to the cache (ex: file_host_cache_expire_after) will be ignored.

download

Type
Default
Action

BoolFlag

False

store_true

Skips UI, start download immediately

download-tiktok-audios

Type
Default
Action

BoolFlag

False

store_true

Download TikTok audios from posts and save them as separate files

download-tiktok-src-quality-videos

Type
Default
Action

BoolFlag

False

store_true

By default, CDL will download the "optimized for streaming" version of tiktok videos. Setting this option to True will download videos in original (source) quality.

_original will be added as a suffix to their filename.

impersonate

Type
Default
Action

chrome", "edge", "safari", "safari_ios", "chrome_android", "firefox", BoolFlag or null

null

store_true or store_const

Impersonation allows CDL to make requests and appear to be a legitimate web browser. This helps bypass bot-protection on some sites and it's required for any site that only accepts HTTP2 connections.

  • The default value (null) means CDL will automatically use impersonation for crawlers that were programmed to use it.

  • Passing the flag without any value (--impersonate) is the same as --impersonate True: CDL will use impersonation for ALL requests, using the default impersonation target

  • Passing an specific target (ex: --impersonate chrome_android) will make CDL use impersonation for all requests, using that tarjet

The current default target is chrome. The default target can change on any new release without notice

max-items-retry

Type
Default

NonNegativeInt

0

Max number of links to retry. Using 0 means no limit

This option has no effect unless you run CDL with one of the retry options: --retry-all, --retry-failed or --retry-maintenance

portrait

Type
Default
Action

BoolFlag

False

store_true

Force CDL to run with a vertical layout

Type
Default
Action

BoolFlag

True

store_false

Show stats report at the end of a run

retry-all

Type
Default
Action

BoolFlag

False

store_true

Retry all downloads

retry-failed

Type
Default
Action

BoolFlag

False

store_true

Retry failed downloads

retry-maintenance

Type
Default
Action

BoolFlag

False

store_true

Retry download of maintenance files (bunkr). Requires files to be hashed

show-supported-sites

Type
Default
Action

BoolFlag

False

store_true

Shows a list of all supported sites and exits

ui

Type
Default

CaseInsensitiveStrEnum

FULLSCREEN

UI can have 1 of these values:

  • DISABLED : no output at all

  • ACTIVITY : only shows a spinner with the text running CDL...

  • SIMPLE: shows spinner + simplified progress bar

  • FULLSCREEN: shows the normal UI/progress view

Values are case insensitive, ex: both disabled and DISABLED are valid

Overview

Bool arguments like options within Download Options, Ignore Options, Runtime Options, etc. can be prefixed with --no- to negate them. Ex: --no-auto-dedupe will disable auto dedupe, overriding whatever the config option was set to.

Last updated