Skip to content

Integrations

SaveEditors edited this page Mar 25, 2026 · 1 revision

Integrations

This page is for people who want to build other tools around XeCLI or reuse its shipped assets.

Integration Modes

There are three useful ways to integrate with XeCLI:

  1. Call the CLI directly.
  2. Parse its JSON output.
  3. Read the bundled metadata files directly.

Use the smallest integration surface that solves the problem.

Terminal Agents

XeCLI fits terminal-agent and scripted workflows because the command surface is explicit, copy-paste friendly, and often exposes --json for structured output.

Good agent tasks:

  • connect to the saved console target and verify live state
  • capture screenshots or pull files for local analysis
  • run repeatable FTP-backed maintenance steps
  • dump the running XEX and feed it into a Ghidra or IDA workflow
  • collect sign-in, title, module, or content snapshots for another tool

Recommended pattern:

rgh connect <console-ip>
rgh ftp target --set <console-ip> --user <ftp-user> --pass <ftp-pass>
rgh status --json
rgh title --json
rgh screenshot --out .\screen.bmp
rgh ftp list --path /Hdd1/

Avoid interactive flows such as rgh start, rgh avatar choose, or confirmation-gated destructive commands when the caller is an unattended agent. Prefer explicit arguments and JSON output where available.

Use the CLI Directly

XeCLI is useful as an orchestration backend when your tool needs live console interaction but you do not want to duplicate transport code.

Good examples:

  • launchers that need title and module metadata
  • dashboards that need status snapshots
  • overlays that need sign-in/session state
  • operator panels that need LED or notification actions
  • save tools that need extraction and injection
  • reverse-engineering helpers that need XEX pulls or Ghidra/IDA automation

Typical calls:

rgh status --json
rgh title --json
rgh signin state --json
rgh modules list --json
rgh content list --json

Parse JSON Output

Prefer --json when you need stable machine-readable output instead of screen scraping terminal tables.

Common commands with useful JSON output:

  • status
  • profiles
  • title
  • scan
  • modules list
  • modules info
  • mem regions
  • mem strings
  • content list
  • signin state
  • ghidra verify
  • ida check
  • ida verify

Example:

rgh status --json > status.json
rgh title --json > title.json
rgh signin state --json > signin.json
rgh modules list --json > modules.json

Reuse the Title ID Database

Bundled files:

  • src/Xbox360.Remote.Cli/Assets/xbox360_gamelist.csv
  • src/Xbox360.Remote.Cli/Assets/xbox360_titleids.txt

External tools can consume these files directly to:

  • resolve Title IDs
  • annotate content inventory
  • label saves and dumps
  • enrich UI views with media and region data

That database is shipped with the repo and the release output. There is no runtime fetch requirement.

Reuse the Avatar Item Collection

XeCLI also expects an avatar corpus named Avatar-Item-Collection.

That corpus is intended to be reused by external tools that need:

  • offline avatar item browsing
  • title-aware filtering
  • item metadata indexing
  • pack-level download or cache orchestration
  • avatar install workflows without depending on an online marketplace

The hosted collection lives at:

Remote consumers should treat the manifest/title-map pair as the primary entry point:

  • avatar-manifest.json
  • avatar-title-map.json

The current XeCLI remote defaults resolve to the same hosted repo and keep a local download cache so repeated installs do not re-fetch the same pack.

The recommended external-tool pattern is:

  1. index the local collection once
  2. expose title-based and text-based filters in your own UI
  3. download or cache only the packs your workflow needs
  4. hand install or patch data to XeCLI or a companion installer layer

Use Avatar-Item-Collection as the public-facing corpus name in your own tooling and integrations.

Typical CLI entry points:

rgh avatar library show --json
rgh avatar games --json
rgh avatar items --titleid 415608C3 --json
rgh avatar install --contentid 000000080DF3B242CAE65A52415608C3 --current-user

When FTP is unavailable on the target console, rgh avatar install can fall back to XBDM upload and XBDM-side verification.

Use XeCLI as a Console Worker

Example pattern:

rgh xex dump --out .\title.xex
rgh screenshot --out .\screen.bmp
rgh save extract --titleid 415608C3 --out .\saves

This works well when your application wants the files that XeCLI can pull rather than embedding transport logic itself.

This is also a good fit when you want XeCLI’s live progress handling and clear error messages without rewriting FTP/XBDM transport code yourself.

Ghidra and IDA Integration Patterns

If your tool needs decompile output but you do not want to own the reverse-engineering automation layer yourself, XeCLI can drive either supported backend.

Ghidra path

If you want XeCLI to handle Ghidra import, decompile, and verification:

rgh ghidra decompile --in .\title.xex --out .\decomp
rgh ghidra verify --dir .\decomp --json

This keeps import, decompile, and verification logic in one place.

IDA path

If you want XeCLI to handle the IDA import/decompile path instead:

rgh ida analyze --in .\title.xex --out-db .\title.i64 --overwrite
rgh ida decompile --in .\title.i64 --out .\ida-decomp --backend idalib --max 50
rgh ida verify --dir .\ida-decomp --json

For a one-shot XEX-driven IDA path, use:

rgh xex ida-decompile --in .\title.xex --out .\ida-decomp --out-db .\title.i64 --keep-db

Use the Ghidra path when you want the (Free) external backend or a looser environment requirement. Use the IDA path when you want the pinned IDA Pro 9.1.250226 plus idaxex 0.42b workflow documented by XeCLI.

Notification Integration Pattern

If your app needs visible console-side feedback, use XeCLI as the notification layer rather than hardcoding icon IDs in multiple places.

Examples:

rgh notify "Build finished" 14
rgh notify "Patch applied" 16
rgh notify "Download complete" 55
rgh led set --preset quadrant1

For custom frontends, a practical pattern is:

  1. keep your own message text in the host app
  2. call XeCLI with a known icon ID or preset
  3. show the same event in your host UI and on the console

Read XNotify.md for the icon reference and direct usage guidance.

Config and Override Files

Runtime config:

  • %APPDATA%\XeCLI\config.json

Optional user metadata override:

  • %APPDATA%\XeCLI\titleids.local.csv

If you build another tool around XeCLI, do not hardcode machine-specific paths. Resolve config and asset paths relative to the XeCLI executable or the documented per-user config locations.

If you ship XeCLI beside another tool, prefer resolving:

  • executable folder for ConsoleDependencies/, Assets/, ghidra_scripts/, and ida_scripts/
  • per-user config for runtime overrides
  • titleids.local.csv for user-specific metadata extensions

When to Reuse XeCLI Instead of Rewriting It

Use XeCLI directly when:

  • you want stable command names
  • you need live XBDM/JRPC2/FTP coordination
  • you want the shipped metadata and Ghidra/IDA flows
  • you need a tool that can still be used manually in terminal

Reimplement only if:

  • you need a library API instead of a process boundary
  • you must own every transport and retry detail internally
  • your application cannot tolerate CLI process orchestration

Recommended External-Tool Entry Points

Need Recommended XeCLI entry point
Live status card rgh status --json
Active title badge rgh title --json
Signed-in user badge rgh signin state --json
Notification banner on console rgh notify
Session/hardware indicator rgh led set
File pull/push rgh ftp ... or rgh fs ...
Terminal-agent automation rgh status --json, rgh title --json, rgh ftp ..., rgh screenshot
Running-XEX acquisition rgh xex dump
Decompile pipeline rgh ghidra decompile + rgh ghidra verify --json or rgh ida decompile + rgh ida verify --json
Save backup/import rgh save extract / rgh save inject

Clone this wiki locally