anki-template-local-sync
v1.1.1
Published
Allows editing card templates outside of Anki and syncing with AnkiConnect.
Downloads
2
Readme
anki-template-local-sync
Allows editing card templates outside of Anki and syncing with AnkiConnect.
AnkiConnect must be installed.
npm install -g anki-template-local-sync
anki-template-sync pull MyCards SentenceCard
# MyCards_-_SentenceCard_-_Front.html MyCards_-_SentenceCard_-_Back.html MyCards_-_Styling.css
anki-template-sync watch MyCards_-_SentenceCard_-_Front.html MyCards_-_SentenceCard_-_Back.html MyCards_-_Styling.css
CLI
anki-template-sync <command>
Commands:
anki-template-sync pull <model> [card] Create files from Anki templates.
anki-template-sync front <model> <card> Update Anki model Front template
<file> from file.
anki-template-sync back <name> <card> Update Anki model Back template from
<file> file.
anki-template-sync styling <name> <file> Update Anki model Styling from file.
anki-template-sync watch [files...] Watch files for changes and update
Anki model as required. Front and
Back template filenames must end by
Front.html and Back.html
respectively and Styling filename
must end in .css.
Options:
--help Show help [boolean]
--version Show version number [boolean]
-p, --port AnkiConnect port [number] [default: 8765]
Node.js API
pull, push, watch