Darktable command line

Hello

I need some help. I try to do a simple task, executed on the command line.

Specifically, I would like to apply a “Perspective Correction” picture with automatic fit vertical perspective.

Something like: darktable-cli.exe input.jpg output.jpg xxxx

How can I do this?
Thank you

Make an xmp file containing the modules you want to use. Then do darktable --xmp my.xmp image.jpeg

See “Overview” in the darktable usermanual

I doubt it will apply automatic perspective correction - it just applies the parameters used in the xmp.

I tried various options, but I didn’t succeed