Owlfiles CLI — Command Line

Owlfiles ships with a built-in command line interface. List, search, copy, move and delete files across every Owlfiles connection — local disk, SMB, FTP, SFTP, WebDAV, NFS, and clouds like Google Drive, OneDrive and Dropbox — straight from Terminal.

Scripting & automation Reuses your saved logins Works across connections

Up and running in seconds

The CLI is the Owlfiles application binary itself — it reuses the connections and saved logins you already set up in the app, so there is nothing extra to configure.

Run it from Terminal using its full path:

/Applications/Owlfiles.app/Contents/MacOS/Owlfiles connections

To save typing, add a shell alias. For the default zsh shell, add this to ~/.zshrc, then open a new Terminal window:

# add to ~/.zshrc, then open a new Terminal window alias owlfiles="/Applications/Owlfiles.app/Contents/MacOS/Owlfiles"

After that, you can simply type owlfiles — the examples below assume this alias.

Addressing files

Most commands take an address in the form <connection>:<path>, where connection is the name shown by owlfiles connections.

  • MyNAS:/Documents/report.pdf — a file on the connection named “MyNAS”.
  • GDrive:1zeRs1TUOYxMwVdYJdHF_ikAaRCMYMcwp — Google Drive uses ID as path.
  • local:~/Desktop or ~/Desktop — files on your Mac. If no connection is specified, the path is treated as a local disk path.

If a connection name contains a space, wrap the whole address in quotes, e.g. "my NAS:/Documents". For cloud services you may use a file's ID in place of its path (the ID is shown in the results of ls command).

Common commands

Each command returns exit status 0 on success and a non-zero status on failure, with errors on standard error — so the CLI works well inside shell scripts.

# list your connections (name and protocol) owlfiles connections # list a folder (-a includes hidden files) owlfiles ls "my NAS:/Documents" owlfiles ls -a MyGoogleDrive:'1WlBH4KpOcIWgNKVVBRmUd5' # file info / metadata (type, size, modified date) owlfiles info "my NAS:/Documents/report.pdf" # search by keyword (case-insensitive) owlfiles search "my NAS:/Documents" invoice owlfiles search Dropbox report.pdf # make a folder owlfiles mkdir "my NAS:/Documents/Archive" # copy across connections (NAS -> cloud uses the file ID) owlfiles cp "my NAS:/Documents/report.pdf" GDrive:'1WlBH4KpOBl8WXj31pOcIW' owlfiles cp /Users/me/Desktop/photo.jpg "my NAS:/Photos" # move / rename, also across connections owlfiles mv "my NAS:/Documents/report.pdf" MyOneDrive:'CF8821A253295DA6!142' # delete (no confirmation prompt — use with care) owlfiles rm "my NAS:/Documents/old.txt" # full command summary owlfiles --help

Good to know

A few notes to keep things running smoothly.

Names & sign-in

Run owlfiles connections to see exact names, and quote any name with a space. If a connection asks you to sign in, open it once in the Owlfiles app — the CLI reuses the same saved login afterwards.

Local files & the sandbox

Owlfiles runs in the macOS App Sandbox. The CLI can reach a folder on your local disk only after you have opened it once in the Owlfiles app. Files on your remote and cloud connections are not affected.

Get started

Add the owlfiles alias and run owlfiles connections to begin. The full step-by-step guide is in the user guide.

CLI user guide → Explore the AI Plugin →