Command Line Tools
(These cli tools were formerly part of the serialport
package and have now been moved to their own packages for ease of use.)
All cli tools can be run via npx
or installed globally.
For Example:
#
SerialPort ListThe package @serialport/list
will install the serialport-list
cli tool which lists all available serial ports in different formats.
note
In @serialport/list@8
we renamed comName
to path
.
#
SerialPort ReplThe package @serialport/repl
will install the serialport-repl
cli tool which provides a nodejs repl for working with serialport. This is valuable when debugging.
note
In @serialport/repl@8
we renamed comName
to path
.
You can make use of the serialport-repl
command with;
It will load a serialport object with debugging turned on.
#
SerialPort TerminalThe package @serialport/terminal
will install the serialport-terminal
cli tool which provides a basic terminal interface for communicating over a serial port. ctrl+c
will exit.
note
In @serialport/terminal@8
we renamed echo
to no-echo
and changed the default behavior to locally print what you type to the terminal by default.