The ./supex command is the direct CLI interface for SketchUp automation.
For interactive Ruby console usage, see Interactive REPL.
./supex reload is CLI-only; there is no MCP tool named reload_extension.
| Command | Description |
|---|---|
./supex status |
Check SketchUp connectivity and local docs availability |
./supex reload |
Reload the SketchUp extension without restarting SketchUp |
./supex eval <code> |
Evaluate inline Ruby code |
./supex eval-file <path> |
Evaluate Ruby from a file (recommended workflow) |
./supex info |
Show current model stats |
./supex entities [type] |
List model entities (all, faces, edges, groups, components) |
./supex entity <id> |
Show the full state of one entity (bounds, transformation, material, flags) |
./supex selection |
Show current selection |
./supex layers |
List layers/tags |
./supex materials |
List materials |
./supex camera |
Show active camera data |
./supex screenshot |
Save a screenshot to disk |
./supex open <path> |
Open .skp model |
./supex save [path] |
Save current model |
./supex export <format> |
Export current scene |
--host,-H: Runtime host (defaultlocalhost)--port,-p: Runtime port (default9876)
--raw/-r JSON output is available on:
evaleval-fileinfoentitiesentityselectionlayersmaterialscamera
--output,-o: Output file path (default: generated under the workspace)--width,-w: Image width (default1920)--height: Image height (default1080)--transparent,-t: Transparent background
Runtime export currently supports:
skpobjstlpngjpgjpeg
./supex status
./supex eval "Sketchup.version"
./supex eval-file /absolute/path/to/script.rb
./supex entities faces --raw
./supex screenshot --width 2560 --height 1440
./supex screenshot --output shots/iso.png --transparent
./supex export obj