Risuko
CLI

Command Reference

Detailed reference for all Risuko CLI commands.

download

Download a file from a URL or a .torrent file path.

risuko download <url>... [options]

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

Arguments

ArgumentDescription
url...URL(s), a magnet link, or a path to a .torrent file. Multiple URLs are treated as HTTP mirrors of the same file; torrent, magnet, media, and yt-dlp downloads accept only one input

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, sent as a Cookie header (ignored if a -H header already sets one)
--media-formatMedia format selector passed to yt-dlp (alias: --youtube-format)
--ytdlpForce the URL through the yt-dlp media engine even if its host is not in the built-in allowlist
--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 ./ubuntu-24.04.torrent --seed-ratio 1.0 --seed-time 60

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

# Media download via yt-dlp with a format selector
risuko download https://example.com/watch?v=abc --ytdlp --media-format "bestvideo+bestaudio"

# 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     Name                            Progress        Speed       Size
---------------------------------------------------------------------------------------------
a1b2c3d4e5f6a7b8   active     ubuntu-24.04-server-amd64.iso      64.2%    12.4 MB/s     2.6 GB
e5f6a7b8c9d0e1f2   waiting    archlinux-2024.04.01-x86_...        0.0%            -     1.2 GB
c9d0e1f2a1b2c3d4   complete   node-v22.0.0.tar.gz               100.0%            -    89.4 MB

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


pause

Pause a specific download.

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

resume

Resume a paused download.

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

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] [--rpc-secret SECRET]

resume-all

Resume all paused downloads.

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

global-stat

Show global download and upload statistics.

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

Output

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

Waiting is the engine's broad not-active-yet bucket: waiting, paused, and scheduled tasks are all counted there.


files

Show files belonging to a download.

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

peers

Show connected peers for a BitTorrent download.

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

purge

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

risuko purge [--rpc-port PORT] [--rpc-secret SECRET]

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 is parsed as JSON; if parsing fails, it is stored as a plain string. Writes go to user.json:

risuko config set max-concurrent-downloads 8
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] [--rpc-secret SECRET]

rss list

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

rss refresh

Refresh all RSS feeds and trigger new downloads.

risuko rss refresh [--rpc-port PORT] [--rpc-secret SECRET]

rss remove

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

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

There is no --rpc-secret flag for serve; the RPC secret comes from the rpc-secret config key.


shutdown

Request the engine to shut down via RPC.

risuko shutdown [--rpc-port PORT] [--rpc-secret SECRET]

On this page