Build app from outside leaf shell with a command line (make file)

Hi, I need to build my legato application (legato v 19.x) via a commandline, but outside from leaf shell.

I was hoping I could pass a command line to leaf to excecute… but it looks like I need to re-create the leaf shell environment from my bash file to then be able to build my application.

Is there an easier way? I cannot use VSCode and I’ve not worked out how to use the leaf shell from a sh file…

Thanks,

You can see this sample:

The better solution is to read the docs (which I clearly did not do properly) and use the

leaf shell -c “[COMMAND LINE HERE]”

command with required command line passed in using the -c argument…

I have a build script that I call here and it works well…