4

I’m trying to convert epubs to the kepub format, but would like to automate the process by doing it via CLI.

So far, I had no luck in finding a tool that would allow it. Closest I found was a KePub Output plugin for Calibre, but it fails to work on the command-line, and won’t be fixed for a long while.

Is there a tool I’m missing?

2 Answers 2

1

This might not be the exact answer to your question, but you can select multiple files on your calibre library, right click, select convert > group convert, and on the following window select kepub as the output format (provided that you have installed the corresponding plugin).
If your concern was to convert multiple files at once, this could be a solution.

Another thing that you might want to try, is to go to the program settings, go in the Add books section, and check the second tab Automatic adding: here you can specify a folder where Calibre will look for books to be automatically imported in your library, and optionally convert them to a format of your liking; again, this could be a solution to your issue.

If you wanted to include the conversion process in a script, however, these tricks won't be useful; I'm not very knowledgeable of Calibre CLI interface, so I can't help you further.

Please Note that I'm using Calibre with the italian interface, so the previous menu entries can be a little different from what I've written, they are just what I've translated on-the-fly.

3
  • Thank you, but I’m really looking to do it via CLI.
    – user137369
    Aug 30, 2015 at 13:49
  • I'm sorry then, I can't help you. You could try carefully reading the official Calibre manual and documentation, and visit the forums at Mobileread, they have a section dedicated to Calibre visited by the developers too.
    – Sekhemty
    Sep 9, 2015 at 7:17
  • That wouldn’t help. My time would be better spent by reading up on the differences between a kepub and an epub (since they’re pretty similar) and building a tool myself for the conversion, than going on a rabbit hunt. I’m trying to find if there is a way to do it already precisely to avoid that.
    – user137369
    Sep 9, 2015 at 13:54
0

Decided to look for this again today, and found some GitHub repositories and scripts. I tested the ones that looked more promising (recently updated, easy setup), and it seems like both did the job well.

  • kepubify. Written in Go, the author is reasonably active and seems to be generally interested in the subject of kepubs, judging from the repos.
  • kepuber, written in Node.js.
2
  • 1
    Hi. I'm the author of kepubify. A quick note: as of November 2017, there are conversion problems on Windows, which I am working on fixing. The Linux and macOS versions work fine.
    – geek1011
    Nov 20, 2017 at 19:03
  • I have fixed the issue on Windows.
    – geek1011
    Dec 22, 2017 at 22:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.