Risuko
CLI

Command Reference

Detailed reference for all Risuko CLI commands.

download

Download a file from a URL, magnet link, or .torrent file.

risuko download <url> [options]

If no running engine is detected, a temporary headless instance is started automatically.

Arguments

ArgumentDescription
urlURL, magnet link, or path to a .torrent file

Options

OptionShortDefaultDescription
--threads-t16Number of connections per download
--dir-dDownload directory
--out-oOutput filename
--header-HHTTP header (repeatable)
--user-agentUser agent string
--proxyProxy server URL
--refererHTTP referer
--cookieCookie string
--seed-ratioBitTorrent seed ratio (e.g. 1.0)
--seed-timeBitTorrent seed time in minutes
--rpc-port16800RPC port to connect to
--rpc-secretRPC authentication token
--jsonOutput as JSON

Examples

# Basic HTTP download
risuko download https://example.com/file.zip

# With 32 connections to a specific directory
risuko download https://example.com/file.zip -t 32 -d ~/Downloads

# Torrent with seeding limits
risuko download "magnet:?xt=urn:btih:abc123" --seed-ratio 1.0 --seed-time 60

# With authentication header
risuko download https://example.com/private.zip -H "Authorization: Bearer token"

# From a .torrent file
risuko download ./ubuntu-24.04.torrent -d ~/Downloads

status

Show status of active, waiting, and stopped downloads.

risuko status [options]

Options

OptionDefaultDescription
--gidShow a specific task by GID
--rpc-port16800RPC port to connect to
--rpc-secretRPC authentication token
--jsonOutput as JSON

Output

Without --gid, displays a table of all downloads:

GID       STATUS    PROGRESS  SPEED      NAME
a1b2c3d4  active    64.2%     12.4 MB/s  ubuntu-24.04-server-amd64.iso
e5f6a7b8  waiting   0.0%      —          archlinux-2024.04.01-x86_64.iso
c9d0e1f2  complete  100.0%    —          node-v22.0.0.tar.gz

With --gid, shows detailed information for a single task.


pause

Pause a specific download.

risuko pause <gid> [--rpc-port PORT]

resume

Resume a paused download.

risuko resume <gid> [--rpc-port PORT]

remove

Remove one or more downloads from the engine. Active downloads are stopped first.

risuko remove <gid>... [--rpc-port PORT] [--rpc-secret SECRET]

Multiple GIDs can be passed in a single invocation.


pause-all

Pause all active downloads.

risuko pause-all [--rpc-port PORT]

resume-all

Resume all paused downloads.

risuko resume-all [--rpc-port PORT]

global-stat

Show global download and upload statistics.

risuko global-stat [--rpc-port PORT] [--json]

Output

Download Speed: 24.8 MB/s
Upload Speed:   1.2 MB/s
Active:         3
Waiting:        2
Stopped:        15

files

Show files belonging to a download.

risuko files <gid> [--rpc-port PORT] [--json]

peers

Show connected peers for a BitTorrent download.

risuko peers <gid> [--rpc-port PORT] [--json]

purge

Remove completed, errored, and removed download results from the engine's memory.

risuko purge [--rpc-port PORT]

config

Manage engine configuration. Configuration is stored as JSON files in the config directory.

config get

risuko config get <key>

config set

risuko config set <key> <value>

The value should be valid JSON:

risuko config set max-concurrent-downloads '"5"'
risuko config set dir '"/home/user/downloads"'

config list

risuko config list [--json]

rss

Manage RSS feed subscriptions.

The RSS CLI commands call RPC methods (risuko.addRssFeed, risuko.getRssFeeds, risuko.refreshAllRssFeeds, risuko.removeRssFeed) that are not yet implemented in the engine's RPC server. These commands will currently return a "method not found" error. RSS management is available directly in the desktop app.

rss add

risuko rss add <url> [--rpc-port PORT]

rss list

risuko rss list [--rpc-port PORT] [--json]

rss refresh

Refresh all RSS feeds and trigger new downloads.

risuko rss refresh [--rpc-port PORT]

rss remove

risuko rss remove <id> [--rpc-port PORT]

serve

Start the engine in headless mode (RPC server only, no GUI).

risuko serve [--rpc-port PORT] [--verbose]

The engine runs until interrupted (Ctrl+C) or a shutdown command is received.

OptionShortDefaultDescription
--rpc-port16800RPC listen port
--verbose-vfalseEnable verbose logging

shutdown

Request the engine to shut down via RPC.

risuko shutdown [--rpc-port PORT]

On this page