Use the command line to build a diagram

Is it possible to build diagrams using the bonita CLI?

What I want to accomplish is to take all the diagram files stored in GIT “bos” files and convert them into bar files. Finally, import them to the server.

The import part should be straight forward as it is nicely document here. However I am not sure if I can build the diagrams to bar files using the command line.

https://github.com/rastaman/bonita-cli