CLI Tools
Automate WakeLink with the Python CLI, local agent registry, account subcommands, and EWSP-encrypted operational commands.
Note
What you'll learn: install the CLI, register local or cloud agents, run wake and status commands, and authenticate
account subcommands with environment variables. Install
1 Install the package
pipx install wakelink-cli
# or
pip install wakelink-cli2 Install from source if needed
git clone https://git.deadboizxc.org/wakelink/wakelink-cli.git
cd wakelink-cli
pip install -e .
pip install -e ../ewsp/bindings/pythonRegistry
The CLI stores known agents in agents.json. It reads the current directory first, then ~/.wakelink/agents.json.
# Local TCP agent
wakelink add desk --ip 192.168.1.50 --token "$AGENT_TOKEN"
# Cloud relay entry
wakelink register esp32-cloud \
--token "$AGENT_TOKEN" \
--mode cloud \
--api-url https://wakelink-project.org/api/v1
# Inspect or remove entries
wakelink list
wakelink remove deskOperations
| Command | Purpose |
|---|---|
| wakelink ping <agent> | Round-trip check against the agent |
| wakelink info <agent> | Return firmware, uptime, and network details |
| wakelink capabilities <agent> | Show advertised agent capabilities |
| wakelink wake <agent> <mac> | Send a Wake-on-LAN packet through the selected agent |
| wakelink reboot <agent> | Restart the agent |
| wakelink ota <agent> <url> | Trigger an OTA update from a hosted binary |
wakelink ping desk
wakelink info desk
wakelink capabilities desk
wakelink wake desk AA:BB:CC:DD:EE:FF
wakelink ota desk https://wakelink-project.org/downloads/wakelink-esp32.bin \
--sha256 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdefAccount Commands
The account group talks to the relay REST API and can use explicit options or matching environment variables.
export WAKELINK_SERVER=https://wakelink-project.org
export WAKELINK_TOKEN=wl_xxxxxxxxxxxxxxxxxxxx
wakelink account info
wakelink account telegram-link
wakelink account telegram-unlinkEnvironment Variables
| Variable | Purpose |
|---|---|
| WAKELINK_SERVER | Relay base URL for `wakelink account ...` commands |
| WAKELINK_TOKEN | WakeLink API token used by `wakelink account ...` commands |