PrusaSlicer CLI: headless batch slicing STL to gcode

domain: prusa3d.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Export the desired print/printer/filament profile settings from the PrusaSlicer GUI to an .ini config file, since the CLI does not read GUI-managed profile storage directly.
  2. Invoke the CLI binary (prusa-slicer on Linux/macOS, prusa-slicer-console.exe on Windows) with --load <config.ini> and the input model path.
  3. Use --slice/-g to produce gcode, with --output specifying an exact output path or --output-filename-format for a naming pattern.
  4. Use --export-sla instead of the FFF flags when targeting SLA/resin printers, since SLA export is handled differently.
  5. Pass repeated -D key=value overrides on the command line to vary individual settings per batch job without editing the ini files.

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans