Local and hosted file access

The filemaker CLI supports identical operations across local and hosted databases; only the --file target differs. Use file system paths for closed files, and fmnet:// URLs for files open in FileMaker Pro or hosted on FileMaker Server.

Database state --file target format
Closed local file Absolute or relative file path to the .fmp12 file
Open in FileMaker Pro fmnet://<host>/<FileName> (requires FileMaker Network sharing)
Hosted on FileMaker Server fmnet://<server>/<FileName> (requires FileMaker Server 26.1.1 or later with Allow ADK Connections turned on)

Closed local files

Use file paths when the database is closed:

Copy
filemaker --file="/Users/example/Documents/Contacts.fmp12" [options] ops.ndjson

Relative paths resolve from the current directory. Tilde expansion is not supported. Do not target file paths while the database is open in FileMaker Pro; connect via FileMaker Network sharing instead.

Files open in FileMaker Pro

An open local file must be shared before filemaker can connect:

  1. Open the file in FileMaker Pro.

  2. Choose File > Sharing > Share with FileMaker Clients.

  3. Set Network Sharing to On.

  4. Select the file and grant access to designated accounts or privilege sets.

Connect using the local host address:

Copy
filemaker --file="fmnet://localhost/Contacts" [options] ops.ndjson

Warning  Peer-to-peer sharing limitations: Peer-to-peer connections are unencrypted and intended for development testing only. Use FileMaker Server for encrypted production environments. See Peer-to-peer sharing.

Files hosted by FileMaker Server

Connect to server-hosted databases using the server domain name or IP address:

Copy
filemaker --file="fmnet://fm.example.com/Contacts" [options] ops.ndjson

The server must run FileMaker Server 26.1.1 or later with Allow ADK Connections turned on. The setting is off by default. The server must be reachable over the network, and the account must have Full Access privileges. See Work with hosted files.