Page 1 of 1

Way to generate code from command line

Posted: 25 Feb 2015, 16:05
by Maarten_BE
Is it possible to generate the code of a model from CLI without starting the GUI and clicking on the blue wheel?

I am looking into setting up an automated build environment and I would like to include the code generation as part of the automated build on a headless server.

Re: Way to generate code from command line

Posted: 26 Feb 2015, 15:44
by Support Team
Hi,

Yes, this feature is available but not officially supported and documented. We use it only internally at the moment for automated tests of UaModeler and the code generation.


You can start the UaModeler from command line with:
uamodeler -g <ProjectName>.tt2pro

This starts the UaModeler, loads the project <ProjectName> generates code and closes the UaModeler.


Best Regards,
Unified Automation Support Team

Re: Way to generate code from command line

Posted: 08 Aug 2018, 12:14
by felix.kretschmer
Hi,
does this also works for xml nodeset exports?
Is there a command line switch for that?

Thanks.

Re: Way to generate code from command line

Posted: 26 Nov 2018, 11:47
by chuber50
felix.kretschmer wrote:Hi,
does this also works for xml nodeset exports?
Is there a command line switch for that?

Thanks.
We would as well need such a function. +1

Thanks

Re: Way to generate code from command line

Posted: 22 Oct 2020, 15:45
by portelajoao
chuber50 wrote:
26 Nov 2018, 11:47

We would as well need such a function. +1

Thanks
This would be really usefull in order to create our pipeline. Is there any command that allows to:
  • publish model
  • export XML
  • export CSV

Re: Way to generate code from command line

Posted: 28 Oct 2020, 19:20
by Support Team
Hello,

The comandline processing is just a internal feature that is used for the testing of the code generation.

Since the main use case of UaModeler is to create information models there are no plans for supporting a command line processing for the export and publishing features, which would only be useful for existing model.