wakey

wakes up computer(s) on LAN, keeps a list of computers handy

Usage no npm install needed!

<script type="module">
  import wakey from 'https://cdn.skypack.dev/wakey';
</script>

README

command line utility to wake up computer(s) on LAN from sleep. It keeps a list of computers so you don't have to remember the MAC addresses.

Usage

npm install -g wakey to install wakey and make 'wakey' available as a command line tool:

  • wakey help - displays help
  • wakey list - list all computer entries saved in the wakey database, which is a JSON file stored at ~/wakey.json
  • wakey add <name> <MAC> - adds an entry to the database
  • wakey delete <name> - deletes an entry from the database
  • wakey <name> - wakes up a computer

Note

The target computer(s) need to be configured to enable the Wake on LAN feature. This StackExchange page provides some information on how to configure it. https://superuser.com/questions/696894/rdp-wake-on-lan-in-lan-environment

Example

Assume the computer you want to wake up has MAC address of 12:34:56:78:AB:CD, and is already configured to wake on LAN.

# install wakey
npm install -g wakey

# add the target to wakey database
wakey add my-comp1 12:34:56:78:AB:CD

# wake up the target
wakey my-comp1
... wakey sends the wake packet to wake up the computer ...