Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tools CLI

The Rust xrf-cli binary provides repeatable asset inspection, conversion, packing, unpacking, formatting, and verification outside the engine repository wrapper.

xrf-cli <command> --help

The engine CLI wraps selected operations through npm run cli -- .... Use xrf-cli directly for scripts and format-specific workflows.

Command groups

GroupCommands
Archiveunpack-archive
Externsexport-externs
Gamedataverify-gamedata
LTXformat-ltx, verify-ltx
Modelsinfo-ogf, patch-ogf-motion-refs, patch-ogf-texture-refs, info-omf, repack-omf, filter-omf-motions, rename-omf-motions, duplicate-omf-motion
Particleinfo-particles, unpack-particles, pack-particles, repack-particles, re-unpack-particles, verify-particles
Spawninfo-spawn, unpack-spawn, pack-spawn, repack-spawn, verify-spawn
Textureinfo-dds, crop-dds, unpack-equipment-icons, pack-equipment-icons, verify-equipment-icons, unpack-texture-description, pack-texture-description, patch-thm-bump
Translationinitialize-translation, build-translation, verify-translation, parse-translation

Logging

Some commands offer --silent or --verbose. Rust logging honors RUST_LOG when it is set.

Read and write commands

Inspection commands such as info-ogf, info-omf, info-dds, info-spawn, and info-particles read input files and print parsed metadata. Conversion commands such as archive unpacking, spawn packing, particle packing, texture packing, and translation building write output paths.

Use explicit input and output paths when documenting or scripting a command. Some commands use named options such as --path and --dest; verify-gamedata uses its assembled gamedata root as a positional operand. Explicit paths make generated assets easier to reproduce.

Usage pattern

Use the command-specific page when working with a file format. Each page lists the required input, output behavior, and the commands that are safe to run as read-only inspection versus commands that write files.

When running from the engine repository, prefer the engine CLI wrapper if it already exposes the workflow. Use xrf-cli directly when you need a lower-level command that the engine wrapper does not register. On Windows, use xrf-cli.exe or the bundled path under cli/bin/tools.