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 login stores a GitHub Personal Access Token (PAT) in ~/.raiku/auth.json so that raiku publish --submit can open pull requests on your behalf without you having to paste credentials every time. The token is verified against the GitHub API at login time so you know immediately whether it is valid. On POSIX systems the auth file is written with chmod 600 so only your user account can read it.
Usage
Related commands
| Command | Description |
|---|---|
raiku login | Prompt for (or accept via --token) a GitHub PAT, verify it, and store it. |
raiku whoami | Display the GitHub username associated with the stored token. |
raiku logout | Delete the stored credentials from ~/.raiku/auth.json. |
Flags for raiku login
| Flag | Description |
|---|---|
--token TOKEN | Provide the PAT directly (skips the interactive prompt). Useful for scripted setups. |
What login stores
Raiku writes a JSON file at~/.raiku/auth.json containing:
600 on Linux and macOS. On Windows, file-level permission restriction is not applied but the file is still stored in your user home directory.
Required token scope
The PAT must have therepo scope to open pull requests against the Raiku repository. You can create a fine-grained token with Contents: Read and Pull requests: Write on the target repository, or use a classic PAT with repo.
Create tokens at: github.com/settings/tokens
When is the token used?
The stored token is only used byraiku publish --submit. All other Raiku commands (install, sync, search, etc.) are unauthenticated and do not require a GitHub token.
Examples
Sample output of raiku login
Sample output of raiku whoami
Your token is validated against the GitHub API at login time to catch typos and expired tokens early. If the API is unreachable, Raiku saves the token anyway with a warning — it may still work when you run
raiku publish --submit.