Command Line Parameters or Response file for cuba-cli

Hi,

Is it possible to pass prompt response of cuba-cli from the command line or from a response file ?
This way it would be possible to create cuba application in a non-interactive way or unattended way.

Thanks,

Hi,

It is already available, just use cuba-cli as follows:

cuba-cli create-app -PprojectName=cool-hydra \
    -Pnamespace=ch -ProotPackage=com.company.coolhydra \
    -PplatformVersion=6.9.2 -PcustomPlatformVersion=6.9.2 \
    -Pdatabase=HSQLDB

It is not that friendly for now and requires all the parameters, but we are planning to improve it in the future.

Hi Artamonov,

Thanks for your quick support.
It worked perfectly.
Now I am having another issue to pass value of Change Prefix in the command:

cuba-cli app-component -PchangePrefix=y -PmodulePrefix=myprefix

It expects Boolean value for changePrefix and it does not accept any of ‘y’ or ‘1’
How can I pass this Boolean value in this command ?

Regards,
Nazrul Islam

Unfortunately, there is a bug right now: Unable to pass boolean values in non-interactive mode · Issue #133 · cuba-platform/cuba-cli · GitHub

Please wait for the next release, we will include this fix

OK, Thanks for this Information.
I will be waiting for the next release.

Thanks,