Docs menu

// Command reference

simforge env

Generated from the CLI's own help (CLI 0.2.0-rc.5). Global flags and exit codes are on the reference index.

All commands

simforge env serve

Serve reset/step/observe episodes over a local socket or named pipe

simforge env serve [OPTIONS] --socket <PATH> <WORKSPACE>

Runs on: local runtime

Argument / flagNotesWhat
<workspace>requiredThe scenario package or workspace directory (a package without a simulation is compiled from its document and recordings)
--socket PATHrequiredLocal endpoint path; Windows derives a same-user named pipe from this path
--rig RIG.JSONThe sensor rig (simforge.render-rig/v1, as simforge render takes it)
--no-sensorsServe the episode without a renderer (observations are the engine's only)
--observation-profile OBSERVATION_PROFILEone of state, sensors, bothRestrict observations to state, sensors, or both; omission preserves the native layout
--preset PRESETone of training, showcase; default trainingThe render preset for observations (schematic is offline simforge render only)
--passes PASSESone of rgb, hdr, id, depth, semantic; default rgb; repeatableCamera passes rendered per observation, comma-separated
--textures TEXTURESone of uastc-full, bc7-512; default uastc-fullThe staged texture tier
--episode EPISODE.JSONEpisode configuration (camelCase EpisodeConfig, as the gym's episode specs carry it)
--decision-hz HZPolicy decisions per second (overrides the episode's decisionHz)
--max-objects Ndefault 64Rows of the objects observation
--allow-software-adapterRender on a software (CPU) Vulkan adapter such as lavapipe, explicitly
--map-dir DIRUse this map directory instead of the installed map found by content
--cache-root DIRMap cache root to search. Default: SIMFORGE_MAPS_CACHE_ROOT, then $XDG_DATA_HOME/simforge/maps
--assets-root DIRActor-asset root. Default: SIMFORGE_ACTOR_ASSETS_ROOT, then $XDG_DATA_HOME/simforge/actor-assets
--actor-closure SHA256The actor closure to bind, instead of the workspace's catalog.actorClosureDigest
--actor-layer SHA256The workspace's private model layer (an actor closure in the same store) for workspace.* models, instead of the workspace's simforge.actorLayer extension
--vram-budget BYTESA texture budget in bytes; without it admission is skipped (reported)
--log FILEWhere the renderer's diagnostics go. Default: <socket>.log
--allow-map-driftRender on the installed map release even where its members differ from the workspace's map closure (recorded; the default refuses)
--max-sessions Ndefault 8Maximum concurrent client sessions sharing one prewarmed renderer. Training defaults to eight sessions per map renderer
--shm-size-mb MIBdefault 512Size of the renderer's shared-memory frame ring, MiB