How to package for HTML5 using command line in Linux?

Hi all,

is there a easy way to package my game for HTML5 in Linux using command line?

One of the reasons why I would prefer to use scripts is because I could automate this process.

Thank you in advance for the answers.

You can use the -targetplatform command line argument for this.
For example my complete command line for packaging would be:

./RunUAT.sh BuildCookRun -project=/path/to/game.uproject -allmaps -clientconfig=Shipping -cook -package -pak -stage -unattended -utf8output -build -nop4 -targetplatform=HTML5

Optionally you might want to add -iterate for incremental builds.

Thank you very much, Mueller. It worked.