konstantin-paulus 67dcb6fdcc Refactor asset and folder command outputs for consistency and clarity
Update the output format for various asset and folder commands to ensure JSON Lines are emitted on stdout, providing a consistent structure across commands. Enhance error handling to ensure that unknown ids or invalid inputs fail the entire command, improving user feedback and command reliability. This change streamlines the user experience and aligns with the fail-fast convention for batch commands.
2026-07-15 12:39:25 +02:00

796 B

dapi node ls [ids...]

The raw entity records, exactly as persisted: every component the entity carries, keyed by component name. The property-level counterpart to node tree's structure. With no ids, returns the root (top-level nodes). Alias: get.

Input

  • [ids...]: zero or more entity ids (optional)

Output

JSON Lines, one per entity:

EntityRecord = { id: string; eid: number } & { [component: string]: unknown }
// e.g. Name, Size, Position, Rotation, Paint, Color, Trim, ChildOf (parent eid), …

Records are raw engine data: times are frames at 30 fps, colors are packed 0xRRGGBB integers, volume is dB.

Errors

An unknown id fails the whole command: nothing is printed to stdout and it exits non-zero with No such entity: <id> on stderr.