calibre-debug

calibre-debug [options]

Run an embedded python interpreter.

Whenever you pass arguments to calibre-debug that have spaces in them, enclose the arguments in quotation marks.

[options]

--add-simple-plugin

Add a simple plugin (i.e. a plugin that consists of only a .py file), by specifying the path to the py file containing the plugin code.

--command, -c

Run python code.

--debug-device-driver, -d

Debug the specified device driver.

--exec-file, -e

Run the python code in file.

--gui, -g

Run the GUI with debugging enabled. Debug output is printed to stdout and stderr.

--gui-debug

Run the GUI with a debug console, logging to the specified path. For internal use only, use the -g option to run the GUI in debug mode

--help, -h

show this help message and exit

--inspect-mobi, -m

Inspect the MOBI file(s) at the specified path(s)

--migrate

Migrate old database. Needs two arguments. Path to library1.db and path to new library folder.

--paths

Output the paths necessary to setup the calibre environment

--py-console, -p

Run python console

--reinitialize-db

Re-initialize the sqlite calibre database at the specified path. Useful to recover from db corruption. You can also specify the path to an SQL dump which will be used instead of trying to dump the database. This can be useful when dumping fails, but dumping with sqlite3 works.

--show-gui-debug

Display the specified log file. For internal use only.

--test-build

Test binary modules in build

--tweak-book

Tweak the book (exports the book as a collection of HTML files and metadata, which you can edit using standard HTML editing tools, and then rebuilds the file from the edited HTML. Makes no additional changes to the HTML, unlike a full calibre conversion).

--version

show program’s version number and exit

--viewer, -w

Run the ebook viewer


Table Of Contents

Previous topic

calibre-customize

Next topic

calibre-server

This Page