Skip to content

cache

Manage the card cache.

Terminal window
./ritual cache <subcommand> [options]

Preload all cards from a specific set into the cache.

Terminal window
./ritual cache preload-set <setCode>
ArgumentDescriptionRequired
<setCode>Set code to preload (e.g., khm, lea)Yes

Preload Kaldheim cards:

Terminal window
./ritual cache preload-set khm

Preload Alpha cards:

Terminal window
./ritual cache preload-set lea
  • Set codes are the official Scryfall/Gatherer set codes
  • Preloading a set fetches all cards and stores them locally
  • This speeds up subsequent operations that reference cards from that set
  • The cache is stored in the cache/ directory