Reference for developing a CLI

Hello,
I’m trying to write a CLI tool using the anki library, as described in the documentation (I can’t link to it, but it’s the “Command-Line Use” section of the Add-on documentation page), but there isn’t much there for this use-case. Does anyone know of any project that uses this method that I can use as a reference?

The specific problem I have is currently that I managed to corrupt the database by making changes while Anki was open. I suspect it is because I didn’t call the close() method in Collection so it didn’t close the database.

Basically, I want to avoid trivial mistakes like this by looking at someone who’s done something similar.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.