Im looking for a way to take a book as an epub file and break it up into a series of smaller epub files for each chapter? I am aware of the other available options with Sigil and the Epubsplit plugin for calibre, but they both seem to work through a GUI, which precludes being able to run them over hundreds or thousands of files in a script.
Is there no way of doing this with one of the command line tools that calibre provides, such as ebook-convert, so that I can call something like
ebook-convert someBook.epub --splitIntoChapters
and get something like chapter1.epub, chapter2.epub, chapter3.epub... and so on in return?