Skip to content

hash

Compute and save SHA-256 hashes for all deck, collection, and wanted list files.

Ritual stores a .sha256 sidecar file alongside each list file so that content hashes do not need to be recomputed on every request. Hashes are automatically updated whenever a file is saved through the CLI or admin UI. Use this command to recompute and persist hashes for all lists at once — for example after editing files externally or restoring from a backup.

Terminal window
./ritual hash [options]
OptionDescriptionDefault
--dry-runPrint computed hashes without writing .sha256 filesfalse

Recompute and save hashes for all lists:

Terminal window
./ritual hash

Preview what would be written without making changes:

Terminal window
./ritual hash --dry-run

Use a custom base directory:

Terminal window
./ritual --base-dir /path/to/site hash