Skip to content
86% off$349 $48.86code BF2026

Docs

Ferryfox docs25 pages

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.

ActionInputs
Send Files to DeviceFiles, Device, Wait Until Sent (on by default)
Send Text to DeviceText, 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:

  1. In Ferryfox, open Settings (⌘,, Command-Comma) and click the Automation tab.
  2. Under Shortcuts, click Open Shortcuts.
  3. Create a new shortcut and search the actions for "Ferryfox".
  4. Add Send Files to Device or Send Text to Device.
  5. Choose the files or the text.
  6. 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.

LinkWhat 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://historyOpens Transfer History
ferryfox:// or ferryfox://openOpens Ferryfox

Parameter details:

  • to= is an alias for device=, and file= is an alias for path=.
  • Paths can start with ~, or you can pass them as file:// 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:

bash
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.

  1. Open Settings (⌘,) and click the Automation tab.
  2. Under Command-line tool, click Install….
  3. 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).
Ferryfox Settings Automation tab showing the command-line tool at /usr/local/bin/ferryfox with Uninstall

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:

bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc

It 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

text
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
OptionWhat it does
-t, --to DEVICEThe receiver: its name or the start of its name, an IP address, or a fingerprint
--timeout SECHow long to wait, in seconds (default 120)
--no-waitDon't wait for the transfer (see ferryfox help)
--jsonWith devices: prints the list as JSON
--text -With send: reads the text from standard input

Examples

bash
ferryfox send --to "Pixel 9" report.pdf

Sends report.pdf to the device named "Pixel 9".

bash
ferryfox send --to Pix ~/Exports/Photos ~/Exports/notes.txt

Sends 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."

bash
pbpaste | ferryfox send --to "Pixel 9" --text -

Sends the text currently on the clipboard as a message.

bash
ferryfox devices --json

Lists 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

CodeMeaning
0Sent
1Failed
2Usage error (bad or missing options)
3Device not found
4Declined by the receiver
5Not accepted in time
6Cancelled
7Ferryfox unavailable

Example for a zsh or bash script:

bash
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" ;;
esac

For 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

MessageFix
"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

MessageFix
zsh: command not found: ferryfoxInstall 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

MessageFix
"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

Every app.
One purchase.