Darktable command line


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 https://darktable.gitlab.io/doc/en/overview_chapter.html#darktable_cli_commandline_parameters

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