Inspect Anki export files (.apkg) using the anki-ls CLI application. Returns the flashcard data as JSON.
Download the executable for Linux/x86 and run:
./anki-ls [anki-export-file] <type>The anki-export-file is the Anki file you have exported from Anki (file name ending: .apkg).
The type parameter is one of the following values:
- decks - Display the decks
- notes - Display the notes
- cards - Display the cards
- noteTypes - Display the note types
- reviews - Display the reviews
- config - Display the config
- stats - Display file statistics
Anki-ls uses Bun.
To install dependencies:
bun installbun build index.ts --compile --outfile anki-lsThanks a lot to Eiko for his great srs-converter library.
MIT License