https://github.com/rktr1998/zig-wol
A simple wake-on-lan tool written in Zig
https://github.com/rktr1998/zig-wol
command-line wake-on-lan ziglang
Last synced: 11 months ago
JSON representation
A simple wake-on-lan tool written in Zig
- Host: GitHub
- URL: https://github.com/rktr1998/zig-wol
- Owner: rktr1998
- License: mit
- Created: 2025-02-25T21:39:06.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-05T17:54:47.000Z (11 months ago)
- Last Synced: 2025-03-05T18:45:22.575Z (11 months ago)
- Topics: command-line, wake-on-lan, ziglang
- Language: Zig
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - rktr1998/zig-wol - Wake-on-lan CLI written in Zig. (Network / Large Language Model)
README
# Zig wake-on-lan utility
A simple wake-on-lan utility written in Zig. Wakes up a computer in a LAN given its MAC address.
## Features
- Send WOL magic packets to wake up devices on the LAN.
- Cross-platform support for Windows and Linux.
## Usage
Wake a device on your LAN by broadcasting the magic packet.
```pwsh
zig-wol.exe wake
```
Replace `` with the target MAC address (e.g. `9A-63-A1-FF-8B-4C`).
Run `zig-wol help` to display all subcommands and `zig-wol --help` to display specific options.
## Installation
Pre-compiled binaries are distributed with [releases](https://github.com/rktr1998/zig-wol/releases): download the binary for your architecture and operating system and you are good to go!
### Install latest on Windows using PowerShell
```pwsh
Invoke-RestMethod "https://raw.githubusercontent.com/rktr1998/zig-wol/refs/heads/main/install/install-latest-on-windows.ps1" | Invoke-Expression
```
This command donwloads the latest release for your processor architecture and **installs** the program at `C:\Users\%username%\.zig-wol`. To **uninstall** zig-wol you can simply delete this folder.
### Install latest on Linux
```sh
bash <(curl -sSL https://raw.githubusercontent.com/rktr1998/zig-wol/refs/heads/main/install/install-latest-on-linux.sh)
```
This command donwloads the latest release for your processor architecture and **installs** the program at `/home/$USER/.zig-wol`. To **uninstall** zig-wol you can simply delete this folder.
## Build
### Prerequisites
- [Zig (v0.13.0)](https://ziglang.org/download/) installed on your system.
### 1. Clone the Repository
```sh
git clone https://github.com/rktr1998/zig-wol.git
cd zig-wol
```
### 2. Build the Application
```sh
zig build
```
This command compiles the source code and places the executable in the `zig-out/bin/` directory.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.