Install
On Linux or macOS:
curl -fsSL https://downloader.rising.sh/install.sh | sh
On Windows, in PowerShell:
irm https://downloader.rising.sh/install.ps1 | iex
Then run downloader --version. The same command updates an installed copy.
What the script installs
With Node 22.13 or newer on your PATH, install.sh installs an 80 KB Node
script. Otherwise it installs a standalone binary, about 100 MB because it
carries the Bun runtime. install.ps1 always installs the standalone
downloader.exe. Both scripts take the files from the newest downloader-cli
release and check them
against its SHA256SUMS before they install.
| Variable | Effect |
|---|---|
DOWNLOADER_VERSION | Installs a release such as 0.3.0 instead of the newest. |
DOWNLOADER_BIN_DIR | Installs into this directory. Default: ~/.local/bin, or %LOCALAPPDATA%\downloader on Windows. |
DOWNLOADER_BINARY | 1 installs the binary even when Node is present. Only install.sh reads it. |
curl -fsSL https://downloader.rising.sh/install.sh | DOWNLOADER_VERSION=0.3.0 sh
install.sh prints a line when the install directory is not on your PATH.
install.ps1 adds its directory to your user PATH; open a new terminal to
pick it up.
Updates
Once a day, a run in a terminal asks GitHub for the newest downloader-cli
release. When it is newer than the running version, the run ends with a notice
and the command that installs it. The check gives up after 1.5 seconds, and runs
with --json, --help or --version skip it. DOWNLOADER_NO_UPDATE_CHECK=1
turns it off.
Library
To resolve posts from your own code, install the library instead:
npm install @totallynotdavid/downloader