hasancivili Instructions on how to export via CLI can be found here, but you can use the more convenient export scripts published in our spine-scripts repository:
EsotericSoftware/spine-scriptstree/master/export
These were just recently added and we are in the process of preparing a short video and blog post showing how to use them, but we are not ready to publish them yet. However, the instructions already in the README are quite detailed, so I would think that if you read them, you should have no problem using it.
If you have any questions, please do not hesitate to ask.