airdrop CLI
I was surprised there wasn’t already an AirDrop CLI on macOS, so I made one. A tiny CLI that opens the AirDrop sharing flow from the terminal. airdrop file.txt and the
system AirDrop sheet pops up.
It’s a few lines of Swift, built with SwiftPM. Install it with ./install.sh and it drops a binary into ~/bin/airdrop.
airdrop /path/to/file
airdrop /path/to/file1 /path/to/file2
Source on GitHub.