open sketch file mac

Shell
sketchtool export artboards --formats="pdf" my_file.sketch
Source

Also in Shell: