Skip to main content

CLI

Overview

A CLI command is a single, named game action that can be invoked by id with an explicit parameter list - for example, setting the current Zoi's mood, fast-forwarding the in-game clock, or spawning an object. Each command has a stable contract, so external code can drive the simulation safely without poking at internal data directly.

The inZOI CLI is a standalone integration layer, not bound to any single host language. The same command catalog is reachable from every embedded runtime that ships with the game - JavaScript inside UI Mods, Lua scripts, and other host environments - each via its own invoke API. UI Mods are just one common caller; the parameter contracts described on these pages apply unchanged everywhere else.

Pick a category below to see its commands. Each command has its own page with parameters and a usage example.

Categories

CategoryCommands
ai_data2
ambition3
appearance31
asset3
automation1
autonomy2
bag2
bio1
buff2
build19
building29
camera7
career10
character1
cleaning3
cli2
contacts1
crime1
currency3
curseforge5
data6
disaster1
emotion4
entity19
environment15
event2
facial2
fx2
game10
gameplay4
gedcom1
graphics5
growth1
hope10
household6
household_biz38
illness1
interaction8
keylayer5
l10n2
life_and_death3
lua_module2
luamod4
map2
marriage4
memory11
mod4
motion6
movement11
needs3
object1
optimization3
phone5
photoframe1
pocket_market2
pose7
pregnancy_and_birth3
quality_of_life3
relationships9
schedule2
screenshot2
settings7
simulation5
site2
skill3
smartbuild12
smartzoi4
social_event5
sound3
stat6
status_and_health2
system3
toast2
ui12
uimod14
vehicle4
view4
visual6
weather1
world2
zoi2
zoi_group9
Total466

Calling a command

Every host runtime exposes its own invoke API, but the shape is always the same: pass a command id and a parameter object. The snippet below uses the JavaScript binding from a UI Mod - other hosts (Lua, etc.) provide an equivalent call.

// Example host: a UI Mod's JavaScript.
await window.inzoi.cli.execute('<command-id>', { /* params */ });