I was playing a bit with the new kicad-cli
I saw some issues that could be improved.
When the sch is exported as svg I can specify a folder to put the file inside with -o flag, but not the file_path. Also if the schematic has multiple pages, it exports all of them inside of that folder if the -o flag is passed or in the current folder if it is not.
The flag -o could specify the filename if a single .kicad_sch is passed and export just that file. it could export all the pages at once as it is doing if .kicad_pro is passed instead. In the latter case, the -o can set the dir_path as it is doing
It would be nice to have the option to list schematic pages. Maybe something like
kicad-cli sch pages
A similar thing happens when exporting pcb layers to svg. I have to specify which layer I am exporting… most of the time people would like to export all layers in different files. For that, a flag to set the prefix of the filename would be nice, and then the layer name or id could be added to the filename
Also, a way to list the used layers would be nice to have. Something like
kicad-cli pcb layers
Also, why do we need a separated
kicad-cli instead of just using kicad? If you pass the command line flags like pcb/sch then it should run the command line actions and then exit.