danisiber/rom-cli
حول
Terminal CLI to search and download ROMs, ISOs and Switch games. Interactive Textual UI, cross-platform catalog, resumable downloads.
الألعاب والمحاكاةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٣
- خلال 15 يومًا
- +٤
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلrom
Python CLI to find and download ROMs, ISOs and Switch games from the terminal.
It has an interactive UI (Textual) like epub-search, name search, downloads with
a progress bar, and a folder organised by platform.
English-language version of the original Portuguese project by sostenesapollo. Thanks to the original author for the base work — this fork translates the interface and docs to English and tracks the upstream fixes.
Requirements
- Python 3.8+
- macOS or Linux
textual(install.shinstalls it into its own venv)
Installation
git clone https://github.com/danisiber/rom-cli.git
cd rom-cli
./install.sh
This creates a venv in ~/.venvs/rom, installs textual, and publishes rom
(and rom-remote) into ~/bin. Use PREFIX=/usr/local ./install.sh for a
different destination.
Usage
rom # opens the platform picker and browses
rom -p switch # opens straight into the Switch catalog
rom -p switchports # only the Switch ports/homebrew
rom "metroid" # searches every source
rom -y -p gba "pokemon" # downloads the best match without asking
rom --list "metroid" # lists only, does not download
rom --print-url -p switch … # prints the direct link (aria2/curl)
rom -l # lists the platforms
rom --index # builds/prints the catalog index
rom --refresh # rebuilds the index (ignores the cache)
With no query, rom opens the platform picker; once you pick one, it lists
that platform's whole catalog (pages of 300, n/b to move) — so you can
browse without typing anything. Typing in the field and pressing Enter goes
back to searching.
In the UI: ↑↓ navigate, space mark, d download (the marked ones or the
current one), p switch platform, n/b page, ctrl+b options palette,
ctrl+a select all, ctrl+n clear, q quit.
| Flag | Description |
|---|---|
-p, --platform |
platform (switch, snes, gba, ps2, nds, wii…) |
-y, --yes |
download the best match without the menu |
--list |
list only |
--print-url |
resolve and print the direct link only |
--refresh |
rebuild the catalog index |
--index |
download/print the index and exit |
-n, --number |
how many results to show (default 15) |
-o, --out |
destination folder (default ~/Downloads/roms or $ROM_DIR) |
-l, --platforms |
list platforms |
Platforms: switch, switchports, ps5, ps4, ps3, psv, ps2, ps1,
psp, nds, gba, snes, pc, nes, gb, gbc, n64, 3ds, gc, wii,
genesis, mastersystem, dreamcast, saturn, arcade.
Files go to ~/Downloads/roms/<platform>/.
How it works
- Switch: the dlarchive index (
files_api.php). The nsp-roms page embeds links with a token that expires; hereromresolves through the index and grabs a direct, token-free URL. It also works for NDS, GBA, SNES and PC. - Switch ports: the
switchportsplatform merges two sources — the dlarchive catalog and an Archive.org scan (switch port/homebrew port/nsp+port), with a 7-day cache. Around 35 ports (GTA, Halo, Simpsons Hit & Run, SM64 NX, Twilight Princess, Cave Story, Pizza Tower, Max Payne, Hello Neighbor, Diablo...). - PS3 and PS Vita: NoPayStation — downloads
.pkgstraight from Sony's CDN (zeus.dl.playstation.net), no token needed. - PS2, PS1 and PSP: RomsGames (search + a POST that returns the file).
- PS4 and PS5: dlpsgame (search via WP REST). The direct download works when
the post links a supported host (mediafire, Google Drive, 1fichier); when it
doesn't,
romshows the page so you can grab the link yourself. - Best sellers first: while browsing a platform, the best-selling titles (Wikipedia lists, 30-day cache) come first with ★; the rest follow alphabetically. Platforms without a full listing (PS4/PS5) are browsed through that best-seller list itself.
- Fallback: Archive.org on platforms with a thin catalogue.
- The catalog index is cached (
~/.cache/rom-cli/dlarchive.json, 12h TTL) — which makes searches instant.--refreshrebuilds it. - Ranking is by title match, with a penalty for hacks/translations/betas and a
preference for
BaseoverUpdate/DLC. - Files are validated before being written (zip, 7z,
PFS0for.nsp, andPKG/CNTfor.pkg). - Downloads are resumable (
.part+Range).
Remote mode (rom-remote)
Runs on the Mac worker (ssh mac) and brings the files back. Useful when this
Mac's network blocks the download hosts.
rom-remote -p switch "mario kart" # opens the UI on the worker
rom-remote -y -p snes "metroid" # downloads there and syncs back here
Tune it with ROM_REMOTE_HOST, ROM_REMOTE_DIR and ROM_DIR.
Notice
Only use what you have the right to.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…