Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SGizek/Raiku/llms.txt
Use this file to discover all available pages before exploring further.
raiku index is a set of maintainer-focused tools for working with the Raiku package index. It operates on index/index.json — the central registry file that lives in the Raiku repository and is synced to users’ machines via raiku sync. Most end users never need raiku index directly; it is primarily used by contributors and CI pipelines that manage the upstream registry. The three modes are --rebuild, --stats, and --check.
Usage
Flags
| Flag | Description |
|---|---|
--rebuild | Scan UserSub/ and regenerate index/index.json from the packages found on disk. |
--stats | Display package counts, language breakdown, schema version, and last sync time from the local index. |
--check | Validate every entry in the index: confirm paths exist and re-verify SHA-256 hashes. |
--root DIR | Repository root to use with --rebuild and --check. Defaults to the current directory. |
--dry-run | With --rebuild: print the generated JSON without writing it to disk. |
When to use each mode
--rebuild
Used by repository contributors after adding or updating packages in UserSub/. It walks every UserSub/<Language>/<package>/ directory, parses each raiku.toml, computes the SHA-256 of that file, and writes a fresh index/index.json. Typically triggered by CI on every pull request merge.
--stats
A quick at-a-glance overview of the locally cached index. Useful for confirming the index is fresh and seeing how many packages are registered per language.
--check
Validates the consistency of the existing index/index.json against the files on disk. For every index entry it confirms:
- The declared
pathexists under the repository root. - The SHA-256 hash in the index matches the current hash of
raiku.tomlon disk.
--check in CI before merging contributions to catch accidental hash drift.
Examples
Sample output of raiku index --stats
raiku index --rebuild is typically run by CI after a package PR is merged, not by end users. If you just want to refresh your local copy of the index, use raiku sync instead.