Skip to content

Appendix D — CLI Reference

All commands and flags.

Start a game session.

Terminal window
ai-rpg-engine run [--starter <name>] [--seed <number>]
FlagDescription
--starterStarter world to load (default: fantasy)
--seedRandom seed for deterministic sessions

Replay a recorded session.

Terminal window
ai-rpg-engine replay [--file <path>] [--verbose]
FlagDescription
--filePath to action log file
--verbosePrint all events during replay

Print a save file in readable format.

Terminal window
ai-rpg-engine inspect-save [--file <path>] [--section <name>]
FlagDescription
--filePath to save file
--sectionFilter to a specific section (entities, zones, modules)

Build all packages.

Terminal window
npx tsc --build

Run the full test suite.

Terminal window
npx vitest run

Run tests in watch mode during development.

Terminal window
npx vitest