@barretter/anki-cli
v0.0.2
Published
anki cli tool
Readme
anki cli
Sync your markdown directory to anki. If you change your markdown, run this command to sync it to anki.
Requirements
- Anki >= 2.1.21
- Anki Connect >= 2020-07-13
Usage
Install
pnpm install @barretter/anki-cliConfig
Add a command to your package.json. For example:
{
"scripts": {
"sync": "anki sync --dirPath=./docs/demo --rootDeckName=demo --ankiServiceUrl=http://127.0.0.1:8765"
}
}Run
pnpm run syncConfig
| Config | Description | Type | Default | |:--:|:--:|:--:|:--:| | --dirPath | sync dirname | string | ./ | | --rootDeckName | anki root deck name | string | notes | | --ankiServiceUrl | anki connect HTTP server url | string | http://127.0.0.1:8765 |
Notes
Fork from anki. Thanks!
