We recommend using the Node.js API for more complex tasks. However, the CLI is powerful and should not be underestimated for scripting requirements. Here are some examples to get you started:
For a comprehensive guide to individual features of the Command Line Interface, browse the Automation pages found in the left-hand side navigation or read through the complete list of commands. You can also see the commands list directly on GitHub.
CLI is distributed exclusively using NPM. Install it by running the following command:
1npm install -g calibre
CLI uses an update-notifier to notify when new releases are available. You will see available update notifications when using CLI.
We recommend staying up to date where possible but understand that you may want to pin to a version for automation. For example, a URL for the 4.2.0 release would be:
See all version numbers on the Calibre NPM package page.