tty-airdrop is a lightweight command-line tool for macOS that allows you to send files over AirDrop directly from the terminal.
- Send files to nearby Apple devices via AirDrop
- No need to open Finder or use GUI manually
- Easy to integrate into scripts or automation tools
- macOS 10.10 or later
- AirDrop must be enabled
# Compiling
swiftc main.swift -o airdrop -framework AppKit
# Move the compiled binary to a directory in your PATH
sudo mv airdrop /usr/local/bin
# (Optional) Disable certain input methods if you encounter issues
# such as console output like:
# 2025-07-08 18:43:58.773 airdrop[28187:1118775] +[IMKClient subclass]: chose IMKClient_Legacy
echo "export IMKInputEnabled=NO" >> ~/.bashrc
source ~/.bashrcairdrop <file>This project is licensed under the MIT License - see the LICENSE file for details.