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 sync is the first command to run on a fresh Raiku installation and the right command to run whenever you want to discover newly published packages. It downloads the canonical index.json from the URL stored in index_url inside ~/.raiku/config.toml (defaulting to the official GitHub raw URL) and writes it to ~/.raiku/index.json. To avoid unnecessary network requests, the command checks the file’s modification time and skips the download if the local copy is less than one hour old — pass --force to override that check and always fetch a fresh copy.
Usage
Flags
| Flag | Short | Description |
|---|---|---|
--force | -f | Sync even if the local index was fetched less than 1 hour ago |
What It Does
- Reads
index_urlfrom~/.raiku/config.toml. - Calls
IndexManager.is_stale()to compare the age of~/.raiku/index.jsonagainst a 1-hour threshold. - If the index is fresh and
--forceis not set, prints a confirmation message and exits immediately without making a network request. - Otherwise, streams
index.jsonfrom the remote URL and atomically writes it to~/.raiku/index.json. - Prints a summary showing the total number of available packages. In
--verbosemode, a per-language breakdown table is also displayed.