Skip to main content

Required Arguments

--mesh
PathBuf
required
Path to a .stl or .obj mesh file to slice. Can be specified multiple times to load multiple models.
slicer --mesh model.stl output.goo
Multiple models:
slicer --mesh model1.stl --mesh model2.stl output.goo
output
PathBuf
required
Output file path. The extension determines the format:
  • .goo - Elegoo format
  • .ctb - ChituBox encrypted format
  • .nanodlp - NanoDLP format
  • .svg - Vector format
slicer --mesh model.stl output.goo

Platform Configuration

--platform-resolution
Vector2<u32>
default:"11520, 5120"
Resolution of the printer mask display in pixels. Format: width,height
slicer --platform-resolution 11520,5120 --mesh model.stl output.goo
--platform-size
Vector3<f32>
default:"218.88, 122.904, 260.0"
Size of the printer display/platform in millimeters. Format: width,height,depth
slicer --platform-size 218.88,122.904,260.0 --mesh model.stl output.goo

Layer Configuration

--layer-height
f32
default:"0.05"
Layer height in millimeters. Typical values: 0.025mm (high detail) to 0.1mm (fast).
slicer --layer-height 0.05 --mesh model.stl output.goo
--first-layers
u32
default:"3"
Number of initial ‘first layers’. These layers use the first layer exposure configuration for better bed adhesion.
slicer --first-layers 5 --mesh model.stl output.goo
--transition-layers
u32
default:"3"
Number of layers that interpolate from first layer settings to normal layer settings. Provides a smooth transition.
slicer --transition-layers 5 --mesh model.stl output.goo

Regular Layer Exposure

--exposure-time
f32
default:"3.0"
Layer exposure time in seconds for normal layers.
slicer --exposure-time 2.5 --mesh model.stl output.goo
--lift-distance
f32
default:"5.0"
Distance to lift the platform after exposing each regular layer, in millimeters.
slicer --lift-distance 6.0 --mesh model.stl output.goo
--lift-speed
f32
default:"65.0"
Speed to lift the platform after exposing each regular layer, in mm/min.
slicer --lift-speed 80.0 --mesh model.stl output.goo
--retract-speed
f32
default:"150.0"
Speed to retract (move down) the platform after exposing each regular layer, in mm/min.
slicer --retract-speed 180.0 --mesh model.stl output.goo

First Layer Exposure

First layers use different settings to ensure proper bed adhesion.
--first-exposure-time
f32
default:"30.0"
First layer exposure time in seconds. Typically much longer than regular layers.
slicer --first-exposure-time 35.0 --mesh model.stl output.goo
--first-lift-distance
f32
default:"5.0"
Distance to lift the platform after exposing each first layer, in millimeters.
slicer --first-lift-distance 6.0 --mesh model.stl output.goo
--first-lift-speed
f32
default:"65.0"
Speed to lift the platform after exposing each first layer, in mm/min.
slicer --first-lift-speed 50.0 --mesh model.stl output.goo
--first-retract-speed
f32
default:"150.0"
Speed to retract (move down) the platform after exposing each first layer, in mm/min.
slicer --first-retract-speed 120.0 --mesh model.stl output.goo

Model Transformations

These options apply to the most recently specified --mesh and must come after the mesh they modify.
--position
Vector3<f32>
default:"0, 0, 0"
Location of the bottom center of the model bounding box. The origin is the center of the build plate. Format: x,y,z
slicer --mesh model.stl --position 100,50,0 output.goo
--rotation
Vector3<f32>
default:"0, 0, 0"
Rotation of the model in degrees (roll, pitch, yaw). Format: x,y,z
slicer --mesh model.stl --rotation 45,0,0 output.goo
--scale
Vector3<f32>
default:"1.0, 1.0, 1.0"
Scale of the model along the X, Y, and Z axes. Format: x,y,z
slicer --mesh model.stl --scale 2,2,2 output.goo

Preview

--preview
PathBuf
Path to a preview image. Will be scaled as needed and embedded in the output file (for formats that support previews: .goo, .ctb, .nanodlp).
slicer --mesh model.stl --preview thumbnail.png output.goo

Complex Example

Combining multiple options for a complete workflow:
slicer \
  --platform-resolution 11520,5120 \
  --platform-size 218.88,122.904,260.0 \
  --layer-height 0.05 \
  --first-layers 5 \
  --transition-layers 3 \
  --exposure-time 2.5 \
  --first-exposure-time 35.0 \
  --lift-distance 6.0 \
  --lift-speed 80.0 \
  --retract-speed 180.0 \
  --preview thumbnail.png \
  --mesh teapot.stl --position 0,0,0 --scale 2,2,2 --rotation 0,0,45 \
  --mesh cube.stl --position 100,50,0 --scale 1.5,1.5,1.5 \
  output.goo
This command:
  • Configures platform for a specific printer
  • Sets layer height to 0.05mm
  • Uses 5 first layers with 3 transition layers
  • Customizes exposure and movement speeds
  • Adds a preview image
  • Loads two models with different transformations
  • Outputs to Elegoo .goo format

Build docs developers (and LLMs) love