I have found myself using the spark cli more and more these days.
I have been using
spark compile *directoryname*
Then once I get the firmware bin file back, i am doing
spark flash corename firmware-xxxxx.bin
I got sick and tired of tracking down the newest firmware binary filename each time…so i used this fun little trick. it always flashes the newest firmware-xxxx.bin file in the current directory.
spark flash *corename-replaceme* `ls -tr firmware* | tail -1`
I hope that helps someone shave a few seconds off their spark dev time!