Hello @pekor ,
You are correct, the command should use the 's32ds.exe'.
I was able to perform the following command without the IDE UI launching:
C:\NXP\S32DS.3.4\eclipse>s32ds.exe -noSplash -consoleLog -application com.nxp.swtools.framework.application -HeadlessTool Peripherals -Load C:\Users\<userid>\workspaceS32DS.3.4\S32CT_commandline\S32CT_commandline_M7_0\S32CT_commandline_M7_0.mex -ExportSrc C:\s32ctgen
I created an empty project 'S32CT_commandline_M7_0' from within S32DS IDE UI and added a driver from the Peripherals tool and generated the code. Then I used the above command to generate the code again to the 'C:\s32ctgen' folder. There was no output to the screen, but the code was generated in the s32ctgen folder as expected. If you want to see the log of the command, you can edit the 's32ds.ini' file located in 'C:\NXP\S32DS.3.4\eclipse' folder and add to the end of the file:
-Djava.util.logging.config.file=configuration/logging.properties
Then you can look for the log file in 'C:\Users\<userid>\.nxp\swtools.log'
Hope it helps,
Mike