Author here, this is a refactoring of qr-filetransfer, already discussed in the past [0].<p>Here's how it works: qrcp binds a web server to the address of your Wi-Fi network interface on a random port and creates a handler for it. The default handler serves the content and exits the program when the transfer is complete. When used to receive files, qrcp serves an upload page and handles the transfer.<p>The tool prints a QR code that encodes the text:<p><pre><code> http://{address}:{port}/{random_path}
</code></pre>
Most QR apps can detect URLs in decoded text and act accordingly (i.e. open the decoded URL with the default browser), so when the QR code is scanned the content will begin downloading by the mobile browser.<p>To send one or more files (or directories):<p><pre><code> qrcp /path/to/file
# Or
qrcp send /path/to/file
</code></pre>
To receive one or more files:<p><pre><code> qrcp receive --output ~/Downloads
</code></pre>
[0] <a href="https://news.ycombinator.com/item?id=16647977" rel="nofollow">https://news.ycombinator.com/item?id=16647977</a>