CLI
CLI
Risuko command-line interface reference.
The Risuko CLI (risuko) is a standalone binary that provides full access to the download engine from your terminal. It communicates with a running engine instance via JSON-RPC, or starts a temporary headless engine when needed.
Installation
npm install -g @risuko/cliOr use Homebrew:
brew install yuemiyuki/risuko/risuko-cliOr download standalone binaries from the download page or GitHub Releases.
Usage
risuko <command> [options]Commands
| Command | Description |
|---|---|
download | Download a file from a URL, magnet link, or .torrent file |
status | Show status of downloads |
pause | Pause a download |
resume | Resume a paused download |
remove | Remove a download |
pause-all | Pause all active downloads |
resume-all | Resume all paused downloads |
global-stat | Show global download/upload stats |
files | Show files belonging to a download |
peers | Show peers for a torrent download |
purge | Purge completed/error/removed results |
config | Get, set, or list configuration values |
rss | Manage RSS feed subscriptions |
serve | Start headless engine (RPC server only) |
shutdown | Request engine shutdown via RPC |
Global Behavior
- The CLI connects to the engine's JSON-RPC server (default port
16800); the exceptions areconfig, which reads and writes the local config files directly, andserve, which starts the engine itself - If no engine is running, the
downloadcommand starts a temporary headless engine on--rpc-portand stops it when the download finishes - The CLI dials the
rpc-hostconfig value; a wildcard host (0.0.0.0,::) is dialled as127.0.0.1 - Use
--rpc-porton most commands to connect to a non-default port - Use
--rpc-secretto pass an authentication token when the engine hasrpc-secretconfigured; if omitted, the CLI falls back to therpc-secretvalue fromsystem.jsonin the config directory (generated on first run, see RPC authentication) - If the running engine rejects the secret, the CLI reports the authentication failure ("A Risuko instance is running but rejected the RPC secret…") instead of starting a second engine; pass the right
--rpc-secretor checkrpc-secretinsystem.json - Use
--jsonfor machine-readable output ondownload,status,global-stat,files,peers,config list, andrss list;pause-all,resume-all,purge, andshutdownaccept the flag but ignore it - Errors print
Error: <message>to stderr and exit with status 1;removeexits 0 even if some GIDs fail RUST_LOGoverrides the log level