How to get duration and filament usage on CLI?
 
Avisos
Vaciar todo

How to get duration and filament usage on CLI?  

  RSS
Nia
 Nia
(@nia)
Miembro
How to get duration and filament usage on CLI?

I'm trying to use the prusa-slicer cli interface to generate time and filament usage estimates for a lot of stl files in a big project of mine.

I can slice the stl files successfully, but I don't see any ways to get the resulting time and filament usage on stdout and didn't spot anything in the help output.

Any hints?

Respondido : 12/03/2026 8:32 pm
Diem
 Diem
(@diem)
Illustrious Member

One workaround is to include it in the gcode file name with 

--output-filename-format

(you will need to use --help-fff if you don't see this in your -help output.)

Or, if you want to capture the info for a database the values are in every text format g-code file in the comment section at the end.  So you could pipe the output file through grep or use a custom post-processing script...

Cheerio,

Respondido : 13/03/2026 3:33 am
Compartir: