yarn dlx -p @sabinmarcu/quizdeck quizdeck
pnpm dlx --package @sabinmarcu/quizdeck quizdeck
npx --package @sabinmarcu/quizdeck quizdeck
The CLI uses Clipanion for commands and Ink for the interactive interface. It needs a terminal for interactive study; load can run without one when replacement does not need a prompt or --yes is supplied. The packaged executable is quizdeck from @sabinmarcu/quizdeck.
Install Node.js 24 before running the published CLI. To launch it in a terminal without adding it to a project:
yarn dlx -p @sabinmarcu/quizdeck quizdeck
pnpm dlx --package @sabinmarcu/quizdeck quizdeck
npx --package @sabinmarcu/quizdeck quizdeck
The Yarn tab runs it with yarn dlx. This fetches the package for this invocation; it does not add it to your project.
In a Node.js project with a package manager installed, add the package:
yarn add @sabinmarcu/quizdeck
pnpm add @sabinmarcu/quizdeck
npm install @sabinmarcu/quizdeck
With Yarn, run the installed executable from that project:
yarn quizdeck
Development uses Node.js 24.18.0 and Yarn 4.18.1, pinned by Proto in .prototools. Install those prerequisites before using repository commands. From the Quizdeck checkout:
proto installyarn installyarn cli
yarn cli opens the terminal interface, and yarn cli --help lists commands. yarn build creates the CLI and web builds; yarn start:cli runs the built terminal interface. The package also includes Bash, Command Prompt, and PowerShell launchers in bin/; they require the built files and installed runtime dependencies beside them. They do not install themselves globally.
From the project where you installed the package, run:
yarn quizdeck load ./networkBasics.jsonyarn quizdeck load ./networkBasics.json --yes
With a temporary invocation, use the same load arguments after quizdeck in the package-manager command above. From a clone, use yarn cli load ./networkBasics.json instead.
Relative paths resolve from the caller's working directory. The CLI validates the whole file before opening storage. If progress exists, it prompts for confirmation with Cancel as the default. A non-interactive load with existing progress needs --yes; cancellation or validation errors leave the store unchanged and exit non-zero. A successful load reports the new set and cleared record counts, then exits. The required JSON structure is described in How it works.
Use arrow keys or j/k to move, Enter to open or answer, h/l to move back and forward, and gg/G to reach menu boundaries. ? opens Help in the shell; Escape returns to the previous view. q or Ctrl-C exits the CLI.
In Learn, / focuses search, f cycles filters, and c clears search outside the editor. In a question, Enter or a letter/number choice shortcut records an answer; focus movement alone does not. r opens the confirmed global learning reset. In Practice history, n starts a run; p pauses or resumes practice. Previously answered practice questions are read-only.
On terminals without enhanced key-release events, holding and repeating the same answer key across consecutive questions is deliberately suppressed. Move focus with j/k or use a different equivalent key before selecting the same choice again. Exiting an active run saves and pauses it; a hard crash may lose only the last interval since the previous time checkpoint.
On Unix, SQLite is stored under $XDG_DATA_HOME/quizdeck/progress.sqlite, or ~/.local/share/quizdeck/progress.sqlite if that variable is unset. On Windows it uses %LOCALAPPDATA%\quizdeck\progress.sqlite, falling back to the user's local AppData directory. The database is not served to the browser.