CLI Usage¶
Synopsis¶
Positional arguments¶
| Argument | Description |
|---|---|
INPUT |
Path to the text file containing annotated vocabulary |
OUTPUT |
Desired name for the .apkg output file (the .apkg extension is added automatically if omitted) |
DECK_NAME |
The deck name displayed inside Anki |
Options¶
--separator¶
Character(s) that separate the front and back of each card.
- Default:
=
--marker¶
Character(s) that mark a line for inclusion in the deck.
- Default:
-
--card_model¶
Anki card model to use for the deck.
- Default:
basic - Choices:
basic,sound
--reverse¶
Swap the front and back of every card.
--dry-run / --preview¶
Preview the cards that would be generated without writing a file.
Output:
--tags¶
Comma-separated tags to add to all cards in the deck.
-i / --extra-input¶
Additional input files to merge into the deck. Can be repeated.
-h / --help¶
Show the help message and exit.
--version¶
Show the program version and exit.
Full help output¶
$ anki_deck_from_text --help
Usage: anki_deck_from_text [OPTIONS] INPUT OUTPUT DECK_NAME
Generate an Anki deck from annotations on a text file.
INPUT is the text file.
OUTPUT is the desired name for the .apkg file with the deck.
DECK_NAME is the deck name that will be displayed in Anki.
Options:
--version Show the version and exit.
--separator TEXT Character(s) that separate the text to be written
to the front and back of the cards [default: =]
--marker TEXT Character(s) marking this line to be included in
the deck [default: -]
--card_model [basic|sound]
Anki card model to build the deck with
[default: basic]
--reverse Swap front and back of each card [default: False]
--dry-run / --preview Preview cards that would be generated without
writing a file [default: False]
--tags TEXT Comma-separated tags to add to all cards
-i, --extra-input PATH Additional input files to merge into the deck
(repeatable)
-h, --help Show this message and exit.