wake-cli

0.3.2 • Public • Published

wake-cli

NPM Version NPM Downloads Build Status Dependencies Status Coveralls Status

Wake up your devices

A small command line tool for managing the MACs of your devices and sending out the magic packets.

"Terminal Demo"

Installation

As simple as [sudo] npm install -g wake-cli

You might have to enable the Wake on lan in the BIOS of your computer. Note that not every network card has the WOL capability! You will have to do your research. Try this for start.

Usage

Running the command above installs the program into your $PATH. The tool creates a .wakefile file in your home directory which is used as a database for the MACs.

Up

wake up <MAC>|<name>

Use this command to wake up a device using a specific mac or the name stored in the database. You can use a list of macs/names separated by spaces to wake up several devices at once.

wake up <MAC>|<name> -c <seconds>

Continuously sends packets at a given interval. The default is 120 seconds.

List

wake list

Use this command to print a small table of all the saved MACs and the names you gave them.

  • wake list -s <column> - sort the list using the given column name

  • wake list -r - reverse the order

Add

wake add <name> <MAC>

This command creates a new device in the database and saves it's MAC. The device will now appear in the list and you can use its name instead of the MAC.

Rm

wake rm <name>

If you want to remove a device from the database you can do so with this command. It will ask you for a confirmation and then the device is permanently deleted from you contact list.

Options

For any command you can use the -h option to get help with it.

  • -h - displays help text
  • -v - prints the version number

Contribution

Notice

This project is still in development. There might be large changes in the interface and successive version might not be compatible. I am not responsible for any emotional distress caused by the usage of this software!

Package Sidebar

Install

npm i wake-cli

Weekly Downloads

8

Version

0.3.2

License

MIT

Last publish

Collaborators

  • zpiman