Notifications
Clear all
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?
Publié : 12/03/2026 8:32 pm
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,
Publié : 13/03/2026 3:33 am