How to archive pages with dynamic content describes a technique for archiving pages and viewing them later. We extend that concept here by describing how to automate the collection of the archive.
You will need a request parameter for each parameter you want to set explicitly.
You will also need the export request
Construct a Confluence Command Line Interface action string similar to:
--action renderRequest --space Example --title "test" --requestParameters <your request string>
Get this working from a command line first!
Example taking the default parameters: --requestParameters run_1=export