openrom-core is the headless engine behind the desktop app. It ships in every
release and is the supported way to script OpenROM.
Running it with no arguments prints the usage summary and exits 0.
| Aspect |
Detail |
| Exit codes |
0 success, 1 operation failed, 2 bad arguments or invalid input |
| JSON mode |
--json switches logs, progress and results to JSON lines |
| Plugins |
Installed .orplug extensions are loaded automatically before the job runs |
| Originals |
Conversions write new files; only header removal touches the source, and it keeps a .bak |
The first matching job flag wins, in the order shown below.
| Flag |
Description |
-i, --input <file> |
Convert a single ROM file. |
--convert <file> |
Alias for --input. |
-f, --folder <dir> |
Convert every supported ROM in a folder. |
--watch <dir> |
Watch a folder and convert new files as they arrive. |
--settle-seconds <n> |
Seconds a watched file must stay unchanged. Default 3. |
--detect <file> |
Detect format, platform and metadata. |
--hash <file> |
Compute CRC32, MD5, SHA-1 and SHA-256 in one pass. |
--identify |
With --hash: look the ROM up in Hasheous. |
--verify |
Verify CHD integrity after conversion. |
--verify-only |
Verify an existing CHD without converting. |
| Flag |
Description |
-F, --format <fmt> |
Output format: CHD, CSO, ZSO, ECM, ISO, BIN, BIN/CUE, XISO, ZIP, and plugin-provided formats. |
-o, --output <path> |
Output directory or file path. |
-c, --compression <level> |
Compression level for conversions: Normal, High, Max. Default Normal. |
--force-platform <name> |
Override detection (PS1, PS2, PSP, GameCube, Wii, Xbox, Dreamcast, Saturn, Sega CD, PC-Engine CD, Neo Geo CD). |
--media <cd|dvd> |
Force the CHD media type when the source is unrecognised. |
--audio-codec <flac|vorbis> |
CD audio codec for CHD. Default flac. |
--list-formats |
Print supported conversion formats and exit. |
| Flag |
Description |
--compress <path> ... |
One or more files or folders to compress. |
--extract <file> ... |
One or more ZIP or 7Z archives to extract. |
--level <fast|normal|ultra> |
Archive compression level. Default normal. |
--delete-source |
Delete the source after a successful operation. |
| Flag |
Description |
--generate-cue <bin> |
Write a CUE for a BIN, detecting MODE1 / MODE2 / AUDIO. |
--merge-bins <cue> |
Merge the tracks referenced by a CUE into one BIN + CUE. |
--m3u <path> ... |
Generate an M3U playlist for one or more disc files or folders. |
--absolute |
Write absolute paths into the M3U. |
| Flag |
Description |
--detect-header <file> |
Detect a copier header and its confidence. |
--remove-header <file> |
Strip the header into a new file. |
--no-backup |
Do not write the .bak backup during header removal. |
| Flag |
Description |
--import-dat <file> |
Import a No-Intro or Redump DAT. |
--list-dats |
List imported DATs. |
--scan-roms <dir> |
Match a folder against the imported DATs. |
--rename-roms <dir> |
Rename matched files to their canonical names. |
--dry-run |
Preview a rename or 1G1R run without changing anything. |
--1g1r <dir> |
Keep one ROM per title, moving duplicates to _duplicates/. |
--priority <list> |
Region order for 1G1R. Default USA,Europe,Japan. |
| Flag |
Description |
--audit-mame |
Audit a folder against a MAME XML or Logiqx DAT. |
--dat <file> |
The DAT to audit against. |
--only-present |
Only report machines whose zip exists. |
--no-crc-check |
Match by size only. |
--include-bios |
Include BIOS and device-only sets. |
| Flag |
Description |
--read-ipbin <file> |
Print boot-sector fields from IP.BIN or a GDI. |
--write-ipbin <file> |
Modify an IP.BIN. |
--set-title <text> |
Set the product name (Shift-JIS aware). |
--set-region <chars> |
Set region characters, e.g. JUE. |
--set-vga |
Enable VGA. |
--region-free |
Enable Japan, USA and Europe. |
--read-gdi <file> |
Print the track layout of a GDI. |
--dcp <file> |
Apply a Dreamcast .dcp patch. |
--disc-dir <dir> |
Extracted disc directory used with --dcp. |
| Flag |
Description |
--install-plugin <file> |
Install a .orplug archive. |
--list-plugins |
List installed plugins. |
--remove-plugin <id> |
Uninstall a plugin by ID. |
--plugin-init <dir> |
Scaffold a new plugin project. |
--plugin-validate <path> |
Validate a plugin folder or archive. |
--plugin-pack <dir> |
Package a plugin into .orplug. |
--name <text> |
Plugin display name (with --plugin-init). |
--id <id> |
Plugin ID (with --plugin-init). |
--category <name> |
Storefront category (Nintendo, Sega, PlayStation, Xbox, Utility, Patchers). |
--out <path> |
Output path for --plugin-pack. |
--deeplink <url> |
Resolve an openrom:// URL, e.g. openrom://install/<id>. |
| Flag |
Description |
--json |
Machine-readable output. |
-q, --quiet |
Suppress per-job log output. |
-h, --help |
Show usage. |
-v, --version |
Show the version. |
Every line is a complete JSON object. Common shapes:
{"type":"log","message":"Converting game.iso → game.chd"}
{"type":"progress","file":"game.iso","percent":42.5}
{"type":"done","success":true}
Command-specific results add their own fields, for example crc32, md5,
sha1, sha256 for --hash, or total_files, kept_count and moved_count
for --1g1r.