This is a command line tool that allows you to share files and URLs with Apple devices using AirDrop from your terminal.
brew install vldmrkl/formulae/airdrop-cli
or
brew tap vldmrkl/formulae
brew install airdrop-cli
git clone https://github.com/vldmrkl/airdrop-cli.git
cd airdrop-cli
make install
To airdrop files, run:
airdrop /path/to/your/file
You can also airdrop URLs:
airdrop https://apple.com/
You can pass as many paths as you want. As long as theese file URLs are correct, the command will work.