Espruino_cmd? Do you mean https://www.npmjs.com/package/espruino?
If so, there are a bunch of examples on that webpage:
# Connect to Espruno and act as a terminal app (IF Espruino is the only serial port reported)
# Connect to Espruino on the specified port, act as a terminal
espruino -p /dev/ttyACM0
# Write a program to Espruino (IF Espruino is the only serial port reported)
# Otherwise you'll want to specify the exact port first
espruino -p /dev/ttyACM0 myprogram.js
# Write a program to Espruino and drop into a terminal, but then monitor
# myprogram.js for changes and upload it again
espruino --watch myprogram.js
# Load a file into two Espruino boards
espruino -p /dev/ttyACM1 /dev/ttyACM2 mycode.js
# Load a file into Espruino and save
espruino -p /dev/ttyACM0 mycode.js -e "save()"
# Execute a single command on the default serial device
espruino -e "digitalWrite(LED1,1);"
© Espruino, powered by microcosm.
Report a problem