https://github.com/repeat-space/anki-apkg-export-cli
CLI for generating Anki's decks
https://github.com/repeat-space/anki-apkg-export-cli
Last synced: 11 months ago
JSON representation
CLI for generating Anki's decks
- Host: GitHub
- URL: https://github.com/repeat-space/anki-apkg-export-cli
- Owner: repeat-space
- License: mit
- Created: 2016-03-31T04:26:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-01T13:29:01.000Z (almost 10 years ago)
- Last Synced: 2025-04-12T23:09:05.133Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# anki-apkg-export-cli
[](https://travis-ci.org/ewnd9/anki-apkg-export-cli)
CLI for generating Anki's decks
## Install
```
$ npm install anki-apkg-export-cli -g
```
## Usage
```sh
$ anki-apkg-export
Usage
$ anki-apkg-export ""
Options
--groups Split files by empty lines
Examples
$ anki-apkg-export **/*.txt
$ anki-apkg-export **/*.txt --groups
```
## One line example
```sh
$ cat dict.txt
Source 1 - Translation 1
Source 2 - Translation 2
$ anki-apkg-export *.txt
```
### card 1
```txt
front:
Source 1
back:
Translation 1
```
### card 2
```txt
front:
Source 2
back:
Translation 2
```
## Groups example
```sh
$ cat dict.txt
Source 1 - Translation 1
Example 1-1 - Example Translation 1-1
Example 1-2 - Example Translation 1-2
Source 2 - Translation 2
Example 2-1 - Example Translation 2-1
$ anki-apkg-export *.txt --groups
```
### card 1:
```txt
front:
Source 1
Example 1-1
Example 1-2
back:
Translation 1
Example 1-1 - Example Translation 1-1
Example 1-2 - Example Translation 1-2
```
### card 2
```txt
front:
Source 2
Example 2-1
back:
Translation 2
Example 2-1 - Example Translation 2-1
```
## Related
- [`anki-apkg-export`](https://github.com/ewnd9/anki-apkg-export) - api
- [`anki-apkg-export-app`](http://ewnd9.com/anki-apkg-export-app/) - web app
## License
MIT © [ewnd9](http://ewnd9.com)