Warp is a Rust software package that makes sending content between computers super easy using entryption and simple one-time word-based or QR-code authentication keys. Because of the underlying protocol, transfers will occur over local LAN or internet depending on where the machines involved are located. The software allows users to send and recieve files between Linux, OSX, Windows and smart phones.
I was interested in using Warp on the command line for simple low-setup file transfers in and out of my office, but it turns out that the underlying protocol that Warp leverages is also an open-source project and it already includes a CLI (magic-wormhole).
Installation #
Magic-Wormhole can be installed with the usual package managers on Linux. For example on Ubuntu (17.04 and higher), it can be installed as follows:
|
|
Or via Python’s pip package manager:
|
|
Given that Warp is available as a flatpak, and magic-wormhole is also in Ubuntu’s snap package repository, there is probably not problem installing into a Docker or Singularity/Apptainer container or image.
Commands #
To send and recieve data, the wormhole send
and wormhole receive
commands can be called. Tab-completion is even supported for commands and sub-commands (as well as for the wormhole authentication codes on the receiving end.)
Example (from the docs) #
Sender:
|
|
Receiver:
|
|