Skip to content
Edith

Docs

Command reference

Wayline

Wayline sends and receives files and text with nearby devices that run LocalSend. Enable wayline, then use ed invoke. Every payload is a JSON object. Devices are named by the id (the certificate fingerprint) in snapshot.devices, and transfers by the id in snapshot.transfers.

Terminal
ed invoke wayline wayline.readed invoke wayline wayline.receive --json '{"on":true}'ed invoke wayline wayline.send --json '{"device":"<fingerprint>","text":"Hello"}'ed invoke wayline wayline.accept --json '{"id":"<transfer id>","saveToShelf":true}'

Operations

Every operation returns the state unless noted: snapshot (identity, devices newest first, transfers newest first, receiving, limit in bytes, folder, issue), settings (alias, minutes, limitMB), receiveUntil, pinned, listening, discovering and port. Dates are ISO 8601.

Operation Payload Result
wayline.read {} The state
wayline.receive on, optional pinned Starts or stops receiving. Without pinned: true it turns off after settings.minutes
wayline.discover {} Announces this Mac and listens for devices for one minute
wayline.add address, optional port Registers with the device at that local address and adds it to devices
wayline.send device, any of paths (absolute files or folders), text, clipboard: true, shelf (Shelf item IDs) Starts a send. The other device has to accept it
wayline.accept id, optional saveToShelf Accepts a waiting incoming request
wayline.decline id Declines a waiting incoming request
wayline.cancel id Cancels a waiting or running transfer in either direction
wayline.saveToShelf id Adds the received files or text of a transfer to the Shelf
wayline.text id, optional item Returns {"text": ...} for a received message
wayline.shelf {} Returns the Shelf items (id, name, path) that can be sent
wayline.forget device Removes a device from devices
wayline.history.clear {} Clears finished transfers. Received files stay in snapshot.folder
wayline.settings settings with alias, minutes (5, 10, 30 or 60) and limitMB (100, 1024, 4096 or 16384) Saves the receive options

A transfer has id, device, fingerprint, address, incoming, createdAt, updatedAt, phase (waiting, transferring, completed, declined, cancelled, failed), items, message and saveToShelf. Each item has file (the LocalSend file object), bytes, phase, path for a saved file, text for a received message and shelved.

actions.catalog lists receive.start, receive.stop, and clipboard:<fingerprint> and shelf:<fingerprint> for devices seen in the last 30 days, for Bifrost, Launchweave and Switchyard. Run one with actions.perform and {"actionID":"receive.start"}.