Hi,
I'd suggest you see the HOWTO document that describes how to control S32DS project from command line.
it's available in S32 Design Studio: (c:\NXP\S32DS.3.6.3\S32DS\help\resources\howto\HOWTO_S32_Design_Studio_Command_Line_Interface.pdf)
I've attached to the post for your convenince.
Hope it helps.
Stan