Skip to content

Adding cards to Anki

sysid edited this page Feb 25, 2024 · 1 revision

inka2 will create custom note types for Front/Back (inka2 Basic) and Cloze (inka2 Cloze) notes. If you want to use different ones, you can change note types in the config.

Commands

For adding cards collect command is used.


Add cards from the file:

inka2 collect path/to/cards.md

Add cards from all Markdown files in a directory:

inka2 collect path/to/directory

By default, the program doesn't search for files in subdirectories. To enable this behavior, you must use the -r/--recursive flag:

inka2 collect -r path/to/directory

You can also pass multiple paths at once:

inka2 collect path/to/cards.md path/to/directory

If you added a default path to the config option defaults.folder, it will be used if no PATH argument is passed:

inka2 collect

If you have multiple profiles and you have set one as the default in the config, you can use -p/--prompt flag to show a dialog for choosing a profile:

inka2 collect -p path/to/directory

If errors occur, the program will stop for you to read them. If you want to ignore them, use the -i / - ignore-errors flag:

inka2 collect -i path/to/file.md
Clone this wiki locally