A simple Wake-on-LAN (WoL) command-line interface (CLI) tool written in Go. WoL allows you to remotely power up devices on your local network.
██ ██ ██████ ██
██ ██ ██ ██ ██
██ █ ██ ██ ██ ██
██ ███ ██ ██ ██ ██
███ ███ ██████ ███████
To build the Wake-on-LAN CLI tool, ensure you have Go installed on your system. Run the following command in your terminal:
make
This will create an executable named wol
.
./wol -m <MAC_ADDRESS>
Replace <MAC_ADDRESS>
with the MAC address of the target device you want to wake up.
./wol -m 00:11:22:33:44:55
Add config.json
file in the root directory with the following format:
{
"macAddress": "00:11:22:33:44:55"
}
- -m: MAC address of the target device (required).