Ferryfox CLI, Shortcuts and URL scheme reference
Automate Ferryfox: Shortcuts actions and timeouts, ferryfox:// links, how to install the ferryfox CLI, every command and option, exit codes, and error fixes.
Updated 7 min read
On this page
This page shows how to send with Ferryfox without opening its window. You can use two Shortcuts actions, ferryfox:// links, or the ferryfox CLI (the ferryfox command in Terminal). It covers every option, exit code and error message.
Before you start
- Finish Ferryfox's first-run setup, including the step that allows Local Network access. Until you do, automation stops with "Finish setting up Ferryfox first".
- The other device must be on the same network as your Mac, with Ferryfox or the free transfer app open.
- The receiver still decides. Someone has to click Accept on the other end unless the receiver accepts automatically. That happens with a paired Ferryfox Mac or when the receiver has its own auto-accept setting turned on.
- Ferryfox can't send to a receiver that requires a PIN, except a paired Ferryfox Mac. This applies to automation too. The send fails with "PIN required or wrong PIN".
Shortcuts actions: Send Files and Send Text to Device
Ferryfox adds two actions to the Shortcuts app.
| Action | Inputs |
|---|---|
| Send Files to Device | Files, Device, Wait Until Sent (on by default) |
| Send Text to Device | Text, Device |
Both actions run in the background and don't open the Ferryfox window. When a send works, the action returns a message such as "Sent 2 files to Pixel 9." When it fails, the shortcut shows an error.
To build a shortcut:
- In Ferryfox, open Settings (⌘,, Command-Comma) and click the Automation tab.
- Under Shortcuts, click Open Shortcuts.
- Create a new shortcut and search the actions for "Ferryfox".
- Add Send Files to Device or Send Text to Device.
- Choose the files or the text.
- Choose a Device.
The Device list shows nearby devices first, then remembered and trusted ones. You can pick a device that isn't on the network right now, but it must be reachable when the shortcut runs.
Timeouts
- 15 seconds to find the device. If it isn't found, you get "Couldn't find “X”. Make sure it's on the same network with its app open."
- 120 seconds for the receiver to accept. After that you get "
<name>didn't accept in time."
Files sent from Shortcuts are copied temporarily to ~/Library/Application Support/Ferryfox/Outbox/. Ferryfox deletes these copies after 24 hours.
App Shortcut phrases
Ferryfox registers two App Shortcuts, so you don't have to build anything to use them:
- "Send files with Ferryfox"
- "Send text with Ferryfox"
The phrases are always in English, even when Ferryfox runs in another language.
The ferryfox:// URL scheme
A ferryfox:// link never sends anything by itself. Ferryfox always opens its picker so you can confirm the send. You can keep these links in notes, documents or launcher apps without risk of sending something by accident.
| Link | What it does |
|---|---|
ferryfox://send?device=<name>&path=<file> | Prepares a file for that device and opens the picker for you to confirm |
ferryfox://send?device=<name>&path=<file>&path=<file2> | The same, with several files (repeat path=) |
ferryfox://send?device=<name>&text=<text> | Prepares text for that device and opens the picker |
ferryfox://history | Opens Transfer History |
ferryfox:// or ferryfox://open | Opens Ferryfox |
Parameter details:
to=is an alias fordevice=, andfile=is an alias forpath=.- Paths can start with
~, or you can pass them asfile://URLs. - A link sends either files or text, not both.
- Percent-encode spaces and special characters. For example, a space becomes
%20.
To test a link from Terminal:
open "ferryfox://send?device=Pixel%209&path=~/Desktop/report.pdf"This hands the link to Ferryfox, which opens its picker for report.pdf and "Pixel 9". Nothing is sent until you confirm.
A bad link shows one of two errors:
- "Nothing to send" means the link has no file or text.
- "The link points to files that don't exist on this Mac." means a path is wrong.
Install the ferryfox CLI
The ferryfox CLI ships inside the app at Ferryfox.app/Contents/Helpers/ferryfox. Installing it creates a symbolic link to that file, so you can type ferryfox in Terminal.
- Open Settings (⌘,) and click the Automation tab.
- Under Command-line tool, click Install….
- In the "Install the ferryfox command" alert, choose a location:
- Install in /usr/local/bin…: this folder is already on the default macOS
PATH. macOS asks for your administrator password only if the folder isn't writable. - Install in ~/.local/bin: needs no password, but you must add the folder to your shell's
PATH(see below).
- Install in /usr/local/bin…: this folder is already on the default macOS


After installing, Settings shows the path and an Uninstall button.
Ferryfox never overwrites a file it didn't create. If another program already uses /usr/local/bin/ferryfox, you get "Another program already uses /usr/local/bin/ferryfox." Choose ~/.local/bin instead.
Add ~/.local/bin to your PATH (zsh)
If you chose ~/.local/bin, Ferryfox reminds you: "Add ~/.local/bin to your shell's PATH to run ferryfox by name." zsh is the default shell on macOS. This command adds the folder to your PATH for new Terminal windows:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcIt appends one line to ~/.zshrc. To undo it, open ~/.zshrc in a text editor and delete that line.
Open a new Terminal window, then run ferryfox --version to check that it works.
If you move or delete Ferryfox
The installed command is a link to a path inside the app.
- If you move
Ferryfox.app: click Uninstall, then Install… again. - Before you delete Ferryfox: click Uninstall first, so no broken link is left behind.
Commands and options
ferryfox send --to DEVICE FILE… send files or folders
ferryfox send --to DEVICE --text TEXT send a message or link (--text - reads stdin)
ferryfox devices [--json] list nearby devices (alias: list)
ferryfox help
ferryfox --version| Option | What it does |
|---|---|
-t, --to DEVICE | The receiver: its name or the start of its name, an IP address, or a fingerprint |
--timeout SEC | How long to wait, in seconds (default 120) |
--no-wait | Don't wait for the transfer (see ferryfox help) |
--json | With devices: prints the list as JSON |
--text - | With send: reads the text from standard input |
Examples
ferryfox send --to "Pixel 9" report.pdfSends report.pdf to the device named "Pixel 9".
ferryfox send --to Pix ~/Exports/Photos ~/Exports/notes.txtSends a folder and a file to the device whose name starts with "Pix". If several devices match, you get "“Pix” matches A, B and C. Use the full name."
pbpaste | ferryfox send --to "Pixel 9" --text -Sends the text currently on the clipboard as a message.
ferryfox devices --jsonLists nearby devices as JSON, for scripts that pick a device.
How the CLI behaves
- If Ferryfox isn't running, the CLI opens it hidden and waits up to 20 seconds for it.
- In a terminal, it shows progress such as "Sending… 42%".
- On success, it prints "Sent N files to
<name>." or "Sent the text to<name>." - It talks to the app over a Unix socket that only your user account can use.
What the CLI can't do
The CLI only sends and lists devices. It has no commands to receive files, create browser links or read history.
Ferryfox also has no AppleScript dictionary. It has no "Create Share Link" or "Set Visibility" Shortcuts actions.
Exit codes for scripts
| Code | Meaning |
|---|---|
| 0 | Sent |
| 1 | Failed |
| 2 | Usage error (bad or missing options) |
| 3 | Device not found |
| 4 | Declined by the receiver |
| 5 | Not accepted in time |
| 6 | Cancelled |
| 7 | Ferryfox unavailable |
Example for a zsh or bash script:
ferryfox send --to "Studio Mac" ~/Exports/build.zip
code=$?
case $code in
0) echo "Sent" ;;
3) echo "Studio Mac wasn't found" ;;
4) echo "Declined" ;;
5) echo "Nobody accepted within the timeout" ;;
*) echo "Failed with exit code $code" ;;
esacFor unattended sends between your own Macs, pair them first in Settings ▸ Devices (see trusted devices, pairing and PINs). Paired Macs skip the Accept prompt, so a send doesn't wait for someone to click Accept.
Automation errors and fixes
Shortcuts, links and the CLI
| Message | Fix |
|---|---|
| "Finish setting up Ferryfox first" / "Open the Ferryfox window and allow it to find devices on your network." | Open Ferryfox and complete setup, including Local Network access |
| "Open Ferryfox once and allow it to find devices on your network." | Same as above, then try again |
| "Couldn't find “X”. Make sure it's on the same network with its app open." | Open the transfer app on the other device. If it still isn't found, run the troubleshooter (Help ▸ Can't See a Device…) |
| "“X” matches A, B and C. Use the full name." | Pass the full device name, an IP address or a fingerprint |
"<name> didn't accept in time." | Accept sooner on the receiver, or raise --timeout in the CLI |
| "There's nothing to send." | Check the files or text you passed in |
"Couldn't send to <name>: PIN required or wrong PIN" | Ferryfox can't enter a PIN. Turn off the PIN on the receiver. If the receiver is a Ferryfox Mac, you can pair the two Macs instead |
"Couldn't send to <name>: The device is busy with another transfer" | The receiver already has one transfer running and one waiting. Retry later |
CLI only
| Message | Fix |
|---|---|
zsh: command not found: ferryfox | Install the tool from Settings ▸ Automation, or add ~/.local/bin to your PATH |
| "Couldn't open Ferryfox. Is it installed?" | Check that Ferryfox.app is in Applications. If you moved it, reinstall the command |
| "Ferryfox didn't respond. Open it once, then try again." | Open Ferryfox yourself, then run the command again |
| "Lost the connection to Ferryfox." / "Ferryfox stopped responding." | The app stopped answering during the send. Reopen Ferryfox and retry |
| "No such file: X" | Check the path, and quote paths that contain spaces |
| "Standard input was empty." | Nothing was piped into --text - |
| "Send either files or --text, not both." | Split it into two commands |
| "Nothing to send: list files or use --text." / "--text is empty." | Add files or text |
| "Unknown option: …" / "Unknown command “X”. Try “ferryfox help”." | Check the spelling against ferryfox help |
Installing the CLI
| Message | Fix |
|---|---|
| "The command-line tool is missing from this copy of Ferryfox." | Download Ferryfox again from macsuite.app |
| "Another program already uses /usr/local/bin/ferryfox. …" | Choose Install in ~/.local/bin instead |
| "Couldn't change /usr/local/bin." | Choose Install in ~/.local/bin, which needs no password |
| "Couldn't install the command in ~/.local/bin." | Try Install in /usr/local/bin… instead |