Command Line Interface (CLI) and non interactive mode.
Running Shelly Scanner from a terminal with the command
java -jar <path completo>\shellyscan-x.x.x.jar you can add some parameters; some of these will launch the
normal interface, modifying some behaviors; others, however, will not launch the graphical interface and are intended primarily for use within OS scripts.
The first parameters group allow you to force the search mode for devices on the network at startup, ignoring the normal configuration:
- -fullscan (o -full) searches the devices using the mDNS service considering any network interfaces;
- -localscan (o -local) searches the devices using the mDNS service on the main network interface;
- -ipscan (or -ipscan0 or -ip or -ip0) followed by a parameter with the format x.y.z.a-b where x.y.z is the network prefix, a and b are respectively the first and last address to be verified; performs IP search (giving up the ability to track all battery-powered devices that are not normally active);
- -ipscan<n> or -ip<n> can be used for multiple intervals where n are consecutive integers;
- -noscan just shows the archive.
These parameters can be combined with additional options that make Shelly Scanner non-interactive (the graphical interface does not start, the command is executed and the application terminates):
- -list performs a search and lists the found devices on the terminal; this parameter can be followed by ip (in which case only the IPs are listed) or full (in which case the IPs are listed along with a device description);
- -backup followed by the path of an existing directory: backs up all the devices it finds storing the produced files in the specified directory;
- -restore followed by a parameter that identifies an existing directory; restores all devices it finds for which the corresponding backup file exists;
- finally the parameter -graphs purpose is described on the page dedicated to charts.