Repository navigation
CommandâLine Tools: Launch Options
Using the --cli flag allows launching a version of some of the tools that runs directly through the command line rather than the graphical user interface.
executable --cli [--flag(s)] [--option(s)="[value]"] [input_file_path(s)]
To select which tool to run use the --tool option, for example:
--tool="convert-comics"
The currently available tools are:
"convert-comics""extract-comics""create-comic"
Convert test.cbr and test.pdf to cbz:
Using the Linux version, you'd type in the Terminal:
./acbr-comic-book-reader --cli --tool="convert-comics" --output-format="cbz" --output-folder="/home/alvaro/comics/output/converted" "/home/alvaro/comics/input/test.cbr" "/home/alvaro/comics/input/test.pdf"
Using the Windows version, you'd type in the Windows Powershell:
& '.\ACBR Comic Book Reader.exe' --cli --tool="convert-comics" --output-format="cbz" --output-folder="C:\alvaro\comics\output\converted" "C:\alvaro\comics\input\test.cbr" "C:\alvaro\comics\input\test.pdf"
--output-folder-option
arguments: value
default value:
"0"
valid values:
"0"
"1"
description: "0" = Specify one for all files; "1" = Same as the input file
--output-folder-path
arguments: value
default value:
""
description: Path of the folder where the generated files will be saved to. Only used if --output-folder-option is set to "0".
--output-format
arguments: value
default value:
"cbz"
valid values:
"cbz"
"cb7"
"epub"
"pdf"
"cbr"
--output-image-format
arguments: value
default value:
"not_set"
valid values:
"not_set"
"jpg"
"png"
"webp"
"avif"
--output-image-format-params-jpg-quality
arguments: value
default value:
"90"
--output-image-format-params-jpg-mozjpeg
argument: none
--output-image-format-params-png-quality
arguments: value
default value:
"100"
--output-image-format-params-avif-quality
arguments: value
default value:
"50"
--output-image-format-params-webp-quality
arguments: value
default value:
"80"
--output-image-scale-percentage
arguments: value
default value:
"100"
--output-image-scale-height
arguments: value
default value:
"3056"
--output-image-scale-width
arguments: value
default value:
"1988"
--output-split-num-files
arguments: value
default value:
"1"
--output-password
arguments: value
default value:
""
--output-file-same-name
arguments: value
default value:
"rename"
valid values:
"rename"
"skip"
"overwrite"
description: Determines what to do if there's already a file with the same path as the output file.
--output-file-base-name
arguments: value
default value:
"ComicBook"
description: Only used if --tool is set to "create-comic".
--output-page-order
arguments: value
default value:
"byPosition"
valid values:
"byPosition"
"byName"
description: Only used if --tool is set to "create-comic".
--input-search-folders-formats
arguments: values list (comma separated)
default values list:
"cbz,cbr,pdf,epub,cb7,mobi,jpg,png,webp,avif"
valid values:
"cbz"
"cbr"
"pdf"
"epub"
"cb7"
"mobi"
"jpg"
"png"
"webp"
"avif"
** NOTE: image file extensions only available in the create-comic tool
--input-search-folders-recursively
argument: none
--input-folders-contain
arguments: value
default value:
"comics"
valid values:
"comics"
"images"
description: Only used if --input-search-folders-recursively is set.
--output-keep-subfolders-structure
argument: none
description: Only used if --input-search-folders-recursively is set.
--image-processing-multithreading-method
arguments: value
default value:
"0"
valid values:
"0"
"1"
description: "0" = Use worker threads; "1" = Don't use worker threads
--image-processing-num-workers
arguments: value
default value:
"4"
--image-processing-sharp-concurrency
arguments: value
default value:
"1"
--input-pdf-extraction-dpi
arguments: value
default value:
"300"
--input-pdf-extraction-height
arguments: value
default value:
"3056"
--output-pdf-creation-method
arguments: value
default value:
"metadata"
valid values:
"metadata"
"300dpi"
"72dpi"
--output-epub-creation-image-format
arguments: value
default value:
"keep-selected"
valid values:
"keep-selected"
"core-media-types-only"
--output-epub-creation-image-storage
arguments: value
default value:
"files"
valid values:
"files"
"base64"
--input-epub-extraction-book-type
arguments: value
default value:
"0"
valid values:
"0"
"1"
"2"
description: "0" = autodetect; "1" = comic book; "2" = ebook
--input-epub-extraction-width
arguments: value
default value:
"800"
--input-epub-extraction-height
arguments: value
default value:
"1100"
--input-epub-extraction-margin
arguments: value
default value:
"80"
--input-epub-extraction-font-size
arguments: value
default value:
"22"
--input-epub-extraction-dpi
arguments: value
default value:
"144"
--input-epub-extraction-color-text
arguments: value
default value:
"#000000"
--input-epub-extraction-color-bg
arguments: value
default value:
"#ffffff"
--output-black-level-value
arguments: value
default value:
"0"
--output-white-level-value
arguments: value
default value:
"1"
--output-brightness-multiplier
arguments: value
default value:
"1"
--output-saturation-multiplier
arguments: value
default value:
"1"
--output-crop-value
arguments: value
default value:
"0"
--output-extend-value
arguments: value
default value:
"0"
--output-extend-color
arguments: value
default value:
"#000000"