Written in the Zig programming language, zig-wol is a CLI utility for sending wake-on-lan magic packets to wake up a computer in a LAN given its MAC address.
Wake a machine on your LAN by broadcasting the magic packet: replace <MAC>
with the target MAC address (e.g. 9A-63-A1-FF-8B-4C
).
zig-wol wake <MAC>
Create an alias for a MAC address.
zig-wol list # display all aliases
zig-wol alias <NAME> <MAC> # create an alias
zig-wol wake <NAME> # wake a machine by alias
Run zig-wol help
to display all subcommands and zig-wol <subcommand> --help
to display specific options.
Pre-compiled binaries of zig-wol are distributed with releases: download the binary for your architecture and operating system and you are good to go!
Invoke-RestMethod "https://raw.githubusercontent.com/rktr1998/zig-wol/refs/heads/main/install/install-latest-on-windows.ps1" | Invoke-Expression
This command downloads the latest release for your processor architecture and installs the program at C:\Users\%username%\.zig-wol
. To uninstall zig-wol, simply delete this folder.
bash <(curl -sSL https://raw.githubusercontent.com/rktr1998/zig-wol/refs/heads/main/install/install-latest-on-linux.sh)
This command downloads the latest release for your processor architecture and installs the program at /home/$USER/.zig-wol
. To uninstall zig-wol, simply delete this folder.
git clone https://github.com/rktr1998/zig-wol.git
cd zig-wol
zig build
This command compiles the source code and places the executable in the zig-out/bin/
directory.
This project is licensed under the MIT License. See the LICENSE file for details.